Esempio n. 1
0
 @Ignore
 @Test
 public void getDeveloperTest()
     throws CantGetDeveloperException, CantExecuteDatabaseOperationException {
   when(walletStoreCatalogDatabaseDao.getDeveloper(testPluginId)).thenReturn(developer);
   walletStoreNetworkServicePluginRoot.getDeveloper(testPluginId);
 }
Esempio n. 2
0
 @Ignore
 @Test
 public void getSkinTest()
     throws CantGetSkinException, InvalidResultReturnedByDatabaseException,
         CantExecuteDatabaseOperationException {
   // when(walletStoreCatalogDatabaseDao.getSkinFromDatabase(testPluginId)).thenReturn(skin);
   walletStoreNetworkServicePluginRoot.getSkin(testPluginId);
 }
Esempio n. 3
0
 @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);*/
 }
Esempio n. 4
0
  @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)));
    }
  }
Esempio n. 5
0
 @Ignore
 @Test
 public void publishWalletTest() {
   try {
     // when(walletStoreCatalogDatabaseDao.getCatalogItems()).thenReturn(database);
     // catalogItem = walletStoreNetworkServicePluginRoot.constructEmptyCatalogItem();
     walletStoreNetworkServicePluginRoot.publishWallet(catalogItem);
   } catch (CantPublishWalletInCatalogException e) {
     e.printStackTrace();
   }
 }
Esempio n. 6
0
 @Test
 public void idTest() {
   walletStoreNetworkServicePluginRoot.getId();
 }