- @Test
- public void testCreateSimulator() throws Exception {
- when(accessor.getCapabilites().isSupportingNamespace(ORANHWCOMPONENT.QNAME)).thenReturn(false);
- when(accessor.getCapabilites().isSupportingNamespace(SimulatorStatus.QNAME)).thenReturn(true);
- ORanNetworkElementFactory factory = new ORanNetworkElementFactory();
- assertTrue(factory.create(accessor, serviceProvider).isPresent());
- }
-
- @Test
- public void testCreateNone() throws Exception {
- when(accessor.getCapabilites().isSupportingNamespace(ORANHWCOMPONENT.QNAME)).thenReturn(false);
- when(accessor.getCapabilites().isSupportingNamespace(SimulatorStatus.QNAME)).thenReturn(false);
- ORanNetworkElementFactory factory = new ORanNetworkElementFactory();
- assertTrue(!(factory.create(accessor, serviceProvider).isPresent()));
- }
-
- @After
- public void cleanUp() throws Exception {