Browse files

Initial checkin of the cube client for Java. Currently limited to fla…

…t data maps
  • Loading branch information...
0 parents commit d57494b1728d2ae0c8109ab19662bb1a403602a7 @mzsanford committed Jun 5, 2012
8 .classpath
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" output="target/classes" path="src/main/java"/>
+ <classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
23 .project
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>Cube</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.m2e.core.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.m2e.core.maven2Nature</nature>
+ </natures>
+</projectDescription>
6 .settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,6 @@
+#Tue Jun 05 11:35:05 PDT 2012
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.source=1.5
5 .settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,5 @@
+#Tue Jun 05 11:35:04 PDT 2012
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
30 pom.xml
@@ -0,0 +1,30 @@
+<?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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>com.mzsanford</groupId>
+ <artifactId>Cube</artifactId>
+ <packaging>jar</packaging>
+ <version>1.0-SNAPSHOT</version>
+ <name>Cube</name>
+ <url>http://maven.apache.org</url>
+ <repositories>
+ <repository>
+ <id>codehaus</id>
+ <url>http://repository.codehaus.org/org/codehaus</url>
+ </repository>
+ </repositories>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-databind</artifactId>
+ <version>2.0.0</version>
+ </dependency>
+ </dependencies>
+</project>
26 src/main/java/com/mzsanford/cube/CubeClient.java
@@ -0,0 +1,26 @@
+/**
+ *
+ */
+package com.mzsanford.cube;
+
+import java.io.IOException;
+
+import com.fasterxml.jackson.core.JsonGenerationException;
+import com.fasterxml.jackson.databind.JsonMappingException;
+
+/**
+ * @author Matt Sanford <matt@mzsanford.com>
+ *
+ */
+public interface CubeClient {
+
+ /**
+ * Send a single Event to the Cube server
+ *
+ * @param event
+ * @throws IOException
+ * @throws JsonMappingException
+ * @throws JsonGenerationException
+ */
+ public void send(Event event) throws JsonGenerationException, JsonMappingException, IOException;
+}
126 src/main/java/com/mzsanford/cube/Event.java
@@ -0,0 +1,126 @@
+/**
+ *
+ */
+package com.mzsanford.cube;
+
+import java.io.IOException;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.Map;
+import java.util.TimeZone;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.core.JsonGenerationException;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize.Inclusion;
+
+/**
+ * @author Matt Sanford <matt@mzsanford.com>
+ *
+ */
+@JsonSerialize(include = Inclusion.NON_NULL)
+public class Event {
+ private String id;
+ private Date date;
+ private String type;
+ private Map<String, String> data;
+
+ /**
+ * Create a new Event object with the default time (now) and id (null)
+ *
+ * @param type
+ */
+ public Event(@JsonProperty("type") String type) {
+ if (null == type) {
+ throw new IllegalArgumentException("Type must not be null");
+ }
+ this.id = null;
+ this.type = type.replaceAll("[^\\w\\d]", "_");
+ this.date = new Date();
+ }
+
+ /**
+ * @return the id
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * @param id
+ * the id to set
+ */
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ /**
+ * @return the date
+ */
+ public Date getDate() {
+ return date;
+ }
+
+ /**
+ * @param date
+ * the date to set
+ */
+ public void setDate(Date date) {
+ this.date = date;
+ }
+
+ /**
+ * @return the type
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * @param type
+ * the type to set
+ */
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ /**
+ * @return the data
+ */
+ public Map<String, String> getData() {
+ return data;
+ }
+
+ /**
+ * @param data
+ * the data to set
+ */
+ public void setData(Map<String, String> data) {
+ // TODO: Only allows a single level of data, not a tree.
+ this.data = data;
+ }
+
+
+ /**
+ * Generate the JSON representation of this Event
+ *
+ * @return
+ * @throws JsonGenerationException
+ * @throws JsonMappingException
+ * @throws IOException
+ */
+ public String toJSON() throws JsonGenerationException,
+ JsonMappingException, IOException {
+ ObjectMapper mapper = new ObjectMapper();
+
+ SimpleDateFormat formatter = new SimpleDateFormat(
+ "yyyy-MM-dd'T'HH:mm:ss'Z'");
+ formatter.setTimeZone(TimeZone.getTimeZone("UTC"));
+ mapper.setDateFormat(formatter);
+
+ return mapper.writeValueAsString(this);
+ }
+
+}
63 src/main/java/com/mzsanford/cube/UDPCubeClient.java
@@ -0,0 +1,63 @@
+/**
+ *
+ */
+package com.mzsanford.cube;
+
+import java.io.IOException;
+import java.net.DatagramPacket;
+import java.net.DatagramSocket;
+import java.net.InetAddress;
+import java.net.SocketException;
+import java.net.UnknownHostException;
+
+import com.fasterxml.jackson.core.JsonGenerationException;
+import com.fasterxml.jackson.databind.JsonMappingException;
+
+/**
+ * @author Matt Sanford <matt@mzsanford.com>
+ *
+ */
+public class UDPCubeClient implements CubeClient {
+ private String host;
+ private int port;
+ private DatagramSocket socket;
+
+ public UDPCubeClient() throws UnknownHostException, SocketException {
+ this("localhost", 1180);
+ }
+
+ public UDPCubeClient(String host, int port) throws UnknownHostException, SocketException {
+ this.host = host;
+ this.port = port;
+ this.socket = new DatagramSocket(this.port,
+ InetAddress.getByName(host));
+ }
+
+ /**
+ * @return the host
+ */
+ public String getHost() {
+ return host;
+ }
+
+ /**
+ * @return the port
+ */
+ public int getPort() {
+ return port;
+ }
+
+ /**
+ * @throws IOException
+ * @throws JsonMappingException
+ * @throws JsonGenerationException
+ * @see com.mzsanford.cube.CubeClient#send(com.mzsanford.cube.Event)
+ */
+ public void send(Event event) throws JsonGenerationException,
+ JsonMappingException, IOException {
+ byte[] packetData = event.toJSON().getBytes("UTF-8");
+ DatagramPacket sendPacket = new DatagramPacket(packetData, packetData.length);
+ socket.send(sendPacket);
+ }
+
+}
57 src/test/java/com/mzsanford/cube/EventTest.java
@@ -0,0 +1,57 @@
+/**
+ *
+ */
+package com.mzsanford.cube;
+
+import java.io.IOException;
+
+import com.fasterxml.jackson.core.JsonGenerationException;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.mzsanford.cube.Event;
+
+import junit.framework.TestCase;
+
+/**
+ * @author Matt Sanford <matt@mzsanford.com>
+ *
+ */
+public class EventTest extends TestCase {
+
+ /**
+ * Test method for {@link com.mzsanford.cube.Event#Event(java.lang.String)}.
+ */
+ public void testEvent() {
+ Event event = new Event("typeHere");
+ assertEquals("typeHere", event.getType());
+ assertNull(event.getId());
+ }
+
+ public void testEventTypeCheck() {
+ assertEquals( "foo_bar", new Event("foo bar").getType() );
+ assertEquals( "foo_bar", new Event("foo.bar").getType() );
+ assertEquals( "foo_bar", new Event("foo+bar").getType() );
+ assertEquals( "foo_bar", new Event("foo-bar").getType() );
+ }
+
+ /**
+ * Test method for {@link com.mzsanford.cube.Event#toJSON()}.
+ * @throws IOException
+ * @throws JsonMappingException
+ * @throws JsonGenerationException
+ */
+ public void testToJSON() throws JsonGenerationException, JsonMappingException, IOException {
+ Event event = new Event("typeHere");
+ String json = event.toJSON();
+
+ ObjectMapper mapper = new ObjectMapper();
+ Event parsedEvent = mapper.readValue(json, Event.class);
+
+ assertEquals(event.getId(), parsedEvent.getId());
+ // Test date matches but without millisecond accuracy
+ assertEquals(event.getDate().getTime() / 1000, parsedEvent.getDate().getTime() / 1000);
+ assertEquals(event.getData(), parsedEvent.getData());
+ assertEquals(event.getType(), parsedEvent.getType());
+ }
+
+}
BIN target/classes/com/mzsanford/cube/CubeClient.class
Binary file not shown.
BIN target/classes/com/mzsanford/cube/Event.class
Binary file not shown.
BIN target/classes/com/mzsanford/cube/UDPCubeClient.class
Binary file not shown.
71 target/surefire-reports/TEST-com.mzsanford.EventTest.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<testsuite failures="0" time="0.298" errors="0" skipped="0" tests="3" name="com.mzsanford.EventTest">
+ <properties>
+ <property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
+ <property name="sun.boot.library.path" value="/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Libraries"/>
+ <property name="java.vm.version" value="20.4-b02-402"/>
+ <property name="awt.nativeDoubleBuffering" value="true"/>
+ <property name="gopherProxySet" value="false"/>
+ <property name="mrj.build" value="11D50"/>
+ <property name="java.vm.vendor" value="Apple Inc."/>
+ <property name="java.vendor.url" value="http://www.apple.com/"/>
+ <property name="path.separator" value=":"/>
+ <property name="java.vm.name" value="Java HotSpot(TM) 64-Bit Server VM"/>
+ <property name="file.encoding.pkg" value="sun.io"/>
+ <property name="user.country" value="US"/>
+ <property name="sun.java.launcher" value="SUN_STANDARD"/>
+ <property name="sun.os.patch.level" value="unknown"/>
+ <property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
+ <property name="user.dir" value="/Users/matt/src/github/cube-java"/>
+ <property name="java.runtime.version" value="1.6.0_29-b11-402-11D50"/>
+ <property name="java.awt.graphicsenv" value="apple.awt.CGraphicsEnvironment"/>
+ <property name="basedir" value="/Users/matt/src/github/cube-java"/>
+ <property name="java.endorsed.dirs" value="/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home/lib/endorsed"/>
+ <property name="os.arch" value="x86_64"/>
+ <property name="surefire.real.class.path" value="/Users/matt/src/github/cube-java/target/surefire/surefirebooter5444748996883132221.jar"/>
+ <property name="java.io.tmpdir" value="/var/folders/67/cvjc5q4j4q156ncpfsy84f7w0000gn/T/"/>
+ <property name="line.separator" value="
+"/>
+ <property name="java.vm.specification.vendor" value="Sun Microsystems Inc."/>
+ <property name="os.name" value="Mac OS X"/>
+ <property name="sun.jnu.encoding" value="MacRoman"/>
+ <property name="java.library.path" value=".:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java"/>
+ <property name="surefire.test.class.path" value="/Users/matt/src/github/cube-java/target/test-classes:/Users/matt/src/github/cube-java/target/classes:/Users/matt/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/Users/matt/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.0.0/jackson-databind-2.0.0.jar:/Users/matt/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.0.0/jackson-annotations-2.0.0.jar:/Users/matt/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.0.0/jackson-core-2.0.0.jar:"/>
+ <property name="java.specification.name" value="Java Platform API Specification"/>
+ <property name="java.class.version" value="50.0"/>
+ <property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
+ <property name="os.version" value="10.7.4"/>
+ <property name="http.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
+ <property name="user.home" value="/Users/matt"/>
+ <property name="user.timezone" value="America/Los_Angeles"/>
+ <property name="java.awt.printerjob" value="apple.awt.CPrinterJob"/>
+ <property name="java.specification.version" value="1.6"/>
+ <property name="file.encoding" value="MacRoman"/>
+ <property name="user.name" value="matt"/>
+ <property name="java.class.path" value="/Users/matt/src/github/cube-java/target/test-classes:/Users/matt/src/github/cube-java/target/classes:/Users/matt/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/Users/matt/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.0.0/jackson-databind-2.0.0.jar:/Users/matt/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.0.0/jackson-annotations-2.0.0.jar:/Users/matt/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.0.0/jackson-core-2.0.0.jar:"/>
+ <property name="java.vm.specification.version" value="1.0"/>
+ <property name="sun.arch.data.model" value="64"/>
+ <property name="java.home" value="/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home"/>
+ <property name="sun.java.command" value="/Users/matt/src/github/cube-java/target/surefire/surefirebooter5444748996883132221.jar /Users/matt/src/github/cube-java/target/surefire/surefire4915360098788938750tmp /Users/matt/src/github/cube-java/target/surefire/surefire5790896741538455608tmp"/>
+ <property name="java.specification.vendor" value="Sun Microsystems Inc."/>
+ <property name="user.language" value="en"/>
+ <property name="awt.toolkit" value="apple.awt.CToolkit"/>
+ <property name="java.vm.info" value="mixed mode"/>
+ <property name="java.version" value="1.6.0_29"/>
+ <property name="java.ext.dirs" value="/Library/Java/Extensions:/System/Library/Java/Extensions:/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home/lib/ext"/>
+ <property name="sun.boot.class.path" value="/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Classes/jsfd.jar:/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar:/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Classes/ui.jar:/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Classes/laf.jar:/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Classes/sunrsasign.jar:/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Classes/jsse.jar:/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Classes/jce.jar:/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Classes/charsets.jar"/>
+ <property name="java.vendor" value="Apple Inc."/>
+ <property name="localRepository" value="/Users/matt/.m2/repository"/>
+ <property name="file.separator" value="/"/>
+ <property name="java.vendor.url.bug" value="http://bugreport.apple.com/"/>
+ <property name="sun.cpu.endian" value="little"/>
+ <property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
+ <property name="mrj.version" value="1070.1.6.0_29-402"/>
+ <property name="socksNonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
+ <property name="ftp.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
+ <property name="sun.cpu.isalist" value=""/>
+ </properties>
+ <testcase time="0.003" classname="com.mzsanford.EventTest" name="testEvent"/>
+ <testcase time="0.001" classname="com.mzsanford.EventTest" name="testEventTypeCheck"/>
+ <testcase time="0.282" classname="com.mzsanford.EventTest" name="testToJSON"/>
+</testsuite>
71 target/surefire-reports/TEST-com.mzsanford.cube.EventTest.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<testsuite failures="0" time="0.281" errors="0" skipped="0" tests="3" name="com.mzsanford.cube.EventTest">
+ <properties>
+ <property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
+ <property name="sun.boot.library.path" value="/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Libraries"/>
+ <property name="java.vm.version" value="20.4-b02-402"/>
+ <property name="awt.nativeDoubleBuffering" value="true"/>
+ <property name="gopherProxySet" value="false"/>
+ <property name="mrj.build" value="11D50"/>
+ <property name="java.vm.vendor" value="Apple Inc."/>
+ <property name="java.vendor.url" value="http://www.apple.com/"/>
+ <property name="path.separator" value=":"/>
+ <property name="java.vm.name" value="Java HotSpot(TM) 64-Bit Server VM"/>
+ <property name="file.encoding.pkg" value="sun.io"/>
+ <property name="user.country" value="US"/>
+ <property name="sun.java.launcher" value="SUN_STANDARD"/>
+ <property name="sun.os.patch.level" value="unknown"/>
+ <property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
+ <property name="user.dir" value="/Users/matt/src/github/cube-java"/>
+ <property name="java.runtime.version" value="1.6.0_29-b11-402-11D50"/>
+ <property name="java.awt.graphicsenv" value="apple.awt.CGraphicsEnvironment"/>
+ <property name="basedir" value="/Users/matt/src/github/cube-java"/>
+ <property name="java.endorsed.dirs" value="/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home/lib/endorsed"/>
+ <property name="os.arch" value="x86_64"/>
+ <property name="surefire.real.class.path" value="/Users/matt/src/github/cube-java/target/surefire/surefirebooter1418498295474214091.jar"/>
+ <property name="java.io.tmpdir" value="/var/folders/67/cvjc5q4j4q156ncpfsy84f7w0000gn/T/"/>
+ <property name="line.separator" value="
+"/>
+ <property name="java.vm.specification.vendor" value="Sun Microsystems Inc."/>
+ <property name="os.name" value="Mac OS X"/>
+ <property name="sun.jnu.encoding" value="MacRoman"/>
+ <property name="java.library.path" value=".:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java"/>
+ <property name="surefire.test.class.path" value="/Users/matt/src/github/cube-java/target/test-classes:/Users/matt/src/github/cube-java/target/classes:/Users/matt/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/Users/matt/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.0.0/jackson-databind-2.0.0.jar:/Users/matt/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.0.0/jackson-annotations-2.0.0.jar:/Users/matt/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.0.0/jackson-core-2.0.0.jar:"/>
+ <property name="java.specification.name" value="Java Platform API Specification"/>
+ <property name="java.class.version" value="50.0"/>
+ <property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
+ <property name="os.version" value="10.7.4"/>
+ <property name="http.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
+ <property name="user.home" value="/Users/matt"/>
+ <property name="user.timezone" value="America/Los_Angeles"/>
+ <property name="java.awt.printerjob" value="apple.awt.CPrinterJob"/>
+ <property name="java.specification.version" value="1.6"/>
+ <property name="file.encoding" value="MacRoman"/>
+ <property name="user.name" value="matt"/>
+ <property name="java.class.path" value="/Users/matt/src/github/cube-java/target/test-classes:/Users/matt/src/github/cube-java/target/classes:/Users/matt/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/Users/matt/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.0.0/jackson-databind-2.0.0.jar:/Users/matt/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.0.0/jackson-annotations-2.0.0.jar:/Users/matt/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.0.0/jackson-core-2.0.0.jar:"/>
+ <property name="java.vm.specification.version" value="1.0"/>
+ <property name="sun.arch.data.model" value="64"/>
+ <property name="java.home" value="/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home"/>
+ <property name="sun.java.command" value="/Users/matt/src/github/cube-java/target/surefire/surefirebooter1418498295474214091.jar /Users/matt/src/github/cube-java/target/surefire/surefire5451810105421707138tmp /Users/matt/src/github/cube-java/target/surefire/surefire563534157275844504tmp"/>
+ <property name="java.specification.vendor" value="Sun Microsystems Inc."/>
+ <property name="user.language" value="en"/>
+ <property name="awt.toolkit" value="apple.awt.CToolkit"/>
+ <property name="java.vm.info" value="mixed mode"/>
+ <property name="java.version" value="1.6.0_29"/>
+ <property name="java.ext.dirs" value="/Library/Java/Extensions:/System/Library/Java/Extensions:/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home/lib/ext"/>
+ <property name="sun.boot.class.path" value="/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Classes/jsfd.jar:/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar:/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Classes/ui.jar:/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Classes/laf.jar:/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Classes/sunrsasign.jar:/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Classes/jsse.jar:/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Classes/jce.jar:/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Classes/charsets.jar"/>
+ <property name="java.vendor" value="Apple Inc."/>
+ <property name="localRepository" value="/Users/matt/.m2/repository"/>
+ <property name="file.separator" value="/"/>
+ <property name="java.vendor.url.bug" value="http://bugreport.apple.com/"/>
+ <property name="sun.cpu.endian" value="little"/>
+ <property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
+ <property name="mrj.version" value="1070.1.6.0_29-402"/>
+ <property name="socksNonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
+ <property name="ftp.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
+ <property name="sun.cpu.isalist" value=""/>
+ </properties>
+ <testcase time="0.003" classname="com.mzsanford.cube.EventTest" name="testEvent"/>
+ <testcase time="0" classname="com.mzsanford.cube.EventTest" name="testEventTypeCheck"/>
+ <testcase time="0.266" classname="com.mzsanford.cube.EventTest" name="testToJSON"/>
+</testsuite>
4 target/surefire-reports/com.mzsanford.EventTest.txt
@@ -0,0 +1,4 @@
+-------------------------------------------------------------------------------
+Test set: com.mzsanford.EventTest
+-------------------------------------------------------------------------------
+Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.297 sec
4 target/surefire-reports/com.mzsanford.cube.EventTest.txt
@@ -0,0 +1,4 @@
+-------------------------------------------------------------------------------
+Test set: com.mzsanford.cube.EventTest
+-------------------------------------------------------------------------------
+Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.281 sec
BIN target/test-classes/com/mzsanford/cube/EventTest.class
Binary file not shown.

0 comments on commit d57494b

Please sign in to comment.