This file contains hidden or 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 enum Enumerate | |
| { | |
| VALUE1("VALUE1"), | |
| VALUE2("VALUE2"), | |
| UNKNOWN("UNKNOWN"); | |
| private String value; | |
| private Enumerate(String s) | |
| { | |
| value = s; |
This file contains hidden or 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
| <!-- in pom.xml --> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-compiler-plugin</artifactId> | |
| <configuration> | |
| <source>1.6</source> | |
| <target>1.6</target> | |
| </configuration> |
This file contains hidden or 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
| <!-- in pom.xml --> | |
| <properties> | |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
| <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | |
| </properties> |
This file contains hidden or 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
| <Resource acquireIncrement="1" auth="Container" driverClass="com.mysql.jdbc.Driver" | |
| factory="org.apache.naming.factory.BeanFactory" | |
| idleConnectionTestPeriod="600" initialPoolSize="2" | |
| jdbcUrl="jdbc:mysql://<server>:3306/<dbname>?characterEncoding=UTF-8" | |
| maxIdleTime="300" maxPoolSize="3" minPoolSize="1" name="jdbc/<resource_name>" | |
| password="<password>" preferredTestQuery="SELECT 1" | |
| testConnectionOnCheckout="true" type="com.mchange.v2.c3p0.ComboPooledDataSource" | |
| user="<username>" /> |
This file contains hidden or 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
| import static org.junit.Assert.assertTrue; | |
| import static org.junit.Assume.assumeTrue; | |
| import org.junit.BeforeClass; | |
| import org.junit.Test; | |
| public class JunitSkipTest | |
| { | |
| @BeforeClass | |
| public static void setUpTest() | |
| { |
This file contains hidden or 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
| <build> | |
| <plugins> | |
| <plugin> | |
| <artifactId>maven-war-plugin</artifactId> | |
| <version>2.3</version> | |
| <configuration> | |
| <!-- Exclude servlet-api-2.5.jar from the lib dir --> | |
| <packagingExcludes>WEB-INF/lib/servlet-api-2.5.jar</packagingExcludes> | |
| <!-- Exclude all log4j jars from the lib dir --> | |
| <packagingExcludes>WEB-INF/lib/*log4j*.jar</packagingExcludes> |
This file contains hidden or 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
| import java.util.Collections; | |
| import java.util.Comparator; | |
| import java.util.LinkedHashMap; | |
| import java.util.LinkedList; | |
| import java.util.List; | |
| import java.util.Map; | |
| /** | |
| * Shamelessly stolen from | |
| * http://stackoverflow.com/questions/109383/how-to-sort-a-mapkey-value-on-the-values-in-java/2581754#2581754 |
This file contains hidden or 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
| [mysqld] | |
| ; Default server character set | |
| character-set-server = utf8 | |
| ; Bind to all addresses (including IPv6). | |
| bind-address = :: | |
| [mysql] | |
| ; Default client character set. | |
| default-character-set = utf8 |
This file contains hidden or 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
| <subsystem xmlns="urn:jboss:domain:datasources:1.0"> | |
| <datasources> | |
| <datasource jndi-name="java:jboss/datasources/MySQLDS" pool-name="MySQLDS" enabled="true"> | |
| <connection-url>jdbc:mysql://*hostname*:3306/*dbname*?characterEncoding=UTF-8</connection-url> | |
| <driver>com.mysql</driver> | |
| <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation> | |
| <pool> | |
| <min-pool-size>2</min-pool-size> | |
| <max-pool-size>10</max-pool-size> | |
| <prefill>true</prefill> |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>nl.localhost.test</groupId> | |
| <artifactId>arquillian</artifactId> | |
| <version>1.0-SNAPSHOT</version> | |
| <packaging>jar</packaging> |
OlderNewer