All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.umlg.tests.componenttest.TestComponent Maven / Gradle / Ivy

The newest version!
package org.umlg.tests.componenttest;

import org.junit.Assert;
import org.junit.Test;
import org.umlg.componenttest.Space;
import org.umlg.componenttest.SpaceTime;
import org.umlg.componenttest.Time;
import org.umlg.concretetest.God;
import org.umlg.concretetest.Universe;
import org.umlg.runtime.test.BaseLocalDbTest;

public class TestComponent extends BaseLocalDbTest {

	@SuppressWarnings("unused")
	@Test
	public void testComponent() {
		God god = new God(true);
		god.setName("THEGOD");
		Universe universe1 = new Universe(god);
		universe1.setName("universe1");
		SpaceTime st1 = new SpaceTime(universe1);
		Space s1 = new Space(st1);
		Time t1 = new Time(st1);

        db.commit();
		Assert.assertEquals(4, countVertices());
		Assert.assertEquals(4, countEdges());
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy