@Ignore @Test public void getDeveloperTest() throws CantGetDeveloperException, CantExecuteDatabaseOperationException { when(walletStoreCatalogDatabaseDao.getDeveloper(testPluginId)).thenReturn(developer); walletStoreNetworkServicePluginRoot.getDeveloper(testPluginId); }
@Ignore @Test public void getSkinTest() throws CantGetSkinException, InvalidResultReturnedByDatabaseException, CantExecuteDatabaseOperationException { // when(walletStoreCatalogDatabaseDao.getSkinFromDatabase(testPluginId)).thenReturn(skin); walletStoreNetworkServicePluginRoot.getSkin(testPluginId); }
@Before public void setUp() { testPluginId = UUID.randomUUID(); walletStoreNetworkServicePluginRoot = new WalletStoreNetworkServicePluginRoot(); walletStoreNetworkServicePluginRoot.setId(testPluginId); walletStoreNetworkServicePluginRoot.setPluginDatabaseSystem(pluginDatabaseSystem); walletStoreNetworkServicePluginRoot.setPluginFileSystem(pluginFileSystem); walletStoreNetworkServicePluginRoot.setErrorManager(errorManager); walletStoreNetworkServicePluginRoot.setLogManager(logManager); /* try { walletStoreCatalogDatabaseDao = new WalletStoreCatalogDatabaseDao(errorManager,logManager,pluginDatabaseSystem,testPluginId,testPluginId.toString()); } catch (CantExecuteDatabaseOperationException e) { e.printStackTrace(); } walletStoreCatalogDatabaseDao.setLogManager(logManager); walletStoreCatalogDatabaseDao.setPluginDatabaseSystem(pluginDatabaseSystem); walletStoreCatalogDatabaseDao.setErrorManager(errorManager);*/ }
@Test public void generateClassesTree() throws ClassNotFoundException { List<Class<?>> classes = find(WalletStoreNetworkServicePluginRoot.class.getPackage().getName()); for (String myClass : walletStoreNetworkServicePluginRoot.getClassesFullPath()) { /** True if it exists */ assertTrue(classes.contains(Class.forName(myClass))); } }
@Ignore @Test public void publishWalletTest() { try { // when(walletStoreCatalogDatabaseDao.getCatalogItems()).thenReturn(database); // catalogItem = walletStoreNetworkServicePluginRoot.constructEmptyCatalogItem(); walletStoreNetworkServicePluginRoot.publishWallet(catalogItem); } catch (CantPublishWalletInCatalogException e) { e.printStackTrace(); } }
@Test public void idTest() { walletStoreNetworkServicePluginRoot.getId(); }