@Test void testLoadWithNullConfigFolderPath() throws JsonProcessingException { UnsupportedEntityLoader unsupportedEntityLoader = new UnsupportedEntityLoader(jsonTools, new IdGenerator(), DocumentTools.INSTANCE); UnsupportedGatewayEntity gatewayEntity = new UnsupportedGatewayEntity(); gatewayEntity.setType("SSG_ACTIVE"); gatewayEntity.setName("Test MQ"); gatewayEntity.setId("101c874561f1c09907094335ae786924"); String yaml = jsonTools.getObjectWriter(JSON).writeValueAsString(gatewayEntity); Bundle bundle = new Bundle(); unsupportedEntityLoader.load(bundle, "SSG_ACTIVE/Test MQ", yaml, null); UnsupportedGatewayEntity entity = bundle.getUnsupportedEntities().get("SSG_ACTIVE/Test MQ"); assertEquals(1, bundle.getUnsupportedEntities().size()); assertEquals("SSG_ACTIVE", entity.getType()); }
@Override public void load(final Bundle bundle, final File rootDir) { super.load(bundle, rootDir); updateItemXml(bundle, new File(rootDir, "config")); }
UnsupportedEntityLoader extends EntityLoaderBase<UnsupportedGatewayEntity> implements EntityLoader { @Override public void load(final Bundle bundle, final File rootDir) { super.load(bundle, rootDir); updateItemXml(bundle, new File(rootDir, "config")); } }
UnsupportedEntityLoader extends EntityLoaderBase<UnsupportedGatewayEntity> implements EntityLoader { @Override public void load(final Bundle bundle, final File rootDir) { super.load(bundle, rootDir); updateItemXml(bundle, new File(rootDir, "config")); } @Inject  UnsupportedEntityLoader(final JsonTools jsonTools, final IdGenerator idGenerator, final DocumentTools documentTools); }
UnsupportedEntityLoader extends EntityLoaderBase<UnsupportedGatewayEntity> implements EntityLoader { @Override public void load(final Bundle bundle, final File rootDir) { super.load(bundle, rootDir); updateItemXml(bundle, new File(rootDir, "config")); } @Inject  UnsupportedEntityLoader(final JsonTools jsonTools, final IdGenerator idGenerator, final DocumentTools documentTools); @Override void load(final Bundle bundle, final File rootDir); @Override void load(Bundle bundle, String name, String value, String environmentConfigurationFolderPath); @Override String getEntityType(); }
UnsupportedEntityLoader extends EntityLoaderBase<UnsupportedGatewayEntity> implements EntityLoader { @Override public void load(final Bundle bundle, final File rootDir) { super.load(bundle, rootDir); updateItemXml(bundle, new File(rootDir, "config")); } @Inject  UnsupportedEntityLoader(final JsonTools jsonTools, final IdGenerator idGenerator, final DocumentTools documentTools); @Override void load(final Bundle bundle, final File rootDir); @Override void load(Bundle bundle, String name, String value, String environmentConfigurationFolderPath); @Override String getEntityType();  }