@Test public void testInitPackageRegistry() { EPackage.Registry packageRegistry = mock(EPackage.Registry.class); DroolsPackage drools = mock(DroolsPackage.class); BpsimPackage bpsim = mock(BpsimPackage.class); BpmnDiPackage bpmnDiPackage = mock(BpmnDiPackage.class); DiPackage diPackage = mock(DiPackage.class); DcPackage dcPackage = mock(DcPackage.class); Bpmn2Package bpmn2Package = mock(Bpmn2Package.class); Bpmn2Resource.initPackageRegistry(packageRegistry, drools, bpsim, bpmnDiPackage, diPackage, dcPackage, bpmn2Package); verify(packageRegistry, times(1)).put(Bpmn2Resource.URI_DROOLS, drools); verify(packageRegistry, times(1)).put(Bpmn2Resource.URI_BPSIM, bpsim); verify(packageRegistry, times(1)).put(Bpmn2Resource.URI_BPMN_DI, bpmnDiPackage); verify(packageRegistry, times(1)).put(Bpmn2Resource.URI_DI, diPackage); verify(packageRegistry, times(1)).put(Bpmn2Resource.URI_DC, dcPackage); verify(packageRegistry, times(1)).put(Bpmn2Resource.URI_BPMN2, bpmn2Package); }
static void initPackageRegistry(EPackage.Registry packageRegistry, DroolsPackage drools, BpsimPackage bpsim, BpmnDiPackage bpmnDiPackage, DiPackage diPackage, DcPackage dcPackage, Bpmn2Package bpmn2Package) { packageRegistry.put(URI_BPMN2, bpmn2Package); packageRegistry.put(URI_DI, diPackage); packageRegistry.put(URI_DC, dcPackage); packageRegistry.put(URI_BPMN_DI, bpmnDiPackage); packageRegistry.put(URI_DROOLS, drools); packageRegistry.put(URI_BPSIM, bpsim); ColorPackageImpl.init(); }
Bpmn2Resource extends XMLResourceImpl { static void initPackageRegistry(EPackage.Registry packageRegistry, DroolsPackage drools, BpsimPackage bpsim, BpmnDiPackage bpmnDiPackage, DiPackage diPackage, DcPackage dcPackage, Bpmn2Package bpmn2Package) { packageRegistry.put(URI_BPMN2, bpmn2Package); packageRegistry.put(URI_DI, diPackage); packageRegistry.put(URI_DC, dcPackage); packageRegistry.put(URI_BPMN_DI, bpmnDiPackage); packageRegistry.put(URI_DROOLS, drools); packageRegistry.put(URI_BPSIM, bpsim); ColorPackageImpl.init(); } }
Bpmn2Resource extends XMLResourceImpl { static void initPackageRegistry(EPackage.Registry packageRegistry, DroolsPackage drools, BpsimPackage bpsim, BpmnDiPackage bpmnDiPackage, DiPackage diPackage, DcPackage dcPackage, Bpmn2Package bpmn2Package) { packageRegistry.put(URI_BPMN2, bpmn2Package); packageRegistry.put(URI_DI, diPackage); packageRegistry.put(URI_DC, dcPackage); packageRegistry.put(URI_BPMN_DI, bpmnDiPackage); packageRegistry.put(URI_DROOLS, drools); packageRegistry.put(URI_BPSIM, bpsim); ColorPackageImpl.init(); } protected  Bpmn2Resource(URI uri); }
Bpmn2Resource extends XMLResourceImpl { static void initPackageRegistry(EPackage.Registry packageRegistry, DroolsPackage drools, BpsimPackage bpsim, BpmnDiPackage bpmnDiPackage, DiPackage diPackage, DcPackage dcPackage, Bpmn2Package bpmn2Package) { packageRegistry.put(URI_BPMN2, bpmn2Package); packageRegistry.put(URI_DI, diPackage); packageRegistry.put(URI_DC, dcPackage); packageRegistry.put(URI_BPMN_DI, bpmnDiPackage); packageRegistry.put(URI_DROOLS, drools); packageRegistry.put(URI_BPSIM, bpsim); ColorPackageImpl.init(); } protected  Bpmn2Resource(URI uri); void load(Node node); void load(String contents); String toBPMN2(); }
Bpmn2Resource extends XMLResourceImpl { static void initPackageRegistry(EPackage.Registry packageRegistry, DroolsPackage drools, BpsimPackage bpsim, BpmnDiPackage bpmnDiPackage, DiPackage diPackage, DcPackage dcPackage, Bpmn2Package bpmn2Package) { packageRegistry.put(URI_BPMN2, bpmn2Package); packageRegistry.put(URI_DI, diPackage); packageRegistry.put(URI_DC, dcPackage); packageRegistry.put(URI_BPMN_DI, bpmnDiPackage); packageRegistry.put(URI_DROOLS, drools); packageRegistry.put(URI_BPSIM, bpsim); ColorPackageImpl.init(); } protected  Bpmn2Resource(URI uri); void load(Node node); void load(String contents); String toBPMN2();  }