org.junit.experimental.theories.DataPoint Java Examples
The following examples show how to use
org.junit.experimental.theories.DataPoint.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: InternalClassDiscoveryIntegrationTest.java From Akatsuki with Apache License 2.0 | 5 votes |
@DataPoint public static APITestScenario createSimpleSource() { TestSource source = new TestSource("test", generateClassName(), Modifier.PUBLIC); source.appendFields(new RetainedTestField(String.class).createFieldSpec(), new ArgTestField(Integer.class).createFieldSpec()) .appendTransformation((b, s) -> b.superclass(MockedFragment.class)); return base -> new APITestBase(base, source); }
Example #2
Source File: InternalClassDiscoveryIntegrationTest.java From Akatsuki with Apache License 2.0 | 5 votes |
@DataPoint public static APITestScenario createSourceWithInnerClass() { TestSource enclosingClass = new TestSource("test", generateClassName(), Modifier.PUBLIC); TestSource source = new TestSource(null, generateClassName(), Modifier.PUBLIC); source.appendFields(new RetainedTestField(String.class).createFieldSpec(), new ArgTestField(Integer.class).createFieldSpec()) .appendTransformation((b, s) -> b.superclass(MockedFragment.class)); enclosingClass.innerClasses(true, source); return base -> new APITestBase(base, source, enclosingClass, new TestSource[] {}); }
Example #3
Source File: AkatsukiProcessorSourceNameTest.java From Akatsuki with Apache License 2.0 | 4 votes |
@DataPoint public static GeneratedClassWithName simpleClass() { final JavaFileObject object = CodeGenUtils .createTestClass(field(STRING_TYPE, "foo", Retained.class)); return new GeneratedClassWithName(object, TEST_CLASS); }