Package com.alibaba.json.bvtVO

Examples of com.alibaba.json.bvtVO.QueueEntity


        String resource = "json/wangran.json";
        InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(resource);
        String text = IOUtils.toString(new InputStreamReader(is,"UTF-8"));


        QueueEntity qe = JSON.parseObject(text, QueueEntity.class);
       
        Assert.assertNotNull(qe);
        Assert.assertNotNull(qe.getPhysicalQueueMap());
        Assert.assertEquals(4, qe.getPhysicalQueueMap().size());
       
        for (PhysicalQueue q : qe.getPhysicalQueueMap().values()) {
            q.getInRate();
            Assert.assertEquals(qe, q.getQueue());
        }
       
        Assert.assertEquals(qe.getPhysicalQueueMap(), qe.getPqMap());
        Assert.assertEquals(true, qe.getPhysicalQueueMap() == qe.getPqMap());
        Assert.assertEquals("amq", qe.getDescription());
       
    }
View Full Code Here


        String text = IOUtils.toString(is);

        VirtualTopic topic = JSON.parseObject(text, VirtualTopic.class);

        {
            QueueEntity qe = topic.getQueueMap().get(12109);

            Assert.assertNotNull(qe);
            Assert.assertNotNull(qe.getPhysicalQueueMap());
            Assert.assertEquals(1, qe.getPhysicalQueueMap().size());

            for (PhysicalQueue q : qe.getPhysicalQueueMap().values()) {
                q.getInRate();
                Assert.assertEquals(qe, q.getQueue());
            }

            Assert.assertEquals(qe.getPhysicalQueueMap(), qe.getPqMap());
            Assert.assertEquals(true, qe.getPhysicalQueueMap() == qe.getPqMap());
            Assert.assertEquals("", qe.getDescription());
        }
        {
            QueueEntity qe = topic.getQueueMap().get(12110);
           
            Assert.assertNotNull(qe);
            Assert.assertNotNull(qe.getPhysicalQueueMap());
            Assert.assertEquals(1, qe.getPhysicalQueueMap().size());
           
            for (PhysicalQueue q : qe.getPhysicalQueueMap().values()) {
                q.getInRate();
                Assert.assertEquals(qe, q.getQueue());
            }
           
            Assert.assertEquals(qe.getPhysicalQueueMap(), qe.getPqMap());
            Assert.assertEquals(true, qe.getPhysicalQueueMap() == qe.getPqMap());
            Assert.assertEquals("", qe.getDescription());
        }

    }
View Full Code Here

        String text = IOUtils.toString(is);

        VirtualTopic topic = JSON.parseObject(text, VirtualTopic.class);

        {
            QueueEntity qe = topic.getQueueMap().get(12109);

            Assert.assertNotNull(qe);
            Assert.assertNotNull(qe.getPhysicalQueueMap());
            Assert.assertEquals(1, qe.getPhysicalQueueMap().size());

            for (PhysicalQueue q : qe.getPhysicalQueueMap().values()) {
                q.getInRate();
                Assert.assertEquals(qe, q.getQueue());
            }

            Assert.assertEquals(qe.getPhysicalQueueMap(), qe.getPqMap());
            Assert.assertEquals(true, qe.getPhysicalQueueMap() == qe.getPqMap());
            Assert.assertEquals("", qe.getDescription());
        }
        {
            QueueEntity qe = topic.getQueueMap().get(12110);
           
            Assert.assertNotNull(qe);
            Assert.assertNotNull(qe.getPhysicalQueueMap());
            Assert.assertEquals(1, qe.getPhysicalQueueMap().size());
           
            for (PhysicalQueue q : qe.getPhysicalQueueMap().values()) {
                q.getInRate();
                Assert.assertEquals(qe, q.getQueue());
            }
           
            Assert.assertEquals(qe.getPhysicalQueueMap(), qe.getPqMap());
            Assert.assertEquals(true, qe.getPhysicalQueueMap() == qe.getPqMap());
            Assert.assertEquals("", qe.getDescription());
        }

    }
View Full Code Here

        String resource = "json/wangran.json";
        InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(resource);
        String text = IOUtils.toString(new InputStreamReader(is,"UTF-8"));


        QueueEntity qe = JSON.parseObject(text, QueueEntity.class);
       
        Assert.assertNotNull(qe);
        Assert.assertNotNull(qe.getPhysicalQueueMap());
        Assert.assertEquals(4, qe.getPhysicalQueueMap().size());
       
        for (PhysicalQueue q : qe.getPhysicalQueueMap().values()) {
            q.getInRate();
            Assert.assertEquals(qe, q.getQueue());
        }
       
        Assert.assertEquals(qe.getPhysicalQueueMap(), qe.getPqMap());
        Assert.assertEquals(true, qe.getPhysicalQueueMap() == qe.getPqMap());
        Assert.assertEquals("amq", qe.getDescription());
       
    }
View Full Code Here

TOP

Related Classes of com.alibaba.json.bvtVO.QueueEntity

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.