Skip to content

Commit

Permalink
ExecutionFlow v6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
williamniemiec committed Dec 27, 2020
1 parent 42ba3bb commit 82775ae
Show file tree
Hide file tree
Showing 15 changed files with 196 additions and 370 deletions.
Binary file modified dist/6.x/ExecutionFlow_ConsoleExporter_v6.0.0.jar
Binary file not shown.
Binary file modified dist/6.x/ExecutionFlow_FileExporter_v6.0.0.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/executionflow/ExecutionFlow.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public abstract class ExecutionFlow {
* {@link executionflow.io.compiler.aspectj.StandardAspectJCompiler#compile()}.
*/
static {
DEVELOPMENT = false;
DEVELOPMENT = true;
}


Expand Down
4 changes: 2 additions & 2 deletions src/executionflow/exporter/ExportManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public class ExportManager {
* Sets test path export type.
*/
static {
// TEST_PATH_EXPORTER = TestPathExportType.CONSOLE;
TEST_PATH_EXPORTER = TestPathExportType.FILE;
TEST_PATH_EXPORTER = TestPathExportType.CONSOLE;
// TEST_PATH_EXPORTER = TestPathExportType.FILE;
}


Expand Down
10 changes: 10 additions & 0 deletions test/executionflow/io/processor/InvokedFileProcessorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ public void testAuxClass() throws IOException {

processFile();
}

@Test
public void innerTry() throws IOException {
withDirectory(Path.of("test", "executionflow", "io", "processor",
"files", "InvokedFileProcessorTest"));
withFilename("InnerTry");
initializeTest();

processFile();
}

@Test
public void forEachToFor() throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ public void testClassTest_firstMethod() throws IOException {
processFile();
}

@Test
public void innerTry() throws IOException {
withDirectory(Path.of("test", "executionflow", "io", "processor",
"files", "PreTestMethodFileProcessorTest"));
withFilename("InnerTry");
withTestMethodSignature("org.apache.commons.io.serialization" +
".ValidatingObjectInputStreamTest" +
".exceptionIncludesClassName()");
initializeTest();

processFile();
}

@Test
public void testMethodWithInnerClass() throws IOException {
withDirectory(Path.of("test", "executionflow", "io", "processor",
Expand Down
10 changes: 10 additions & 0 deletions test/executionflow/io/processor/TestMethodFileProcessorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ public void testClassTest() throws IOException {
processFile();
}

@Test
public void innerTry() throws IOException {
withDirectory(Path.of("test", "executionflow", "io", "processor",
"files", "TestMethodFileProcessorTest"));
withFilename("InnerTry");
initializeTest();

processFile();
}

@Test
public void testMethodInvokedSameLine() throws IOException {
withDirectory(Path.of("test", "executionflow", "io", "processor",
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package executionflow.core.file.parser.tests;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import examples.testClasses.TestClass;

@executionflow.runtime.SkipCollection public class TestClass
{
@executionflow.runtime.CollectMethodsCalled @org.junit.Test
public void exceptionIncludesClassName() throws Exception {
try {
assertSerialization(
willClose(new ValidatingObjectInputStream(testStream)));
fail("Expected an InvalidClassException");
} catch(final InvalidClassException ice) {
final String name = MockSerializedClass.class.getName();
try { assertTrue("Expecting message to contain " + name, ice.getMessage().contains(name));} catch(Throwable _d89a6bdcdcc126445913aee13333f14f){}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package executionflow.core.file.parser.tests;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import examples.testClasses.TestClass;
@executionflow.runtime.SkipCollection public class TestClass{
@executionflow.runtime.CollectMethodsCalled @org.junit.Test public void exceptionIncludesClassName() throws Exception {
try {int _82212329cfb379c33ee897a0bcd1f449=0;
assertSerialization( willClose(new ValidatingObjectInputStream(testStream)));
fail("Expected an InvalidClassException");
}
catch(final InvalidClassException ice) {
final String name = MockSerializedClass.class.getName();
try { assertTrue("Expecting message to contain " + name, ice.getMessage().contains(name));} catch(Throwable _d89a6bdcdcc126445913aee13333f14f){}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package executionflow.core.file.parser.tests;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import examples.testClasses.TestClass;

public class TestClass
{
@Test
public void exceptionIncludesClassName() throws Exception {
try {
assertSerialization(
willClose(new ValidatingObjectInputStream(testStream)));
fail("Expected an InvalidClassException");
} catch(final InvalidClassException ice) {
final String name = MockSerializedClass.class.getName();
assertTrue("Expecting message to contain " + name, ice.getMessage().contains(name));
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package executionflow.core.file.parser.tests;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import examples.testClasses.TestClass;

public class TestClass
{
@org.junit.Test
public void exceptionIncludesClassName() throws Exception {
try {
assertSerialization(
willClose(new ValidatingObjectInputStream(testStream)));
fail("Expected an InvalidClassException");
} catch(final InvalidClassException ice) {
final String name = MockSerializedClass.class.getName();
try { assertTrue("Expecting message to contain " + name, ice.getMessage().contains(name));} catch(Throwable _d89a6bdcdcc126445913aee13333f14f){}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,57 +8,15 @@ import examples.testClasses.TestClass;

public class TestClass
{
@org.junit.Test
public void testLastCurlyBracketInSameLine() {
System.out.println("#####################################################################");
System.out.println(" testLastCurlyBracketInSameLine ");
System.out.println("#####################################################################");

AgainstRequirementsTestClass artc = new AgainstRequirementsTestClass();

try { assertEquals(24, artc.factorial(4)); } catch(Throwable _b10f2020164c4a28b16e4c9a0451f26d){}}

// @Test
// public void testFoo()
// {
// assertEquals("1", "1");
// assertEquals("1", "2"); // It will fail
// }

// @Test
// public void assertFailInTheMiddleTest()
// {
// TestClass tc = new TestClass(99);
// assertEquals("one", tc.threePaths(1));
// assertEquals("nine",
// tc.threePaths(3)); // It will fail
// assertEquals("two", tc.threePaths(2));
// }

// @Test
// public void multilineAssert1()
// {
// assertEquals(param1, // Comment 1
// param2, // Comment 2
// param3); // Comment 3
// }

// @Test
// public void multilineAssert2()
// {
// assertEquals (
// param1, // Comment 1
// param2, // Comment 2
// param3); // Comment 3
// }

// @Test
// public void multilineAssert3()
// {
// assertEquals (
// param1, // Comment 1
// param2, // Comment 2
// param3 // Comment 3
// ); // Comment 4
// }
@org.junit.Test
public void exceptionIncludesClassName() throws Exception {
try {
assertSerialization(
willClose(new ValidatingObjectInputStream(testStream)));
fail("Expected an InvalidClassException");
} catch(final InvalidClassException ice) {
final String name = MockSerializedClass.class.getName();
try { assertTrue("Expecting message to contain " + name, ice.getMessage().contains(name));} catch(Throwable _8034966fb7921102c05b203f2ed1982f){}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package executionflow.core.file.parser.tests;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import examples.testClasses.TestClass;

public class TestClass
{
@org.junit.Test
public void exceptionIncludesClassName() throws Exception {
try {
assertSerialization(
willClose(new ValidatingObjectInputStream(testStream)));
fail("Expected an InvalidClassException");
} catch(final InvalidClassException ice) {
final String name = MockSerializedClass.class.getName();
try { assertTrue("Expecting message to contain " + name, ice.getMessage().contains(name));} catch(Throwable _d89a6bdcdcc126445913aee13333f14f){}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package executionflow.core.file.parser.tests;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import examples.testClasses.TestClass;

@executionflow.runtime.SkipCollection public class TestClass
{
@executionflow.runtime.CollectMethodsCalled @org.junit.Test
public void exceptionIncludesClassName() throws Exception {
try {
assertSerialization(
willClose(new ValidatingObjectInputStream(testStream)));
fail("Expected an InvalidClassException");
} catch(final InvalidClassException ice) {
final String name = MockSerializedClass.class.getName();
try { assertTrue("Expecting message to contain " + name, ice.getMessage().contains(name));} catch(Throwable _d89a6bdcdcc126445913aee13333f14f){}
}
}
}

0 comments on commit 82775ae

Please sign in to comment.