Skip to content

Commit 5bf147b

Browse files
Test for junit-team#1320
1 parent 8f1f3bf commit 5bf147b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package org.junit.runner;
2+
3+
import static org.hamcrest.CoreMatchers.is;
4+
import static org.hamcrest.MatcherAssert.assertThat;
5+
6+
import org.junit.Test;
7+
8+
public class RequestTest {
9+
10+
/**
11+
* #1320 A root of a {@link Description} produced by
12+
* {@link Request#classes(Class...)} should be named "classes"
13+
*/
14+
@Test
15+
public void createsADescriptionWithANameForClasses() {
16+
Description description = Request
17+
.classes(RequestTest.class, RequestTest.class).getRunner()
18+
.getDescription();
19+
assertThat(description.toString(), is("classes"));
20+
}
21+
}

0 commit comments

Comments
 (0)