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
<plugins> | |
<plugin> | |
<groupId>com.github.eirslett</groupId> | |
<artifactId>frontend-maven-plugin</artifactId> | |
<version>0.0.23</version> | |
... | |
</plugin> | |
</plugins> |
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
<executions> | |
<execution> | |
<id>install node and npm</id> | |
<goals> | |
<goal>install-node-and-npm</goal> | |
</goals> | |
<phase>generate-resources</phase> | |
<configuration> | |
<nodeVersion>v0.12.7</nodeVersion> | |
<npmVersion>2.11.3</npmVersion> |
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
<executions> | |
<execution> | |
<id>npm install</id> | |
<phase>generate-resources</phase> | |
<goals> | |
<goal>npm</goal> | |
</goals> | |
<configuration> | |
<arguments>install</arguments> | |
</configuration> |
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
{ | |
"name": "frontend-maven-plugin-showcase", | |
"version": "0.0.1", | |
"dependencies": {}, | |
"devDependencies": {} | |
} |
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
JSONContext jsCtx = JSONContext.getInstance(Customer.class); | |
Unmarshaller jsonUnmarshaller = jsCtx.createUnmarshaller(); | |
Customer customer = (Customer) jsonUnmarshaller.unmarshal(new File("customer.json")); |
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
public class MethodOrderTest { | |
private static final Logger LOG = LoggerFactory.getLogger(MethodOrderTest.class); | |
@BeforeClass | |
public static void setUpClass() throws Exception { | |
LOG.info("@BeforeClass setUpClass"); | |
} | |
@AfterClass |
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
public class MethodOrderWithRuleTest { | |
private static final Logger LOG = LoggerFactory.getLogger(MethodOrderWithRuleTest.class); | |
@Rule | |
public LogRule rule = new LogRule(); | |
@ClassRule | |
public static LogClassRule classRule = new LogClassRule(); |
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
public class MethodOrderInheritanceTest extends MethodOrderTest { | |
private static final Logger LOG = LoggerFactory.getLogger(MethodOrderInheritanceTest.class); | |
@Test | |
public void methodAChild() throws Exception { | |
LOG.info("@Test methodAChild()"); | |
} | |
@Test |
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
@FixMethodOrder(NAME_ASCENDING) | |
public class FixMethodOrderNameAscendingTest { | |
private static final Logger LOG = LoggerFactory.getLogger(FixMethodOrderNameAscendingTest.class); | |
@Rule | |
public TestName name = new TestName(); | |
@Test | |
public void methodB() throws Exception { |
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
@FixMethodOrder(JVM) | |
public class FixMethodOrderJVMTest { | |
private static final Logger LOG = LoggerFactory.getLogger(FixMethodOrderJVMTest.class); | |
@Rule | |
public TestName name = new TestName(); | |
@Test | |
public void methodB() throws Exception { |
OlderNewer