public @Test void createNodeNullBoundsNullExtradata() { testCreateNode("feature1", id1, id2, TYPE.FEATURE, null, null); testCreateNode("feature2", id2, ObjectId.NULL, TYPE.FEATURE, null, null); testCreateNode("tree1", id1, id2, TYPE.TREE, null, null); testCreateNode("tree2", id2, ObjectId.NULL, TYPE.TREE, null, null); }
public @Test void createNodeNullExtradata() { Envelope bounds = new Envelope(-179.999999999, 179.99999999, -90.0000000001, 90.000000001); testCreateNode("feature1", id1, id2, TYPE.FEATURE, bounds, null); testCreateNode("feature2", id2, ObjectId.NULL, TYPE.FEATURE, bounds, null); testCreateNode("tree1", id1, id2, TYPE.TREE, bounds, null); testCreateNode("tree2", id2, ObjectId.NULL, TYPE.TREE, bounds, null); }
public @Test void createNode() { Envelope bounds = new Envelope(-179.999999999, 179.99999999, -90.0000000001, 90.000000001); Map<String, Object> extraData = createExtraData(0); testCreateNode("feature1", id1, id2, TYPE.FEATURE, bounds, extraData); testCreateNode("feature2", id2, ObjectId.NULL, TYPE.FEATURE, bounds, extraData); testCreateNode("tree1", id1, id2, TYPE.TREE, bounds, extraData); testCreateNode("tree2", id2, ObjectId.NULL, TYPE.TREE, bounds, extraData); }
public @Test void createNodeNullName() { ex.expect(NullPointerException.class); ex.expectMessage("name"); testCreateNode(null, id1, id2, TYPE.FEATURE, null, null); }
public @Test void createNodeNullObjectId() { ex.expect(NullPointerException.class); ex.expectMessage("objectId"); testCreateNode("id", null, id2, TYPE.FEATURE, null, null); }
public @Test void createNodeNullMetadataId() { ex.expect(NullPointerException.class); ex.expectMessage("metadataId"); testCreateNode("id", id1, null, TYPE.FEATURE, null, null); }
public @Test void createNodeNullType() { ex.expect(NullPointerException.class); ex.expectMessage("type"); TYPE type = null; testCreateNode("id", id1, id2, type, null, null); }
public @Test void createNodeIllegalType() { ex.expect(IllegalArgumentException.class); ex.expectMessage("Invalid object type"); TYPE type = TYPE.COMMIT; testCreateNode("id", id1, id2, type, null, null); }