Skip to content

Instantly share code, notes, and snippets.

View michaelajr's full-sized avatar

Michael Andrews michaelajr

View GitHub Profile
@michaelajr
michaelajr / EchoResourceIT_echo.java
Created May 26, 2018 17:46
Maven For Pipelining, Part 3
package com.eoniantech.echoapi.portadaptor.rest;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Invocation;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.Response;
import static org.junit.Assert.assertEquals;
import org.junit.BeforeClass;
import org.junit.Test;
@michaelajr
michaelajr / MessageTest_equals.java
Created May 26, 2018 17:18
Maven For Pipelining, Part 3
package com.eoniantech.echoapi.domain.model;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
/**
* Test class for the {@link Message} model's equals method.
*
@michaelajr
michaelajr / MessageTest_constructor.java
Created May 26, 2018 17:16
Maven For Pipelining, Part 3
package com.eoniantech.echoapi.domain.model;
import org.junit.Test;
/**
* Test class for the {@link Message} model's constructor.
*
* @author Michael Andrews <Michael.Andrews@eoniantech.com>
* @since 1.0
*/
@michaelajr
michaelajr / MassageTest.java
Created May 26, 2018 17:11
Maven For Pipelining, Part 3
package com.eoniantech.echoapi.domain.model;
import com.googlecode.junittoolbox.SuiteClasses;
import com.googlecode.junittoolbox.WildcardPatternSuite;
import org.junit.runner.RunWith;
/**
* Unit Test suite for the {@link Message} model.
*
* @author Michael Andrews <Michael.Andrews@eoniantech.com>
@michaelajr
michaelajr / warIntegrationTestProfile.xml
Created May 26, 2018 15:57
Maven For Pipelining, Part 1
<!-- Run integration tests against Tomcat with code coverage -->
<profile>
<id>integration-test</id>
<activation>
<file>
<exists>${basedir}/src/test</exists>
</file>
</activation>
<properties>
<itServerHome>${project.build.directory}/${itServerId}</itServerHome>
@michaelajr
michaelajr / integrationTestProfile.xml
Created May 26, 2018 15:37
Maven For Pipelining, Part 1
<!-- Run IT test with code coverage -->
<profile>
<id>integration-test</id>
<activation>
<file>
<exists>${basedir}/src/test</exists>
</file>
</activation>
<properties>
<itAgent></itAgent>
@michaelajr
michaelajr / unitTestProfile.xml
Last active May 26, 2018 15:37
Maven For Pipelining, Part 1
<!-- Run unit tests with code coverage -->
<profile>
<id>unit-test</id>
<activation>
<file>
<exists>${basedir}/src/test</exists>
</file>
</activation>
<properties>
<testAgent></testAgent>
@michaelajr
michaelajr / profiles.xml
Created May 25, 2018 20:03
Maven For Pipelining, Part 1
<profiles>
<profile>
<id>compile-with-debug</id>
...
<profile>
<id>enforce-dependency-blacklist</id>
<activation>
<file>
<exists>${basedir}/src</exists>
@michaelajr
michaelajr / pluginManagement.xml
Last active May 25, 2018 19:59
Maven For Pipelining, Part 1
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<compilerArguments>
<Xlint:all/>
</compilerArguments>
@michaelajr
michaelajr / dependencyManagement.xml
Last active May 25, 2018 19:56
Maven For Pipelining, Part 1
<dependencyManagement>
<dependencies>
<!-- Logging -->
<dependency>
<groupId>com.eoniantech.build</groupId>
<artifactId>slf4j-bom</artifactId>
<version>1.8.0-beta2</version>
<type>pom</type>
<scope>import</scope>
</dependency>