📄 roundtriptestsoapbindingimpl.java
字号:
(in0[2] == 47) && (in0[3] == 10))) { throw new RemoteException("The actual values did not match expected values."); } } // methodIntArrayIn public int[] methodIntArrayInOut(int[] in0) throws RemoteException { int[] returnByteArray = {12, 39, 50, 60, 28, 39}; if ((in0[0] == 90) && (in0[1] == 34) && (in0[2] == 45) && (in0[3] == 239) && (in0[4] == 45) && (in0[5] == 10)) { return returnByteArray; } else { throw new RemoteException("The actual values did not match expected values."); } } // methodIntArrayIn public void methodAllTypesIn(String in0, BigInteger in1, BigDecimal in2, Calendar in35, Calendar in36, boolean in4, byte in5, short in6, int in7, long in8, float in9, double in10, byte[] in11, Boolean in13, Byte in14, Short in15, Integer in16, Long in17, Float in18, Double in19, Byte[] in12) throws RemoteException { Calendar expectedDateTime = Calendar.getInstance(); TimeZone gmt = TimeZone.getTimeZone("GMT"); expectedDateTime.setTimeZone(gmt); expectedDateTime.setTime(new Date(1012937861986L)); if (!((in0.equals(new String("Request methodAllTypesIn"))) && (in1.equals(new BigInteger("545"))) && (in2.equals(new BigDecimal("546.545"))) && (in35.equals(expectedDateTime)) && (in13.equals(new Boolean(false))) && (in14.equals(new Byte((byte) 11))) && (in15.equals(new Short((short) 45))) && (in16.equals(new Integer(101))) && (in17.equals(new Long(232309L))) && (in18.equals(new Float(67634.12F))) && (in19.equals(new Double(892387.232D))) && (in4) && (in5 == (byte) 2) && (in6 == (short) 14) && (in7 == 234) && (in8 == 10900L) && (in9 == 23098.23F) && (in10 == 2098098.01D) && (in11[0] == (byte) 5) && (in11[1] == (byte) 10) && (in11[2] == (byte) 12) && (in12[0].equals(new Byte((byte) 9))) && (in12[1].equals(new Byte((byte) 7))))) { throw new RemoteException("Expected values did not match actuals."); } } // methodAllTypesIn public byte[] methodByteArray(byte[] in0) throws RemoteException { byte[] returnByte = {(byte) 5, (byte) 4}; if ((in0[0] == (byte) 3) && (in0[1] == (byte) 9)) { return returnByte; } else { throw new RemoteException("Expecting a byte array with 3 and 9."); } } // methodByteArray public Calendar methodDateTime(Calendar in0) throws RemoteException { Calendar expectedDateTime = Calendar.getInstance(); TimeZone gmt = TimeZone.getTimeZone("GMT"); expectedDateTime.setTimeZone(gmt); expectedDateTime.setTime(new Date(1012937861996L)); if (in0.equals(expectedDateTime)) { Calendar dateTime = Calendar.getInstance(); dateTime.setTimeZone(gmt); dateTime.setTime(new Date(1012937861800L)); return dateTime; } else { throw new RemoteException("Expecting a Date value of " + expectedDateTime + "."); } } // methodDateTime public Calendar methodDate(Calendar in0) throws RemoteException { return methodDateTime(in0); } // methodDate public BigDecimal methodBigDecimal(BigDecimal in0) throws RemoteException { if (in0.equals(new BigDecimal("3434.456"))) { return new BigDecimal("903483.304"); } else { throw new RemoteException("Expecting a BigDecimal value of 3434.456."); } } // methodBigDecimal public BigInteger methodBigInteger(BigInteger in0) throws RemoteException { if (in0.equals(new BigInteger("8789"))) { return new BigInteger("2323"); } else { throw new RemoteException("Expecting a BigInteger value of 8789."); } } // methodBigInteger public String methodString(String in0) throws RemoteException { if (in0.equals("Request")) { return "Response"; } else { throw new RemoteException("Expecting a string value of \"Request\""); } } // methodString public double methodDouble(double in0) throws RemoteException { if (in0 == 87502.002D) { return 567.547D; } else { throw new RemoteException("Expecting a double value of 87502.002D"); } } // methodDouble public float methodFloat(float in0) throws RemoteException { if (in0 == 8787.25F) { return 12325.545F; } else { throw new RemoteException("Expecting a float value of 8787.25F"); } } // methodFloat public long methodLong(long in0) throws RemoteException { if (in0 == 45425L) { return 787985L; } else { throw new RemoteException("Expecting a long value of 45425L."); } } // methodLong public int methodInt(int in0) throws RemoteException { if (in0 == 1215) { return 10232; } else { throw new RemoteException("Expecting an int value of 1215."); } } // methodInt public short methodShort(short in0) throws RemoteException { if (in0 == (short) 302) { return(short) 124; } else { throw new RemoteException("Expecting a short value of 302."); } } // methodShort public byte methodByte(byte in0) throws RemoteException { if (in0 == (byte) 61) { return(byte) 35; } else { throw new RemoteException("Expecting a byte value of 61."); } } // methodByte public boolean methodBoolean(boolean in0) throws RemoteException { if (in0) { return false; } else { throw new RemoteException("Expecting a boolean value of true."); } } // methodBoolean public CallOptions[] methodCallOptions(CallOptions[] in0) throws RemoteException { Calendar dateTime = Calendar.getInstance(); TimeZone gmt = TimeZone.getTimeZone("GMT"); dateTime.setTimeZone(gmt); dateTime.setTime(new Date(1013459984577L)); if (in0[0].getCallDate().equals(dateTime)) { in0[0] = new CallOptions(); dateTime.setTime(new Date(1013459984507L)); in0[0].setCallDate(dateTime); return in0; } else { throw new RemoteException("Actual value did not match expected value."); } } // methodCallOptions public Float methodSoapFloat(Float in0) throws RemoteException { if (in0.equals(new Float(23423.234F))) { return new Float(232.23F); } else { throw new RemoteException("Expecting a float value of 23423.234F"); } } // methodSoapFloat public Double methodSoapDouble(Double in0) throws RemoteException { if (in0.equals(new Double(123423.234D))) { return new Double(2232.23D); } else { throw new RemoteException("Expecting a float value of 123423.234D"); } } // methodSoapDouble public Boolean methodSoapBoolean(Boolean in0) throws RemoteException { if (in0.equals(new Boolean(true))) { return new Boolean(false); } else { throw new RemoteException("Expecting a boolean value of true"); } } // methodSoapBoolean public Byte methodSoapByte(Byte in0) throws RemoteException { if (in0.equals(new Byte((byte) 9))) { return new Byte((byte) 10); } else { throw new RemoteException("Expecting a byte value of 9"); } } // methodSoapByte public Short methodSoapShort(Short in0) throws RemoteException { if (in0.equals(new Short((short) 32))) { return new Short((short) 44); } else { throw new RemoteException("Expecting a short value of 32"); } } // methodSoapShort public Integer methodSoapInt(Integer in0) throws RemoteException { if (in0.equals(new Integer(332))) { return new Integer(441); } else { throw new RemoteException("Expecting a short value of 332"); } } // methodSoapInt public Long methodSoapLong(Long in0) throws RemoteException { if (in0.equals(new Long(3321L))) { return new Long(4412L); } else { throw new RemoteException("Expecting a short value of 3321L"); } } // methodSoapLong public void throwInvalidTickerException() throws InvalidTickerSymbol, RemoteException { throw new InvalidTickerSymbol("ABC"); } // throwInvalidTickerSymbol public void throwInvalidTradeExchange() throws InvalidTickerSymbol, InvalidTradeExchange, InvalidCompanyId, RemoteException { throw new InvalidTradeExchange("XYZ"); } // throwInvalidTradeExchange public int getId(BondInvestment investment) throws java.rmi.RemoteException { return investment.getId(); } public int getId(Investment investment) throws java.rmi.RemoteException { return investment.getId(); } // This is a compile-time test, so we don't need any runtime test code. public void holderTest(StringHolder sh, BondInvestmentHolder bih) { }} // End class RoundtripTypesTestSoapBindingImpl
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -