Package org.apache.cxf.systest.aegis.bean

Examples of org.apache.cxf.systest.aegis.bean.Item


    }
   
    @Test
    public void testGetItemSecure() throws Exception {
        setupForTest(true);
        Item item = client.getItemByKey("   jack&jill   ", "b");
        Assert.assertEquals(33, item.getKey().intValue());
        Assert.assertEquals("   jack&jill   :b", item.getData());
    }
View Full Code Here


    }
   
    @Test
    public void testGetItem() throws Exception {
        setupForTest(false);
        Item item = client.getItemByKey(" a ", "b");
        Assert.assertEquals(33, item.getKey().intValue());
        Assert.assertEquals(" a :b", item.getData());
    }
View Full Code Here

        Assert.assertEquals(" a :b", item.getData());
    }
    @Test
    public void testMapSpecified() throws Exception {
        setupForTest(false);
        Item item = new Item();
        item.setKey(new Integer(42));
        item.setData("Godzilla");
        client.addItem(item);
       
        Map<Integer, Item> items = client.getItemsMapSpecified();
        Assert.assertNotNull(items);
        Assert.assertEquals(1, items.size());
        Map.Entry<Integer, Item> entry = items.entrySet().iterator().next();
        Assert.assertNotNull(entry);
        Item item2 = entry.getValue();
        Integer key2 = entry.getKey();
        Assert.assertEquals(42, key2.intValue());
        Assert.assertEquals("Godzilla", item2.getData());
    }
View Full Code Here

    }
   
    @Test
    public void testGetItemSecure() throws Exception {
        setupForTest(true);
        Item item = client.getItemByKey("   jack&jill   ", "b");
        Assert.assertEquals(33, item.getKey().intValue());
        Assert.assertEquals("   jack&jill   :b", item.getData());
    }
View Full Code Here

    }
   
    @Test
    public void testGetItem() throws Exception {
        setupForTest(false);
        Item item = client.getItemByKey(" a ", "b");
        Assert.assertEquals(33, item.getKey().intValue());
        Assert.assertEquals(" a :b", item.getData());
    }
View Full Code Here

        Assert.assertEquals(" a :b", item.getData());
    }
    @Test
    public void testMapSpecified() throws Exception {
        setupForTest(false);
        Item item = new Item();
        item.setKey(new Integer(42));
        item.setData("Godzilla");
        client.addItem(item);
       
        Map<Integer, Item> items = client.getItemsMapSpecified();
        Assert.assertNotNull(items);
        Assert.assertEquals(1, items.size());
        Map.Entry<Integer, Item> entry = items.entrySet().iterator().next();
        Assert.assertNotNull(entry);
        Item item2 = entry.getValue();
        Integer key2 = entry.getKey();
        Assert.assertEquals(42, key2.intValue());
        Assert.assertEquals("Godzilla", item2.getData());
    }
View Full Code Here

    }
   
    @Test
    public void testGetItemSecure() throws Exception {
        setupForTest(true);
        Item item = client.getItemByKey("   jack&jill   ", "b");
        Assert.assertEquals(33, item.getKey().intValue());
        Assert.assertEquals("   jack&jill   :b", item.getData());
    }
View Full Code Here

    }
   
    @Test
    public void testGetItem() throws Exception {
        setupForTest(false);
        Item item = client.getItemByKey(" a ", "b");
        Assert.assertEquals(33, item.getKey().intValue());
        Assert.assertEquals(" a :b", item.getData());
    }
View Full Code Here

        Assert.assertEquals(" a :b", item.getData());
    }
    @Test
    public void testMapSpecified() throws Exception {
        setupForTest(false);
        Item item = new Item();
        item.setKey(new Integer(42));
        item.setData("Godzilla");
        client.addItem(item);
       
        Map<Integer, Item> items = client.getItemsMapSpecified();
        Assert.assertNotNull(items);
        Assert.assertEquals(1, items.size());
        Map.Entry<Integer, Item> entry = items.entrySet().iterator().next();
        Assert.assertNotNull(entry);
        Item item2 = entry.getValue();
        Integer key2 = entry.getKey();
        Assert.assertEquals(42, key2.intValue());
        Assert.assertEquals("Godzilla", item2.getData());
    }
View Full Code Here

    public Map<Integer, Item> getItemsMapSpecified() {
        return items;
    }

    public Item getItemByKey(String key1, String key2) {
        Item fake = new Item();
        fake.setKey(new Integer(33));
        fake.setData(key1 + ":" + key2);
        return fake;
    }
View Full Code Here

TOP

Related Classes of org.apache.cxf.systest.aegis.bean.Item

Copyright © 2018 www.massapicom. 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.