Package org.telluriumsource.trump

Examples of org.telluriumsource.trump.UiDataReader


        sb.append("C | tag : div | /html/body/table[@id='mt']/tbody/tr/th[3]/div\n");
        sb.append("D | tag: div | /html/body/div[@id='maincol']/div[@id='colcontrol']/div/div[@id='bub']\n");
        sb.append("E | tag: table, id: resultstable | /html/body/div[@id='maincol']/div[@id='colcontrol']/div/div[@id='bub']/table[@id='resultstable']\n");
        sb.append("F | tag: a | /html/body/div[@id='maincol']/div[@id='colcontrol']/div/div[@id='bub']/table[@id='resultstable']/tbody/tr[2]/td[3]/a\n");

        UiDataReader reader = new UiDataReader();
        BufferedReader br = reader.getReaderForDate(sb.toString());

        Map<String, String> map;

        for(int i=0; i<6; i++){
            map= reader.readData(br);
            assertNotNull(map);
            assertEquals(3, map.size());
        }
        map = reader.readData(br);
        assertNull(map);
    }
View Full Code Here

TOP

Related Classes of org.telluriumsource.trump.UiDataReader

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.