Skip to content

Commit

Permalink
#72 migrate test to be parametrized with CdoUnits
Browse files Browse the repository at this point in the history
  • Loading branch information
DirkMahler committed Feb 14, 2014
1 parent cb24586 commit e954170
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
package com.buschmais.cdo.neo4j.test.embedded.relation.typed;
package com.buschmais.cdo.neo4j.test.relation.typed;

import com.buschmais.cdo.api.CdoManager;
import com.buschmais.cdo.neo4j.test.embedded.AbstractEmbeddedCdoManagerTest;
import com.buschmais.cdo.neo4j.test.embedded.relation.typed.composite.TreeNode;
import com.buschmais.cdo.neo4j.test.embedded.relation.typed.composite.TreeNodeRelation;
import com.buschmais.cdo.api.bootstrap.CdoUnit;
import com.buschmais.cdo.neo4j.test.AbstractCdoManagerTest;
import com.buschmais.cdo.neo4j.test.relation.typed.composite.TreeNode;
import com.buschmais.cdo.neo4j.test.relation.typed.composite.TreeNodeRelation;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;

import java.net.URISyntaxException;
import java.util.Collection;

import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.core.IsCollectionContaining.hasItems;
import static org.junit.Assert.assertThat;

/**
* Created by dimahler on 2/13/14.
*/
public class TreeTest extends AbstractEmbeddedCdoManagerTest {
@RunWith(Parameterized.class)
public class TreeTest extends AbstractCdoManagerTest {

public TreeTest(CdoUnit cdoUnit) {
super(cdoUnit);
}

@Override
protected Class<?>[] getTypes() {
return new Class<?>[]{TreeNode.class, TreeNodeRelation.class};
@Parameterized.Parameters
public static Collection<Object[]> getCdoUnits() throws URISyntaxException {
return cdoUnits(TreeNode.class, TreeNodeRelation.class);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.buschmais.cdo.neo4j.test.embedded.relation.typed.composite;
package com.buschmais.cdo.neo4j.test.relation.typed.composite;

import com.buschmais.cdo.neo4j.api.annotation.Label;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.buschmais.cdo.neo4j.test.embedded.relation.typed.composite;
package com.buschmais.cdo.neo4j.test.relation.typed.composite;

import com.buschmais.cdo.neo4j.api.annotation.Relation;

Expand Down

0 comments on commit e954170

Please sign in to comment.