private static final String id5 = "hsdnfngh56"; //$NON-NLS-1$
private static final String id6 = "cnnbcbn6"; //$NON-NLS-1$
@Test
public void test() throws ParseException {
XMLReference ref;
XMLArtefact artefact;
artefact = constructArtefact(file, id1);
ref = getReference(artefact);
testReference(artefact, ref);
Assert.assertEquals("mockrepository_provider", ref //$NON-NLS-1$
.getProvider().getId());
Assert.assertEquals("CompositePattern", ref.getProvider() //$NON-NLS-1$
.getArtefact());
Assert.assertTrue(ref.getOperations().isEmpty());
Assert.assertNotNull(ref.getIntegrator());
Assert.assertEquals("integrator.image", ref //$NON-NLS-1$
.getIntegrator().getId());
artefact = constructArtefact(file, id2);
ref = getReference(artefact);
testReference(artefact, ref);
Assert.assertTrue(ref.getOperations().size() == 1);
Assert.assertEquals("operation.diagramtoimage", ref //$NON-NLS-1$
.getOperations().get(0).getId());
artefact = constructArtefact(file, id3);
ref = getReference(artefact);
testReference(artefact, ref);
Assert.assertTrue(ref.getOperations().size() == 3);
artefact = constructArtefact(file, id4);
ref = getReference(artefact);
testReference(artefact, ref);
Assert.assertNull(ref.getIntegrator());
artefact = constructArtefact(file, id5);
ref = getReference(artefact);
testReference(artefact, ref);