Skip to content

Commit

Permalink
update to Neo4j and latest framework continued
Browse files Browse the repository at this point in the history
  • Loading branch information
bachmanm committed Apr 30, 2016
1 parent 6405618 commit 4459046
Show file tree
Hide file tree
Showing 9 changed files with 480 additions and 50 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ language: java

jdk:
- oraclejdk8
- oraclejdk7

sudo: true

Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
<modelVersion>4.0.0</modelVersion>

<artifactId>timetree</artifactId>
<version>3.0.0.37.25-SNAPSHOT</version>
<version>3.0.0.38.25-SNAPSHOT</version>

<parent>
<groupId>com.graphaware.neo4j</groupId>
<artifactId>module-parent</artifactId>
<version>3.0.0.37</version>
<version>3.0.0.38</version>
</parent>

<name>GraphAware TimeTree Module</name>
Expand Down Expand Up @@ -101,7 +101,7 @@
<groupId>com.graphaware.neo4j</groupId>
<artifactId>resttest</artifactId>
<scope>test</scope>
<version>3.0.0.37.13</version>
<version>3.0.0.38.13</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.graphaware.module.timetree.domain.TimeTreeLabels;
import com.graphaware.test.data.DatabasePopulator;
import com.graphaware.test.data.SingleTransactionPopulator;
import com.graphaware.test.integration.EmbeddedDatabaseIntegrationTest;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.junit.Test;
Expand All @@ -37,7 +38,7 @@
/**
* Unit test for {@link com.graphaware.module.timetree.SingleTimeTree}.
*/
public class CustomRootTimeTreeTest extends ServerIntegrationTest {
public class CustomRootTimeTreeTest extends EmbeddedDatabaseIntegrationTest {

private static final DateTimeZone UTC = DateTimeZone.forTimeZone(TimeZone.getTimeZone("UTC"));

Expand All @@ -46,7 +47,7 @@ protected DatabasePopulator databasePopulator() {
return new SingleTransactionPopulator() {
@Override
protected void doPopulate(GraphDatabaseService database) {
database.createNode(DynamicLabel.label("CustomRoot"));
database.createNode(Label.label("CustomRoot"));
}
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.graphaware.common.util.PropertyContainerUtils;
import com.graphaware.module.timetree.domain.TimeInstant;
import com.graphaware.module.timetree.domain.TimeTreeLabels;
import com.graphaware.test.integration.EmbeddedDatabaseIntegrationTest;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.junit.Before;
Expand All @@ -31,15 +32,14 @@

import static com.graphaware.module.timetree.SingleTimeTree.VALUE_PROPERTY;
import static com.graphaware.module.timetree.domain.Resolution.*;
import com.graphaware.test.integration.ServerIntegrationTest;
import static com.graphaware.test.unit.GraphUnit.assertSameGraph;
import static org.junit.Assert.*;
import static org.neo4j.graphdb.DynamicRelationshipType.withName;

/**
* Unit test for {@link SingleTimeTree}.
*/
public class SingleTimeTreeTest extends ServerIntegrationTest {
public class SingleTimeTreeTest extends EmbeddedDatabaseIntegrationTest {

private TimeTree timeTree; //class under test

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.graphaware.module.timetree.domain.Event;
import com.graphaware.module.timetree.domain.Resolution;
import com.graphaware.module.timetree.domain.TimeInstant;
import com.graphaware.test.integration.EmbeddedDatabaseIntegrationTest;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.junit.Before;
Expand All @@ -32,18 +33,17 @@

import static com.graphaware.module.timetree.domain.Resolution.MONTH;
import static com.graphaware.module.timetree.domain.Resolution.YEAR;
import com.graphaware.test.integration.ServerIntegrationTest;
import static com.graphaware.test.unit.GraphUnit.assertSameGraph;
import static org.junit.Assert.*;
import static org.neo4j.graphdb.Direction.BOTH;
import static org.neo4j.graphdb.Direction.OUTGOING;
import static org.neo4j.graphdb.DynamicRelationshipType.withName;
import static org.neo4j.graphdb.RelationshipType.*;
import static org.neo4j.helpers.collection.Iterables.count;

/**
* Unit test for {@link com.graphaware.module.timetree.TimeTreeBackedEvents}.
*/
public class TimeTreeBackedEventsTest extends ServerIntegrationTest {
public class TimeTreeBackedEventsTest extends EmbeddedDatabaseIntegrationTest {

private static final RelationshipType AT_TIME = withName("AT_TIME");
private static final RelationshipType AT_OTHER_TIME = withName("AT_OTHER_TIME");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,18 @@
import static com.graphaware.module.timetree.domain.Resolution.MONTH;
import com.graphaware.test.integration.EmbeddedDatabaseIntegrationTest;
import static com.graphaware.test.unit.GraphUnit.assertSameGraph;
import static org.neo4j.graphdb.Label.*;

import java.io.File;

/**
* Test for {@link TimeTreeModule} set up programatically.
*/
public class TimeTreeModuleMultiRootProgrammaticTest extends EmbeddedDatabaseIntegrationTest {

private static final Label Email = DynamicLabel.label("Email");
private static final Label Event = DynamicLabel.label("Event");
private static final Label CustomRoot = DynamicLabel.label("CustomRoot");
private static final Label Email = label("Email");
private static final Label Event = label("Event");
private static final Label CustomRoot = label("CustomRoot");
private static final long TIMESTAMP;

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,17 @@
import static com.graphaware.module.timetree.domain.Resolution.MONTH;
import com.graphaware.test.integration.EmbeddedDatabaseIntegrationTest;
import static com.graphaware.test.unit.GraphUnit.assertSameGraph;
import static org.neo4j.graphdb.Label.*;

import java.io.File;

/**
* Test for {@link com.graphaware.module.timetree.module.TimeTreeModule} set up programatically.
*/
public class TimeTreeModuleSingleRootProgrammaticTest extends EmbeddedDatabaseIntegrationTest {

private static final Label Email = DynamicLabel.label("Email");
private static final Label Event = DynamicLabel.label("Event");
private static final Label Email = label("Email");
private static final Label Event = label("Event");
private static final long TIMESTAMP;

static {
Expand Down
Loading

0 comments on commit 4459046

Please sign in to comment.