コード例 #1
0
  @Before
  public void setUp() throws Exception {
    assetIssuingPluginRoot = new AssetIssuingDigitalAssetTransactionPluginRoot();

    pluginId = UUID.randomUUID();

    assetIssuingPluginRoot = new AssetIssuingDigitalAssetTransactionPluginRoot();
    assetIssuingPluginRoot.setId(pluginId);
    assetIssuingPluginRoot.setErrorManager(errorManager);
    assetIssuingPluginRoot.setLogManager(logManager);
    assetIssuingPluginRoot.setEventManager(eventManager);
    assetIssuingPluginRoot.setPluginDatabaseSystem(pluginDatabaseSystem);
    assetIssuingPluginRoot.setPluginFileSystem(pluginFileSystem);
    assetIssuingPluginRoot.setAssetIssuerManager(assetIssuerWalletManager);
    assetIssuingPluginRoot.setActorAssetIssuerManager(actorAssetIssuerManager);
    assetIssuingPluginRoot.setCryptoVaultManager(cryptoVaultManager);
    assetIssuingPluginRoot.setBitcoinWalletManager(cryptoWalletManager);
    assetIssuingPluginRoot.setAssetVaultManager(assetVaultManager);
    assetIssuingPluginRoot.setCryptoAddressBookManager(cryptoAddressBookManager);
    assetIssuingPluginRoot.setOutgoingIntraActorManager(outgoingIntraActorManager);
    assetIssuingPluginRoot.setDeviceUserManager(deviceUserManager);
    assetIssuingPluginRoot.setBitcoinNetworkManager(bitcoinNetworkManager);

    setUpMockitoRules();
  }
コード例 #2
0
  @Before
  public void setUp() throws Exception {
    pluginId = UUID.randomUUID();

    assetIssuingPluginRoot = new AssetIssuingDigitalAssetTransactionPluginRoot();
    assetIssuingPluginRoot.setId(pluginId);
    assetIssuingPluginRoot.setErrorManager(errorManager);
    assetIssuingPluginRoot.setLogManager(logManager);
    assetIssuingPluginRoot.setEventManager(eventManager);
    assetIssuingPluginRoot.setPluginDatabaseSystem(pluginDatabaseSystem);
    assetIssuingPluginRoot.setPluginFileSystem(pluginFileSystem);
    assetIssuingPluginRoot.setAssetIssuerManager(assetIssuerWalletManager);
    assetIssuingPluginRoot.setActorAssetIssuerManager(actorAssetIssuerManager);
    assetIssuingPluginRoot.setCryptoVaultManager(cryptoVaultManager);
    assetIssuingPluginRoot.setBitcoinWalletManager(cryptoWalletManager);
    assetIssuingPluginRoot.setAssetVaultManager(assetVaultManager);
    assetIssuingPluginRoot.setCryptoAddressBookManager(cryptoAddressBookManager);
    assetIssuingPluginRoot.setOutgoingIntraActorManager(outgoingIntraActorManager);
    assetIssuingPluginRoot.setDeviceUserManager(deviceUserManager);
    assetIssuingPluginRoot.setBitcoinNetworkManager(bitcoinNetworkManager);

    resources = new LinkedList<>();

    digitalAsset = new DigitalAsset();
    digitalAsset.setContract(digitalAssetContract);
    digitalAsset.setResources(resources);
    digitalAsset.setDescription(description);
    digitalAsset.setName(name);
    digitalAsset.setPublicKey(publicKey);
    digitalAsset.setState(state);
    digitalAsset.setIdentityAssetIssuer(identityAssetIssuer);

    records = new LinkedList<>();
    //        records.add(mockDatabaseTableRecord);

    setUpMockitoRules();
  }