blob: c0203204367bcbcc44c8bc598cc299b10fdd30b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package org.junit.tests.experimental.max;
import static org.junit.Assert.assertNull;
import org.junit.Test;
import org.junit.runner.Description;
public class DescriptionTest {
@Test
public void parseClass_whenCantParse() {
assertNull(Description.TEST_MECHANISM.getTestClass());
}
@Test
public void parseMethod_whenCantParse() {
assertNull(Description.TEST_MECHANISM.getMethodName());
}
@Test(expected= IllegalArgumentException.class)
public void createSuiteDescription_whenZeroLength() {
Description.createSuiteDescription("");
}
}
|