Skip to content

Instantly share code, notes, and snippets.

View stephan-mueller's full-sized avatar

stephan-mueller

  • adesso SE
  • Paderborn / Metropole Ruhr, Germany
View GitHub Profile
@stephan-mueller
stephan-mueller / MethodOrderWithRuleTest.java
Created September 28, 2015 16:20
JUnit test to demonstrate the method execution order with rules.
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();
@stephan-mueller
stephan-mueller / MethoderOrderTest.java
Created September 28, 2015 16:20
JUnit test to demonstrate the method execution order.
public class MethodOrderTest {
private static final Logger LOG = LoggerFactory.getLogger(MethodOrderTest.class);
@BeforeClass
public static void setUpClass() throws Exception {
LOG.info("@BeforeClass setUpClass");
}
@AfterClass
JSONContext jsCtx = JSONContext.getInstance(Customer.class);
Unmarshaller jsonUnmarshaller = jsCtx.createUnmarshaller();
Customer customer = (Customer) jsonUnmarshaller.unmarshal(new File("customer.json"));
@stephan-mueller
stephan-mueller / package.json
Last active August 29, 2015 14:27
frontend-maven-plugin: package.json
{
"name": "frontend-maven-plugin-showcase",
"version": "0.0.1",
"dependencies": {},
"devDependencies": {}
}
@stephan-mueller
stephan-mueller / pom.xml
Created August 10, 2015 20:05
frontend-maven-plugin: running npm
<executions>
<execution>
<id>npm install</id>
<phase>generate-resources</phase>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>install</arguments>
</configuration>
@stephan-mueller
stephan-mueller / pom.xml
Created August 10, 2015 20:04
frontend-maven-plugin: installing node and npm
<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>
@stephan-mueller
stephan-mueller / pom.xml
Last active August 29, 2015 14:27
frontend-maven-plugin: install plugin
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>0.0.23</version>
...
</plugin>
</plugins>