Search in sources :

Example 1 with TurboFile

use of org.tmdmaker.core.model.other.TurboFile in project tmdmaker by tmdmaker.

the class ModelFeatureTest method testCanCreateMultivalueOr.

/**
 * モデル毎の多値のOR作成可否をテスト
 */
@Test
public void testCanCreateMultivalueOr() {
    CombinationTable t = new CombinationTable();
    assertEquals(true, t.canCreateMultivalueOr());
    Entity e = new Entity();
    assertEquals(true, e.canCreateMultivalueOr());
    Detail d = new Detail();
    assertEquals(true, d.canCreateMultivalueOr());
    Laputa l = new Laputa();
    assertEquals(false, l.canCreateMultivalueOr());
    MappingList m = new MappingList();
    assertEquals(true, m.canCreateMultivalueOr());
    MultivalueAndSuperset ms = new MultivalueAndSuperset();
    assertEquals(false, ms.canCreateMultivalueOr());
    MultivalueOrEntity mo = new MultivalueOrEntity();
    assertEquals(true, mo.canCreateMultivalueOr());
    RecursiveTable r = new RecursiveTable();
    assertEquals(true, r.canCreateMultivalueOr());
    SubsetEntity s = new SubsetEntity();
    assertEquals(true, s.canCreateMultivalueOr());
    VirtualEntity v = new VirtualEntity();
    assertEquals(false, v.canCreateMultivalueOr());
    VirtualSuperset vs = new VirtualSuperset();
    assertEquals(false, vs.canCreateMultivalueOr());
    Memo mm = new Memo();
    assertEquals(false, mm.canCreateMultivalueOr());
    TurboFile tb = new TurboFile();
    assertEquals(false, tb.canCreateMultivalueOr());
}
Also used : SubsetEntity(org.tmdmaker.core.model.SubsetEntity) MultivalueOrEntity(org.tmdmaker.core.model.MultivalueOrEntity) SubsetEntity(org.tmdmaker.core.model.SubsetEntity) Entity(org.tmdmaker.core.model.Entity) VirtualEntity(org.tmdmaker.core.model.VirtualEntity) MultivalueAndSuperset(org.tmdmaker.core.model.MultivalueAndSuperset) TurboFile(org.tmdmaker.core.model.other.TurboFile) MappingList(org.tmdmaker.core.model.MappingList) MultivalueOrEntity(org.tmdmaker.core.model.MultivalueOrEntity) VirtualSuperset(org.tmdmaker.core.model.VirtualSuperset) CombinationTable(org.tmdmaker.core.model.CombinationTable) VirtualEntity(org.tmdmaker.core.model.VirtualEntity) RecursiveTable(org.tmdmaker.core.model.RecursiveTable) Laputa(org.tmdmaker.core.model.Laputa) Detail(org.tmdmaker.core.model.Detail) Memo(org.tmdmaker.core.model.other.Memo) Test(org.junit.Test)

Example 2 with TurboFile

use of org.tmdmaker.core.model.other.TurboFile in project tmdmaker by tmdmaker.

the class ModelFeatureTest method testCanCreateSubset.

/**
 * モデル毎のサブセットの作成可否をテスト
 */
@Test
public void testCanCreateSubset() {
    CombinationTable t = new CombinationTable();
    assertEquals(true, t.canCreateSubset());
    Entity e = new Entity();
    assertEquals(true, e.canCreateSubset());
    Detail d = new Detail();
    assertEquals(true, d.canCreateSubset());
    Laputa l = new Laputa();
    assertEquals(false, l.canCreateSubset());
    MappingList m = new MappingList();
    assertEquals(true, m.canCreateSubset());
    MultivalueAndSuperset ms = new MultivalueAndSuperset();
    assertEquals(false, ms.canCreateSubset());
    MultivalueOrEntity mo = new MultivalueOrEntity();
    assertEquals(true, mo.canCreateSubset());
    RecursiveTable r = new RecursiveTable();
    assertEquals(true, r.canCreateSubset());
    SubsetEntity s = new SubsetEntity();
    assertEquals(true, s.canCreateSubset());
    VirtualEntity v = new VirtualEntity();
    assertEquals(false, v.canCreateSubset());
    VirtualSuperset vs = new VirtualSuperset();
    assertEquals(false, vs.canCreateSubset());
    Memo mm = new Memo();
    assertEquals(false, mm.canCreateSubset());
    TurboFile tb = new TurboFile();
    assertEquals(false, tb.canCreateSubset());
}
Also used : SubsetEntity(org.tmdmaker.core.model.SubsetEntity) MultivalueOrEntity(org.tmdmaker.core.model.MultivalueOrEntity) SubsetEntity(org.tmdmaker.core.model.SubsetEntity) Entity(org.tmdmaker.core.model.Entity) VirtualEntity(org.tmdmaker.core.model.VirtualEntity) MultivalueAndSuperset(org.tmdmaker.core.model.MultivalueAndSuperset) TurboFile(org.tmdmaker.core.model.other.TurboFile) MappingList(org.tmdmaker.core.model.MappingList) MultivalueOrEntity(org.tmdmaker.core.model.MultivalueOrEntity) VirtualSuperset(org.tmdmaker.core.model.VirtualSuperset) CombinationTable(org.tmdmaker.core.model.CombinationTable) VirtualEntity(org.tmdmaker.core.model.VirtualEntity) RecursiveTable(org.tmdmaker.core.model.RecursiveTable) Laputa(org.tmdmaker.core.model.Laputa) Detail(org.tmdmaker.core.model.Detail) Memo(org.tmdmaker.core.model.other.Memo) Test(org.junit.Test)

Example 3 with TurboFile

use of org.tmdmaker.core.model.other.TurboFile in project tmdmaker by tmdmaker.

the class ModelFeatureTest method testCanCreateVirtualEntity.

/**
 * モデル毎のみなしエンティティ作成可否をテスト
 */
@Test
public void testCanCreateVirtualEntity() {
    CombinationTable t = new CombinationTable();
    assertEquals(true, t.canCreateVirtualEntity());
    Entity e = new Entity();
    assertEquals(true, e.canCreateVirtualEntity());
    Detail d = new Detail();
    assertEquals(true, d.canCreateVirtualEntity());
    Laputa l = new Laputa();
    assertEquals(false, l.canCreateVirtualEntity());
    MappingList m = new MappingList();
    assertEquals(true, m.canCreateVirtualEntity());
    MultivalueAndSuperset ms = new MultivalueAndSuperset();
    assertEquals(false, ms.canCreateVirtualEntity());
    MultivalueOrEntity mo = new MultivalueOrEntity();
    assertEquals(true, mo.canCreateVirtualEntity());
    RecursiveTable r = new RecursiveTable();
    assertEquals(true, r.canCreateVirtualEntity());
    SubsetEntity s = new SubsetEntity();
    assertEquals(true, s.canCreateVirtualEntity());
    VirtualEntity v = new VirtualEntity();
    assertEquals(false, v.canCreateVirtualEntity());
    VirtualSuperset vs = new VirtualSuperset();
    assertEquals(false, vs.canCreateVirtualEntity());
    Memo mm = new Memo();
    assertEquals(false, mm.canCreateVirtualEntity());
    TurboFile tb = new TurboFile();
    assertEquals(false, tb.canCreateVirtualEntity());
}
Also used : SubsetEntity(org.tmdmaker.core.model.SubsetEntity) MultivalueOrEntity(org.tmdmaker.core.model.MultivalueOrEntity) SubsetEntity(org.tmdmaker.core.model.SubsetEntity) Entity(org.tmdmaker.core.model.Entity) VirtualEntity(org.tmdmaker.core.model.VirtualEntity) MultivalueAndSuperset(org.tmdmaker.core.model.MultivalueAndSuperset) TurboFile(org.tmdmaker.core.model.other.TurboFile) MappingList(org.tmdmaker.core.model.MappingList) MultivalueOrEntity(org.tmdmaker.core.model.MultivalueOrEntity) VirtualSuperset(org.tmdmaker.core.model.VirtualSuperset) CombinationTable(org.tmdmaker.core.model.CombinationTable) VirtualEntity(org.tmdmaker.core.model.VirtualEntity) RecursiveTable(org.tmdmaker.core.model.RecursiveTable) Laputa(org.tmdmaker.core.model.Laputa) Detail(org.tmdmaker.core.model.Detail) Memo(org.tmdmaker.core.model.other.Memo) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)3 CombinationTable (org.tmdmaker.core.model.CombinationTable)3 Detail (org.tmdmaker.core.model.Detail)3 Entity (org.tmdmaker.core.model.Entity)3 Laputa (org.tmdmaker.core.model.Laputa)3 MappingList (org.tmdmaker.core.model.MappingList)3 MultivalueAndSuperset (org.tmdmaker.core.model.MultivalueAndSuperset)3 MultivalueOrEntity (org.tmdmaker.core.model.MultivalueOrEntity)3 RecursiveTable (org.tmdmaker.core.model.RecursiveTable)3 SubsetEntity (org.tmdmaker.core.model.SubsetEntity)3 VirtualEntity (org.tmdmaker.core.model.VirtualEntity)3 VirtualSuperset (org.tmdmaker.core.model.VirtualSuperset)3 Memo (org.tmdmaker.core.model.other.Memo)3 TurboFile (org.tmdmaker.core.model.other.TurboFile)3