Examples of Account


Examples of org.jclouds.opsource.servers.domain.Account

*/
@Test(groups = { "live" }, singleThreaded = true, testName = "ServerApiLiveTest")
public class ServerApiLiveTest extends BaseOpSourceServersApiLiveTest {

   public void testGetDeployedServers() {
    Account account = restContext.getApi().getAccountApi().getMyAccount();
    assert account.getOrgId() != null;
      DeployedServersList deployedServersList = restContext.getApi().getServerApi().getDeployedServers(account.getOrgId());
      assert deployedServersList != null;
   }
View Full Code Here

Examples of org.melonbrew.fe.database.Account

            money = Double.parseDouble(args[1]);
        } catch (NumberFormatException e) {
            return false;
        }

        Account victim = plugin.getShortenedAccount(args[0]);

        if (victim == null) {
            Phrase.ACCOUNT_DOES_NOT_EXIST.sendWithPrefix(sender);
            return true;
        }

        String formattedMoney = plugin.getAPI().format(money);

        victim.withdraw(money);

        Phrase.PLAYER_DEDUCT_MONEY.sendWithPrefix(sender, formattedMoney, victim.getName());

        Player receiverPlayer = plugin.getServer().getPlayerExact(victim.getName());

        if (receiverPlayer != null) {
            Phrase.PLAYER_DEDUCTED_MONEY.sendWithPrefix(receiverPlayer, formattedMoney, sender.getName());
        }
View Full Code Here

Examples of org.mifosplatform.integrationtests.common.accounting.Account

        addCharges(charges, flatSpecifiedDueDate, "100", "29 September 2011");
        Integer flatInstallmentFee = ChargesHelper.createCharges(requestSpec, responseSpec,
                ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, "50", false));
        addCharges(charges, flatInstallmentFee, "50", null);

        final Account assetAccount = this.accountHelper.createAssetAccount();
        final Account incomeAccount = this.accountHelper.createIncomeAccount();
        final Account expenseAccount = this.accountHelper.createExpenseAccount();
        final Account overpaymentAccount = this.accountHelper.createLiabilityAccount();

        final Integer loanProductID = createLoanProduct(false, CASH_BASED, assetAccount, incomeAccount, expenseAccount, overpaymentAccount);
        final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, "12,000.00");
        Assert.assertNotNull(loanID);
        HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(this.requestSpec, this.responseSpec, loanID);
View Full Code Here

Examples of org.mybatis.jpetstore.domain.Account

  public Account getAccount(String username) {
    return accountMapper.getAccountByUsername(username);
  }

  public Account getAccount(String username, String password) {
    Account account = new Account();
    account.setUsername(username);
    account.setPassword(password);
    return accountMapper.getAccountByUsernameAndPassword(account);
  }
View Full Code Here

Examples of org.openbankdata.core.Account

    assertTrue("First account's transactions should have been added to the cache",
        mockedCache.exists(getTransactionsRequest()));
  }

  private Account getExpectedAccount() {
    Account account = new Account();
    account.setAccountNumber("1234567");
    account.setCurrency(Currency.getInstance("SEK"));
    account.setName("Sparkonto");
    BigDecimal balance = new BigDecimal(12345);
    account.setAvailable(balance);
    account.setBalance(balance);
    account.setAccountType(AccountType.SAVINGS);
    account.setId("_idcl:0:_id15");
    return account;
  }
View Full Code Here

Examples of org.palo.viewapi.Account

          data.addError(UserSession.trans(locale, "couldNotFindView", view));             
          continue;
        }
       
        String connectionId = v.getAccount().getConnection().getId();
        Account neededAccount = null;
        for (Account a: authUser.getAccounts()) {
          if (a.getConnection().getId().equals(connectionId)) {
            PaloConnection paloCon = a.getConnection();
            if (paloCon.getType() == PaloConnection.TYPE_WSS) {
              continue;
View Full Code Here

Examples of org.picketlink.idm.model.Account

    protected void listenEndDance(@Observes OAuthComplete complete, Identity identity) {
        Identity.AuthenticationResult result = identity.login();
    }

    protected void listenLogout(@Observes PostLoggedOutEvent plo) {
        Account account = plo.getAccount();
        if (account instanceof AgoravaUser) {
            lfs.getCurrentRepository().clear();
        }
    }
View Full Code Here

Examples of org.qi4j.test.indexing.model.Account

    @Test
    public void script36()
    {
        QueryBuilder<Person> qb = this.module.newQueryBuilder( Person.class );
        Person person = templateFor( Person.class );
        Account anns = unitOfWork.get( Account.class, "accountOfAnnDoe" );
        Query<Person> query = unitOfWork.newQuery( qb.where( contains( person.accounts(), anns ) ) );
        System.out.println( "*** script36: " + query );

        verifyUnorderedResults( query, "Jack Doe", "Ann Doe" );
    }
View Full Code Here

Examples of org.springframework.data.jpa.showcase.core.Account

  @Autowired CustomerRepository customerRepository;

  @Test
  public void savesAccount() {

    Account account = accountRepository.save(new Account());
    assertThat(account.getId(), is(notNullValue()));
  }
View Full Code Here

Examples of org.springframework.nanotrader.data.domain.Account

  }
 

  @Bean
  public Account account() {
    Account account = new Account();
    account.setAccountid(ACCOUNT_ID);
    account.setBalance(ACCOUNT_BALANCE);
    account.setOpenbalance(ACCOUNT_OPEN_BALANCE);
    account.setLogincount(LOGIN_COUNT);
    account.setLogoutcount(LOGOUT_COUNT);
    account.setCreationdate(new Date(1329759342904l));
    account.setLastlogin(new Date(1329759342904l));
    return account;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.