Class DmrToSegmentsMigratorImpl_Test
- java.lang.Object
-
- org.eclipse.emfforms.internal.ide.view.segments.DmrToSegmentsMigratorImpl_Test
-
public class DmrToSegmentsMigratorImpl_Test extends java.lang.Object
Unit tests forDmrToSegmentsMigratorImpl
. These tests test the migration behavior based on a mockedEMFFormsSegmentGenerator
and with an already loaded Resource.For a "realistic" integration test see
DmrToSegmentsMigratorImpl_ITest
.- Author:
- Lucas Koehler
-
-
Constructor Summary
Constructors Constructor Description DmrToSegmentsMigratorImpl_Test()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
needsMigration_legacyOnly()
void
needsMigration_mixed()
void
needsMigration_segmentDmrsOnly()
void
performMigration()
void
performMigration_emptyResource()
void
performMigration_mixed()
Tests migration for a view with a legacy and a segment dmr.void
performMigration_preReplaceProcessor()
Tests that the migration applies givenDmrToSegmentsMigrator.PreReplaceProcessor
s and does so in the correct order.void
performMigration_tableWithCrossReference()
void
setUp()
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
performMigration
public void performMigration() throws DmrToSegmentsMigrationException
- Throws:
DmrToSegmentsMigrationException
-
performMigration_tableWithCrossReference
public void performMigration_tableWithCrossReference() throws DmrToSegmentsMigrationException
- Throws:
DmrToSegmentsMigrationException
-
performMigration_mixed
public void performMigration_mixed() throws DmrToSegmentsMigrationException
Tests migration for a view with a legacy and a segment dmr.- Throws:
DmrToSegmentsMigrationException
-
performMigration_preReplaceProcessor
public void performMigration_preReplaceProcessor() throws DmrToSegmentsMigrationException
Tests that the migration applies givenDmrToSegmentsMigrator.PreReplaceProcessor
s and does so in the correct order.- Throws:
DmrToSegmentsMigrationException
-
performMigration_emptyResource
public void performMigration_emptyResource() throws DmrToSegmentsMigrationException
- Throws:
DmrToSegmentsMigrationException
-
needsMigration_mixed
public void needsMigration_mixed()
-
needsMigration_legacyOnly
public void needsMigration_legacyOnly()
-
needsMigration_segmentDmrsOnly
public void needsMigration_segmentDmrsOnly()
-
-