⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 verifytestcase.java

📁 Java有关XML编程需要用到axis 的源代码 把里面bin下的包导入相应的Java工程 进行使用
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
            long actual = binding.methodLong(14003L, lh);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodLong Exception caught: " + re );        }        try {            FloatHolder fh = new FloatHolder(2.342F);            float delta = 0.0F;            float actual = binding.methodFloat(2.342F, fh);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodFloat Exception caught: " + re );        }        try {            DoubleHolder dh = new DoubleHolder(5006.345D);            double value = 110312.2325D;            double delta = 0.0D;            double actual = binding.methodDouble(5006.345D, dh);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodDouble Exception caught: " + re );        }        try {            String sendValue = "Sent String";             StringHolder sh = new StringHolder(sendValue);            String actual = binding.methodString(sendValue, sh);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodString Exception caught: " + re );        }        try {            java.math.BigInteger sendValue = new java.math.BigInteger("3048");            BigIntegerHolder bih = new BigIntegerHolder(sendValue);            java.math.BigInteger actual = binding.methodInteger(sendValue, bih);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodInteger Exception caught: " + re );        }        try {            java.math.BigDecimal sendValue = new java.math.BigDecimal("1205.258");            BigDecimalHolder bdh = new BigDecimalHolder(sendValue);            java.math.BigDecimal actual = binding.methodDecimal(sendValue, bdh);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodDecimal Exception caught: " + re );        }        try {            Calendar sendValue = Calendar.getInstance();            sendValue.setTime(new Date(1012182070626L));            CalendarHolder ch = new CalendarHolder(sendValue);            Calendar actual = binding.methodDateTime(sendValue, ch);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodDateTime Exception caught: " + re );        }// Comment out for now because causes compile errors//        try {//            byte[] sendValue = {(byte) 10, (byte) 9};//            ByteArrayHolder bah = new ByteArrayHolder(sendValue);//            byte[] actual = binding.methodBase64Binary(sendValue, bah);//        } catch (java.rmi.RemoteException re) {//            throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );//        }        try {            QName sendValue = new QName("test1", "test2");            QNameHolder qh = new QNameHolder(sendValue);            QName actual = binding.methodQName(sendValue, qh);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodQName Exception caught: " + re );        }// Comment out for now because causes compile errors//        try {//            byte[] sendValue = {(byte) 10, (byte) 9};//            ByteArrayHolder bah = new ByteArrayHolder(sendValue);//            byte[] actual = binding.methodHexBinary(sendValue, bah);//        } catch (java.rmi.RemoteException re) {//            throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );//        }        try {            org.apache.axis.types.Time sendValue = new org.apache.axis.types.Time("15:30:45.245Z");            TimeHolder ch = new TimeHolder(sendValue);            org.apache.axis.types.Time actual = binding.methodTime(sendValue, ch);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodTime Exception caught: " + re );        }        try {            UnsignedLong sendValue = null;            try {                sendValue = new UnsignedLong(18446744073709551600D);            } catch (Exception e) {            }            UnsignedLongHolder ch = new UnsignedLongHolder(sendValue);            UnsignedLong actual = binding.methodUnsignedLong(sendValue, ch);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodUnsignedLong Exception caught: " + re );        }        try {            UnsignedInt sendValue = null;            try {                sendValue = new UnsignedInt(4294967200L);            } catch (Exception e) {            }            UnsignedIntHolder ch = new UnsignedIntHolder(sendValue);            UnsignedInt actual = binding.methodUnsignedInt(sendValue, ch);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodUnsignedInt Exception caught: " + re );        }        try {            UnsignedShort sendValue = null;            try {                sendValue = new UnsignedShort(65530);            } catch (Exception e) {            }            UnsignedShortHolder ch = new UnsignedShortHolder(sendValue);            UnsignedShort actual = binding.methodUnsignedShort(sendValue, ch);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodUnsignedShort Exception caught: " + re );        }        try {            UnsignedByte sendValue = null;            try {                sendValue = new UnsignedByte(250);            } catch (Exception e) {            }            UnsignedByteHolder ch = new UnsignedByteHolder(sendValue);            UnsignedByte actual = binding.methodUnsignedByte(sendValue, ch);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodUnsignedByte Exception caught: " + re );        }        try {            NonNegativeInteger sendValue = new NonNegativeInteger("246802468024680");            NonNegativeIntegerHolder nnih = new NonNegativeIntegerHolder(sendValue);            NonNegativeInteger actual = binding.methodNonNegativeInteger(sendValue, nnih);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodNonNegativeInteger Exception caught: " + re );        }        try {            PositiveInteger sendValue = new PositiveInteger("246802468024680");            PositiveIntegerHolder pih = new PositiveIntegerHolder(sendValue);            PositiveInteger actual = binding.methodPositiveInteger(sendValue, pih);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodPositiveInteger Exception caught: " + re );        }        try {            NonPositiveInteger sendValue = new NonPositiveInteger("-246802468024680");            NonPositiveIntegerHolder npih = new NonPositiveIntegerHolder(sendValue);            NonPositiveInteger actual = binding.methodNonPositiveInteger(sendValue, npih);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodNonPositiveInteger Exception caught: " + re );        }        try {            NegativeInteger sendValue = new NegativeInteger("-246802468024680");            NegativeIntegerHolder nih = new NegativeIntegerHolder(sendValue);            NegativeInteger actual = binding.methodNegativeInteger(sendValue, nih);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodNegativeInteger Exception caught: " + re );        }        try {            URI sendValue = null;            try {                sendValue = new URI("urn:this-is-a-test");            } catch (URI.MalformedURIException e) {            }            URIHolder ch = new URIHolder(sendValue);            URI actual = binding.methodAnyURI(sendValue, ch);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodAnyURI Exception caught: " + re );        }                try {            test.wsdl.types.comprehensive_types2.SimpleAnyURIType sendValue = new test.wsdl.types.comprehensive_types2.SimpleAnyURIType("urn:this-is-a-simple-test");            test.wsdl.types.comprehensive_types2.holders.SimpleAnyURITypeHolder ch = new test.wsdl.types.comprehensive_types2.holders.SimpleAnyURITypeHolder(sendValue);            test.wsdl.types.comprehensive_types2.SimpleAnyURIType actual = binding.methodSimpleAnyURI(sendValue, ch);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodAnyURI Exception caught: " + re );        }                try {            Year sendValue = null;            try {                year = new Year(1995);            } catch (Exception e) {            }            YearHolder h = new YearHolder(year);            Year actual = binding.methodYear(sendValue, h);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodYear Exception caught: " + re );        }                try {            Month sendValue = null;            try {                month = new Month(8);            } catch (Exception e) {            }            MonthHolder h = new MonthHolder(month);            Month actual = binding.methodMonth(sendValue, h);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodMonth Exception caught: " + re );        }                try {            Day sendValue = null;            try {                day = new Day(26);            } catch (Exception e) {            }            DayHolder h = new DayHolder(day);            Day actual = binding.methodDay(sendValue, h);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodDay Exception caught: " + re );        }                try {            YearMonth sendValue = null;            try {                yearmonth = new YearMonth(1995,8);            } catch (Exception e) {            }            YearMonthHolder h = new YearMonthHolder(yearmonth);            YearMonth actual = binding.methodYearMonth(sendValue, h);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodYearMonth Exception caught: " + re );        }                try {            MonthDay sendValue = null;            try {                monthday = new MonthDay(8,26);            } catch (Exception e) {            }            MonthDayHolder h = new MonthDayHolder(monthday);            MonthDay actual = binding.methodMonthDay(sendValue, h);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodMonthDay Exception caught: " + re );        }                try {            String sendValue = "Sent String";             StringHolder sh = new StringHolder(sendValue);            String actual = binding.methodSoapString(sendValue, sh);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodSoapString Exception caught: " + re );        }        try {            java.lang.Boolean sendValue = new java.lang.Boolean(true);            BooleanWrapperHolder bh = new BooleanWrapperHolder(sendValue);            java.lang.Boolean actual = binding.methodSoapBoolean(sendValue, bh);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodSoapBoolean Exception caught: " + re );        }        try {            java.lang.Float sendValue = new java.lang.Float(93049.0394F);            FloatWrapperHolder fh = new FloatWrapperHolder(sendValue);            java.lang.Float actual = binding.methodSoapFloat(sendValue, fh);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodSoapFloat Exception caught: " + re );        }        try {            java.lang.Double sendValue = new java.lang.Double(193049.0394D);            DoubleWrapperHolder dh = new DoubleWrapperHolder(sendValue);            java.lang.Double actual = binding.methodSoapDouble(sendValue, dh);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodSoapDouble Exception caught: " + re );        }        try {            java.math.BigDecimal sendValue = new java.math.BigDecimal("1205.258");            BigDecimalHolder bdh = new BigDecimalHolder(sendValue);            java.math.BigDecimal actual = binding.methodDecimal(sendValue, bdh);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodDecimal Exception caught: " + re );        }        try {            java.lang.Integer sendValue = new java.lang.Integer(94);            IntegerWrapperHolder ich = new IntegerWrapperHolder(sendValue);            java.lang.Integer actual = binding.methodSoapInt(sendValue, ich);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodSoapInt Exception caught: " + re );        }        try {            java.lang.Short sendValue = new java.lang.Short((short) 5);            ShortWrapperHolder sch = new ShortWrapperHolder(sendValue);            java.lang.Short actual = binding.methodSoapShort(sendValue, sch);        } catch (java.rmi.RemoteException re) {            throw new junit.framework.AssertionFailedError("methodSoapShort Exception caught: " + re );        }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -