@Test public void test_AbstractProperty() { ITypeArtifact a = getType("a.api.AService"); assertEquals(true, a.getProperty("abstract")); ITypeArtifact ee = getType("a.impl.AServiceImpl"); assertEquals(false, ee.getProperty("abstract")); }
/* * (non-Javadoc) * * @see org.bundlemaker.analysis.tinkerpop.test.AbstractBundleMakerBlueprintsTest#assertCorrectTestModel() */ @Override protected void assertCorrectTestModel() throws Exception { assertPackageExists("a.api"); assertPackageExists("a.impl"); assertPackageExists("client"); ITypeArtifact aservice = getType("a.api.AService"); assertTrue(aservice.getAssociatedType().isAbstractType()); ITypeArtifact aserviceImpl = getType("a.impl.AServiceImpl"); assertFalse(aserviceImpl.getAssociatedType().isAbstractType()); ITypeArtifact client = getType("client.Client"); ITypeArtifact brokenClient = getType("client.BrokenClient"); getDependency(aserviceImpl, aservice, DependencyKind.IMPLEMENTS); getDependency(client, aservice, DependencyKind.USES); getDependency(brokenClient, aservice, DependencyKind.USES); getDependency(brokenClient, aserviceImpl, DependencyKind.USES); }
@Test public void test_ArtifactTypeProperty() { ITypeArtifact a = getType("a.api.AService"); assertEquals("type", a.getProperty("artifacttype")); }