Skip to content
Permalink
Browse files

changed test naming convention

  • Loading branch information...
maciejmikosik committed Feb 27, 2018
1 parent fec9e4d commit 0e2610cbca11c3ac4a87c10d5ab0388cd59161dc
Showing with 65 additions and 65 deletions.
  1. +2 −2 run/test
  2. +1 −1 test/java/net/bytebuddy/{test_ByteBuddy.java → TestByteBuddy.java}
  3. +42 −42 test/java/org/quackery/{test_all.java → TestAll.java}
  4. +1 −1 test/java/org/quackery/{test_Case.java → TestCase.java}
  5. +1 −1 test/java/org/quackery/{test_Suite.java → TestSuite.java}
  6. +1 −1 test/java/org/quackery/contract/collection/{test_detecting_bugs.java → TestDetectingBugs.java}
  7. +1 −1 test/java/org/quackery/contract/collection/{test_illegal_use.java → TestIllegalUse.java}
  8. +1 −1 .../contract/collection/{test_passing_example_collections.java → TestPassingExampleCollections.java}
  9. +1 −1 ...kery/contract/collection/{test_passing_guava_collections.java → TestPassingGuavaCollections.java}
  10. +1 −1 ...quackery/contract/collection/{test_passing_jdk_collections.java → TestPassingJdkCollections.java}
  11. +1 −1 test/java/org/quackery/contract/collection/{test_suite_naming.java → TestSuiteNaming.java}
  12. +1 −1 ...it/{test_QuackeryRunner_description_hierarchy.java → TestQuackeryRunnerDescriptionHierarchy.java}
  13. +1 −1 ...kery/junit/{test_QuackeryRunner_ignore_annotation.java → TestQuackeryRunnerIgnoreAnnotation.java}
  14. +1 −1 ...nit/{test_QuackeryRunner_junit_test_annotation.java → TestQuackeryRunnerJunitTestAnnotation.java}
  15. +1 −1 .../junit/{test_QuackeryRunner_quackery_annotation.java → TestQuackeryRunnerQuackeryAnnotation.java}
  16. +1 −1 test/java/org/quackery/report/{test_Reports_count_throwables.java → TestReportsCountThrowables.java}
  17. +1 −1 test/java/org/quackery/report/{test_Reports_format.java → TestReportsFormat.java}
  18. +1 −1 test/java/org/quackery/run/{test_Runner.java → TestRunner.java}
  19. +1 −1 test/java/org/quackery/run/{test_Runners_classLoaderScoped.java → TestRunnersClassLoaderScoped.java}
  20. +1 −1 test/java/org/quackery/run/{test_Runners_run.java → TestRunnersRun.java}
  21. +1 −1 test/java/org/quackery/run/{test_Runners_runIn.java → TestRunnersRunIn.java}
  22. +1 −1 test/java/org/quackery/run/{test_Runners_threadScoped.java → TestRunnersThreadScoped.java}
  23. +1 −1 test/java/org/quackery/run/{test_Visitor.java → TestVisitor.java}
@@ -23,11 +23,11 @@ javac \
-target 1.7 \
-d "${SINK}" \
./main/java/org/quackery/Build.java \
./test/java/org/quackery/test_all.java
./test/java/org/quackery/TestAll.java

java \
-classpath "${SINK}:./main/jar/junit-4.12.jar:./main/jar/hamcrest-all-1.3.jar:./test/jar/guava-18.0.jar:./test/jar/byte-buddy-1.3.18.jar" \
org.quackery.test_all
org.quackery.TestAll

#cleanup
rm \
@@ -11,7 +11,7 @@
import net.bytebuddy.dynamic.loading.ClassLoadingStrategy;
import net.bytebuddy.implementation.SuperMethodCall;

public class test_ByteBuddy {
public class TestByteBuddy {
public void can_redefine_inner_class_as_public_with_default_constructor() throws Exception {
class Inner {}

@@ -10,54 +10,54 @@
import java.util.ArrayList;
import java.util.List;

import org.quackery.contract.collection.test_detecting_bugs;
import org.quackery.contract.collection.test_illegal_use;
import org.quackery.contract.collection.test_passing_example_collections;
import org.quackery.contract.collection.test_passing_guava_collections;
import org.quackery.contract.collection.test_passing_jdk_collections;
import org.quackery.contract.collection.test_suite_naming;
import org.quackery.junit.test_QuackeryRunner_description_hierarchy;
import org.quackery.junit.test_QuackeryRunner_ignore_annotation;
import org.quackery.junit.test_QuackeryRunner_junit_test_annotation;
import org.quackery.junit.test_QuackeryRunner_quackery_annotation;
import org.quackery.report.test_Reports_count_throwables;
import org.quackery.report.test_Reports_format;
import org.quackery.run.test_Runners_classLoaderScoped;
import org.quackery.run.test_Runners_run;
import org.quackery.run.test_Runners_runIn;
import org.quackery.run.test_Runners_threadScoped;

import net.bytebuddy.test_ByteBuddy;

public class test_all {
import org.quackery.contract.collection.TestDetectingBugs;
import org.quackery.contract.collection.TestIllegalUse;
import org.quackery.contract.collection.TestPassingExampleCollections;
import org.quackery.contract.collection.TestPassingGuavaCollections;
import org.quackery.contract.collection.TestPassingJdkCollections;
import org.quackery.contract.collection.TestSuiteNaming;
import org.quackery.junit.TestQuackeryRunnerDescriptionHierarchy;
import org.quackery.junit.TestQuackeryRunnerIgnoreAnnotation;
import org.quackery.junit.TestQuackeryRunnerJunitTestAnnotation;
import org.quackery.junit.TestQuackeryRunnerQuackeryAnnotation;
import org.quackery.report.TestReportsCountThrowables;
import org.quackery.report.TestReportsFormat;
import org.quackery.run.TestRunnersClassLoaderScoped;
import org.quackery.run.TestRunnersRun;
import org.quackery.run.TestRunnersRunIn;
import org.quackery.run.TestRunnersThreadScoped;

import net.bytebuddy.TestByteBuddy;

public class TestAll {
private static List<Throwable> failures = new ArrayList<Throwable>();
private static List<String> statistics = new ArrayList<String>();

public static void main(String[] args) throws Throwable {
long start = System.nanoTime();

runTestsIn(test_ByteBuddy.class);

runTestsIn(test_Case.class);
runTestsIn(test_Suite.class);
runTestsIn(test_Runners_run.class);
runTestsIn(test_Runners_runIn.class);
runTestsIn(test_Runners_threadScoped.class);
runTestsIn(test_Runners_classLoaderScoped.class);
runTestsIn(test_Reports_count_throwables.class);
runTestsIn(test_Reports_format.class);

runTestsIn(test_QuackeryRunner_quackery_annotation.class);
runTestsIn(test_QuackeryRunner_junit_test_annotation.class);
runTestsIn(test_QuackeryRunner_description_hierarchy.class);
runTestsIn(test_QuackeryRunner_ignore_annotation.class);

runTestsIn(test_illegal_use.class);
runTestsIn(test_suite_naming.class);
runTestsIn(test_detecting_bugs.class);
runTestsIn(test_passing_example_collections.class);
runTestsIn(test_passing_jdk_collections.class);
runTestsIn(test_passing_guava_collections.class);
runTestsIn(TestByteBuddy.class);

runTestsIn(TestCase.class);
runTestsIn(TestSuite.class);
runTestsIn(TestRunnersRun.class);
runTestsIn(TestRunnersRunIn.class);
runTestsIn(TestRunnersThreadScoped.class);
runTestsIn(TestRunnersClassLoaderScoped.class);
runTestsIn(TestReportsCountThrowables.class);
runTestsIn(TestReportsFormat.class);

runTestsIn(TestQuackeryRunnerQuackeryAnnotation.class);
runTestsIn(TestQuackeryRunnerJunitTestAnnotation.class);
runTestsIn(TestQuackeryRunnerDescriptionHierarchy.class);
runTestsIn(TestQuackeryRunnerIgnoreAnnotation.class);

runTestsIn(TestIllegalUse.class);
runTestsIn(TestSuiteNaming.class);
runTestsIn(TestDetectingBugs.class);
runTestsIn(TestPassingExampleCollections.class);
runTestsIn(TestPassingJdkCollections.class);
runTestsIn(TestPassingGuavaCollections.class);

long stop = System.nanoTime();
BigDecimal time = new BigDecimal(BigInteger.valueOf(stop - start), 9).setScale(3, HALF_UP);
@@ -7,7 +7,7 @@

import org.quackery.Case.Body;

public class test_Case {
public class TestCase {
private final String name = "name";
private Case test;
private final Body body = new Body() {
@@ -10,7 +10,7 @@
import static org.quackery.testing.Mocks.mockObject;
import static org.quackery.testing.Mocks.mockTest;

public class test_Suite {
public class TestSuite {
private String name = "name";
private final Test testA = mockCase("testA"),
testB = mockCase("testB"),
@@ -7,7 +7,7 @@
import java.util.Collection;
import java.util.List;

public class test_detecting_bugs {
public class TestDetectingBugs {
public void detects_bugs() {
for (boolean immutable : asList(true, false)) {
for (boolean forbiddingNull : asList(true, false)) {
@@ -10,7 +10,7 @@

import org.quackery.QuackeryException;

public class test_illegal_use {
public class TestIllegalUse {
public void cannot_implement_object() {
try {
quacksLike(Collection.class)
@@ -12,7 +12,7 @@
import org.quackery.contract.collection.correct.MutableListForbiddingNullNicely;
import org.quackery.contract.collection.correct.MutableListForbiddingNullStrictly;

public class test_passing_example_collections {
public class TestPassingExampleCollections {
private static final String factoryName = "create";

public void mutable_list_passes() {
@@ -11,7 +11,7 @@
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;

public class test_passing_guava_collections {
public class TestPassingGuavaCollections {
private Contract<Class<?>> contract;

public void immutable_list_passes() {
@@ -12,7 +12,7 @@

import org.quackery.Contract;

public class test_passing_jdk_collections {
public class TestPassingJdkCollections {
private Contract<Class<?>> contract;

public void array_list_passes() {
@@ -8,7 +8,7 @@

import org.quackery.Test;

public class test_suite_naming {
public class TestSuiteNaming {
private Test test;

public void includes_class_name() {
@@ -12,7 +12,7 @@
import org.junit.runner.JUnitCore;
import org.junit.runner.Result;

public class test_QuackeryRunner_description_hierarchy {
public class TestQuackeryRunnerDescriptionHierarchy {
private Result result;
private final String testName = "caseName";
private final String junitMethodName = "junitMethodName";
@@ -11,7 +11,7 @@
import org.junit.runner.Result;
import org.quackery.report.AssertException;

public class test_QuackeryRunner_ignore_annotation {
public class TestQuackeryRunnerIgnoreAnnotation {
private Result result;

public void ignore_annotation_on_method_ignores_junit_test() {
@@ -8,7 +8,7 @@

import org.junit.runner.Result;

public class test_QuackeryRunner_junit_test_annotation {
public class TestQuackeryRunnerJunitTestAnnotation {
private final String name = "name";
private Result result;

@@ -17,7 +17,7 @@
import org.quackery.report.AssertException;
import org.quackery.report.AssumeException;

public class test_QuackeryRunner_quackery_annotation {
public class TestQuackeryRunnerQuackeryAnnotation {
private final String name = "name " + hashCode();
private final String message = "message";
private final String firstLine = "first line";
@@ -9,7 +9,7 @@
import org.quackery.QuackeryException;
import org.quackery.Test;

public class test_Reports_count_throwables {
public class TestReportsCountThrowables {
private Test test;
private int count;
private final String name = "name";
@@ -9,7 +9,7 @@
import org.quackery.QuackeryException;
import org.quackery.Test;

public class test_Reports_format {
public class TestReportsFormat {
private final String name = "name";
private final String a = "a", b = "b", c = "c", d = "d", e = "e", f = "f", g = "g", h = "h";
private Test report;
@@ -6,7 +6,7 @@
import org.quackery.Case;
import org.quackery.Test;

public abstract class test_Runner extends test_Visitor {
public abstract class TestRunner extends TestVisitor {
private final String name = "name";
private Test test, report;
private int invoked;
@@ -8,7 +8,7 @@
import org.quackery.Case;
import org.quackery.Test;

public class test_Runners_classLoaderScoped extends test_Visitor {
public class TestRunnersClassLoaderScoped extends TestVisitor {
private final String name = "name";
private final Throwable throwable = new Throwable();
private ClassLoader original, scoped, parent;
@@ -4,7 +4,7 @@

import org.quackery.Test;

public class test_Runners_run extends test_Runner {
public class TestRunnersRun extends TestRunner {
protected Test visit(Test visited) {
return run(visited);
}
@@ -13,7 +13,7 @@
import org.quackery.Case;
import org.quackery.Test;

public class test_Runners_runIn extends test_Runner {
public class TestRunnersRunIn extends TestRunner {
private Test test;
private ExecutorService executor;
private boolean failed = false;
@@ -6,7 +6,7 @@
import org.quackery.Case;
import org.quackery.Test;

public class test_Runners_threadScoped extends test_Visitor {
public class TestRunnersThreadScoped extends TestVisitor {
private final String name = "name";
private Test test, testA, testB;
private Thread callerThread, scopingThread, scopingThreadA, scopingThreadB;
@@ -10,7 +10,7 @@
import org.quackery.Suite;
import org.quackery.Test;

public abstract class test_Visitor {
public abstract class TestVisitor {
private final String name = "name", nameA = "nameA", nameB = "nameB", nameC = "nameC",
nameD = "nameD", nameE = "nameE", nameF = "nameF";
private Test test, visited;

0 comments on commit 0e2610c

Please sign in to comment.
You can’t perform that action at this time.