Exemple #1
0
        public void testParseEndpoint() //throws Exception
        {
            BasicEndpoint     endpoint;
            BasicDataProvider provider = new BasicDataProvider();

            endpoint = provider.parseEndpoint("VALUE:123");
            Assert.AreEqual(EndpointType.VALUE, endpoint.getType());
            Assert.AreEqual("123", endpoint.getValue());

            endpoint = provider.parseEndpoint("VALUE:");
            Assert.AreEqual(EndpointType.VALUE, endpoint.getType());
            Assert.AreEqual("", endpoint.getValue());

            endpoint = provider.parseEndpoint("VALUE");
            Assert.AreEqual(EndpointType.VALUE, endpoint.getType());
            Assert.IsNull(endpoint.getValue());

            endpoint = provider.parseEndpoint("VALUE:ABC:123:XYZ");
            Assert.AreEqual(EndpointType.VALUE, endpoint.getType());
            Assert.AreEqual("ABC:123:XYZ", endpoint.getValue());
        }
Exemple #2
0
        public void testBadType()
        {
            BasicDataProvider provider = new BasicDataProvider();

            provider.parseEndpoint("XXX:123");
        }
Exemple #3
0
        public void testEmptyJumpValue()
        {
            BasicDataProvider provider = new BasicDataProvider();

            provider.parseEndpoint("JUMP:");
        }