Skip to content

Commit

Permalink
Rename test classes to be in sync with conventions
Browse files Browse the repository at this point in the history
I only renamed those classes where I think no-one
is actively working on at the moment.

------------------------------------------------------------------------
On behalf of the community, the JUnit Lambda Team thanks Gradleware
(https://gradle.org) for supporting the JUnit crowdfunding campaign!
------------------------------------------------------------------------
  • Loading branch information
marcphilipp committed Dec 19, 2015
1 parent 55a383f commit 5eb780a
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
Expand Up @@ -21,7 +21,7 @@
import org.junit.Before;
import org.junit.Test;

public class ClasspathScannerTest {
public class ClasspathScannerTests {

private ClasspathScanner classpathScanner;

Expand All @@ -40,9 +40,9 @@ public void findAllClassesInThisPackage() throws Exception {

@Test
public void findAllClassesInThisPackageWithFilter() throws Exception {
Predicate<Class<?>> thisClassOnly = clazz -> clazz == ClasspathScannerTest.class;
Predicate<Class<?>> thisClassOnly = clazz -> clazz == ClasspathScannerTests.class;
List<Class<?>> classes = classpathScanner.scanForClassesInPackage("org.junit.gen5.commons", thisClassOnly);
Assert.assertSame(ClasspathScannerTest.class, classes.get(0));
Assert.assertSame(ClasspathScannerTests.class, classes.get(0));
}

@Test
Expand All @@ -53,10 +53,10 @@ public void isPackage() throws Exception {

@Test
public void findAllClassesInClasspathRoot() throws Exception {
Predicate<Class<?>> thisClassOnly = clazz -> clazz == ClasspathScannerTest.class;
Predicate<Class<?>> thisClassOnly = clazz -> clazz == ClasspathScannerTests.class;
File root = getTestClasspathRoot();
List<Class<?>> classes = classpathScanner.scanForClassesInClasspathRoot(root, thisClassOnly);
Assert.assertSame(ClasspathScannerTest.class, classes.get(0));
Assert.assertSame(ClasspathScannerTests.class, classes.get(0));
}

@Test
Expand All @@ -65,7 +65,7 @@ public void findAllClassesInClasspathRootWithFilter() throws Exception {
List<Class<?>> classes = classpathScanner.scanForClassesInClasspathRoot(root, clazz -> true);

Assert.assertTrue("Should be at least 20 classes", classes.size() >= 20);
Assert.assertTrue(classes.contains(ClasspathScannerTest.class));
Assert.assertTrue(classes.contains(ClasspathScannerTests.class));
}

private File getTestClasspathRoot() {
Expand Down
Expand Up @@ -25,7 +25,7 @@
import org.junit.gen5.console.tasks.DisplayHelpTask;
import org.junit.gen5.console.tasks.ExecuteTestsTask;

public class ConsoleRunnerTest {
public class ConsoleRunnerTests {

@Test
public void executeDisplayHelpTask() {
Expand Down
Expand Up @@ -24,7 +24,7 @@

import org.junit.Test;

public class JOptSimpleCommandLineOptionsParserTest {
public class JOptSimpleCommandLineOptionsParserTests {

@Test
public void parseNoArguments() {
Expand Down
Expand Up @@ -23,7 +23,7 @@

import org.junit.Test;

public class ClasspathEntriesParserTest {
public class ClasspathEntriesParserTests {

@Test
public void toURLsWithoutEntries() {
Expand Down
Expand Up @@ -18,7 +18,7 @@

import org.junit.Test;

public class ConsoleTaskExecutorTest {
public class ConsoleTaskExecutorTests {

private ByteArrayOutputStream out = new ByteArrayOutputStream();
private ByteArrayOutputStream err = new ByteArrayOutputStream();
Expand Down
Expand Up @@ -18,7 +18,7 @@

import org.junit.Test;

public class CustomContextClassLoaderExecutorTest {
public class CustomContextClassLoaderExecutorTests {

@Test
public void invokeWithoutCustomClassLoaderDoesNotSetClassLoader() throws Exception {
Expand Down
Expand Up @@ -23,7 +23,7 @@
import org.junit.gen5.console.options.CommandLineOptions;
import org.junit.gen5.engine.DummyTestEngine;

public class ExecuteTestsTaskTest {
public class ExecuteTestsTaskTests {

@Test
public void executeWithoutExitCode() throws Exception {
Expand Down
Expand Up @@ -27,7 +27,7 @@
import org.junit.gen5.engine.TestPlanSpecificationElementVisitor;
import org.junit.gen5.engine.TestTag;

public class TestPlanSpecificationCreatorTest {
public class TestPlanSpecificationCreatorTests {

private CommandLineOptions options = new CommandLineOptions();
private TestPlanSpecificationElementVisitor visitor = mock(TestPlanSpecificationElementVisitor.class);
Expand Down
Expand Up @@ -19,7 +19,7 @@
import org.junit.gen5.engine.TestDescriptor;
import org.junit.gen5.engine.TestPlanSpecification;

public class LauncherTest {
public class LauncherTests {

@Test
public void discoverEmptyTestPlanWithoutAnyEngines() {
Expand Down

0 comments on commit 5eb780a

Please sign in to comment.