Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WINDUP-306: forge.roaster.ParserException halts Windup execution
- Loading branch information
Showing
7 changed files
with
140 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
...test/java/org/jboss/windup/tests/application/WindupArchitectureSeamBookingSourceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package org.jboss.windup.tests.application; | ||
|
||
import org.jboss.arquillian.container.test.api.Deployment; | ||
import org.jboss.arquillian.junit.Arquillian; | ||
import org.jboss.forge.arquillian.AddonDependency; | ||
import org.jboss.forge.arquillian.Dependencies; | ||
import org.jboss.forge.arquillian.archive.ForgeArchive; | ||
import org.jboss.forge.furnace.repositories.AddonDependencyEntry; | ||
import org.jboss.shrinkwrap.api.ShrinkWrap; | ||
import org.jboss.windup.graph.GraphContext; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
@RunWith(Arquillian.class) | ||
public class WindupArchitectureSeamBookingSourceTest extends WindupArchitectureTest | ||
{ | ||
@Deployment | ||
@Dependencies({ | ||
@AddonDependency(name = "org.jboss.windup.graph:windup-graph"), | ||
@AddonDependency(name = "org.jboss.windup.exec:windup-exec"), | ||
@AddonDependency(name = "org.jboss.windup.rules.apps:rules-java"), | ||
@AddonDependency(name = "org.jboss.windup.rules.apps:rules-java-ee"), | ||
@AddonDependency(name = "org.jboss.windup.utils:utils"), | ||
@AddonDependency(name = "org.jboss.windup.tests:test-util"), | ||
@AddonDependency(name = "org.jboss.windup.reporting:windup-reporting"), | ||
@AddonDependency(name = "org.jboss.windup.ext:windup-config-groovy"), | ||
@AddonDependency(name = "org.jboss.forge.furnace.container:cdi"), | ||
}) | ||
public static ForgeArchive getDeployment() | ||
{ | ||
ForgeArchive archive = ShrinkWrap.create(ForgeArchive.class) | ||
.addBeansXML() | ||
.addClass(WindupArchitectureTest.class) | ||
.addAsAddonDependencies( | ||
AddonDependencyEntry.create("org.jboss.windup.graph:windup-graph"), | ||
AddonDependencyEntry.create("org.jboss.windup.exec:windup-exec"), | ||
AddonDependencyEntry.create("org.jboss.windup.rules.apps:rules-java"), | ||
AddonDependencyEntry.create("org.jboss.windup.rules.apps:rules-java-ee"), | ||
AddonDependencyEntry.create("org.jboss.windup.utils:utils"), | ||
AddonDependencyEntry.create("org.jboss.windup.tests:test-util"), | ||
AddonDependencyEntry.create("org.jboss.windup.reporting:windup-reporting"), | ||
AddonDependencyEntry.create("org.jboss.windup.ext:windup-config-groovy"), | ||
AddonDependencyEntry.create("org.jboss.forge.furnace.container:cdi") | ||
); | ||
return archive; | ||
} | ||
|
||
@Test | ||
public void testRunWindupSeamBookingSourceMode() throws Exception | ||
{ | ||
try (GraphContext context = createGraphContext()) | ||
{ | ||
// The test-files folder in the project root dir. | ||
super.runTest(context, "../test-files/seam-booking-5.2", true); | ||
} | ||
} | ||
|
||
} |