Examples of code()


Examples of org.jquantlib.currencies.Europe.CHFCurrency.code()

        //Sample Currency - CHF
        final CHFCurrency chf = new CHFCurrency();

        QL.info("testing correct initialization...");
        assertTrue(chf.name().equalsIgnoreCase("Swiss franc"));
        assertTrue(chf.code().equalsIgnoreCase("CHF"));
        assertEquals(chf.numericCode(),756);
        assertTrue(chf.symbol().equalsIgnoreCase("SwF"));
        assertTrue(chf.fractionSymbol().equalsIgnoreCase(""));
        assertEquals(chf.fractionsPerUnit(),100);
        assertEquals(chf.rounding().type(), Rounding.Type.None);
View Full Code Here

Examples of org.jredis.protocol.ResponseStatus.code()

    status = Assert.notNull (response.getStatus(), "status from response object", ProviderException.class);
    if(status.isError()) {
      Log.error ("Error response for " + cmd.code + " => " + status.message());
      throw new RedisException(cmd, status.message());
    }
    else if(status.code() == ResponseStatus.Code.CIAO) {
      // normal for quit and shutdown commands.  we disconnect too.
      disconnect();
    }

    return response;
View Full Code Here

Examples of org.jsmpp.bean.OptionalParameter.Tag.code()

            try {
                Tag tag = Tag.valueOf(entry.getKey());
                Class type = determineTypeClass(tag);

                if (OctetString.class.equals(type)) {
                    optParam = new OptionalParameter.OctetString(tag.code(), entry.getValue());
                } else if (COctetString.class.equals(type)) {
                    optParam = new OptionalParameter.COctetString(tag.code(), entry.getValue());
                } else if (org.jsmpp.bean.OptionalParameter.Byte.class.equals(type)) {
                    optParam = new OptionalParameter.Byte(tag.code(), Byte.valueOf(entry.getValue()));
                } else if (org.jsmpp.bean.OptionalParameter.Int.class.equals(type)) {
View Full Code Here

Examples of org.jsmpp.bean.OptionalParameter.Tag.code()

                Class type = determineTypeClass(tag);

                if (OctetString.class.equals(type)) {
                    optParam = new OptionalParameter.OctetString(tag.code(), entry.getValue());
                } else if (COctetString.class.equals(type)) {
                    optParam = new OptionalParameter.COctetString(tag.code(), entry.getValue());
                } else if (org.jsmpp.bean.OptionalParameter.Byte.class.equals(type)) {
                    optParam = new OptionalParameter.Byte(tag.code(), Byte.valueOf(entry.getValue()));
                } else if (org.jsmpp.bean.OptionalParameter.Int.class.equals(type)) {
                    optParam = new OptionalParameter.Int(tag.code(), Integer.valueOf(entry.getValue()));
                } else if (org.jsmpp.bean.OptionalParameter.Short.class.equals(type)) {
View Full Code Here

Examples of org.jsmpp.bean.OptionalParameter.Tag.code()

                if (OctetString.class.equals(type)) {
                    optParam = new OptionalParameter.OctetString(tag.code(), entry.getValue());
                } else if (COctetString.class.equals(type)) {
                    optParam = new OptionalParameter.COctetString(tag.code(), entry.getValue());
                } else if (org.jsmpp.bean.OptionalParameter.Byte.class.equals(type)) {
                    optParam = new OptionalParameter.Byte(tag.code(), Byte.valueOf(entry.getValue()));
                } else if (org.jsmpp.bean.OptionalParameter.Int.class.equals(type)) {
                    optParam = new OptionalParameter.Int(tag.code(), Integer.valueOf(entry.getValue()));
                } else if (org.jsmpp.bean.OptionalParameter.Short.class.equals(type)) {
                    optParam = new OptionalParameter.Short(tag.code(), Short.valueOf(entry.getValue()));
                } else if (org.jsmpp.bean.OptionalParameter.Null.class.equals(type)) {
View Full Code Here

Examples of org.jsmpp.bean.OptionalParameter.Tag.code()

                } else if (COctetString.class.equals(type)) {
                    optParam = new OptionalParameter.COctetString(tag.code(), entry.getValue());
                } else if (org.jsmpp.bean.OptionalParameter.Byte.class.equals(type)) {
                    optParam = new OptionalParameter.Byte(tag.code(), Byte.valueOf(entry.getValue()));
                } else if (org.jsmpp.bean.OptionalParameter.Int.class.equals(type)) {
                    optParam = new OptionalParameter.Int(tag.code(), Integer.valueOf(entry.getValue()));
                } else if (org.jsmpp.bean.OptionalParameter.Short.class.equals(type)) {
                    optParam = new OptionalParameter.Short(tag.code(), Short.valueOf(entry.getValue()));
                } else if (org.jsmpp.bean.OptionalParameter.Null.class.equals(type)) {
                    optParam = new OptionalParameter.Null(tag);
                }
View Full Code Here

Examples of org.kie.remote.common.rest.KieRemoteHttpResponse.code()

        }

        // Get response
        JaxbExceptionResponse exceptionResponse = null;
        JaxbCommandsResponse commandResponse = null;
        int responseStatus = httpResponse.code();
        try {
            String content = httpResponse.body();
            if( responseStatus < 300 ) {
                commandResponse = deserializeResponseContent(content, JaxbCommandsResponse.class);
            } else {
View Full Code Here

Examples of org.mifosplatform.organisation.monetary.data.CurrencyData.code()

            Collection<PortfolioAccountData> accountLinkingOptions = null;
            if (clientId != null) {
                final CurrencyData currencyData = newLoanAccount.currency();
                String currencyCode = null;
                if (currencyData != null) {
                    currencyCode = currencyData.code();
                }
                final long[] accountStatus = { SavingsAccountStatusType.ACTIVE.getValue() };
                accountLinkingOptions = this.portfolioAccountReadPlatformService.retrieveAllForLookup(
                        PortfolioAccountType.SAVINGS.getValue(), clientId, currencyCode, accountStatus,
                        DepositAccountType.SAVINGS_DEPOSIT.getValue());
View Full Code Here

Examples of org.objectweb.joram.client.jms.ConnectionFactory.code()

      strbuf.append("CF#").append(i).append(".class");
      h.put(strbuf.toString(), cf.getClass().getName());

      strbuf.setLength(0);
      strbuf.append("CF#").append(i);
      cf.code(h, strbuf.toString());
    }

    return h;
  }
View Full Code Here

Examples of org.openbankdata.core.client.MockedBankResponse.code()

  }

  private BankResponse getTransactionResponse() {
    MockedBankResponse response = new MockedBankResponse();
    response.body(TestUtils.getFileContentAsString("sveadirekt-list-transactions.htm"));
    response.code(200);
    return response;
  }

  private Transaction getExpectedIncomingTransaction()
      throws ParseException {
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.