Package se.sj.ipl.rollingstock.domain

Examples of se.sj.ipl.rollingstock.domain.RollingStockList


        test("smooks-config-sax.xml");
    }

    private void test(String config) throws IOException, SAXException {
        Map beans = Main.runSmooksTransform(config);
        RollingStockList rollingstocks = (RollingStockList) beans.get("rollingstocks");

        // Just some really basic checks
        assertEquals(3, rollingstocks.size());
        assertEquals(1, rollingstocks.get(0).getVehicles().size());
        assertEquals(2, rollingstocks.get(1).getVehicles().size());
        assertEquals(1, rollingstocks.get(2).getVehicles().size());
        assertEquals(1, rollingstocks.get(2).getVehicles().get(0).getComments().size());
    }
View Full Code Here


        Map beans = Main.runSmooksTransform("smooks-config-sax.xml");

        System.out.println("==============Message Out=============");
       
    RollingStockList rollingstocks = (RollingStockList) beans.get( "rollingstocks" );
    for( int i = 0; i < rollingstocks.size() ; i ++ )
    {
      Rollingstock rollingstock = rollingstocks.get( i );
      System.out.println( "" );
      System.out.println( "RollingstockId : " + rollingstock.getRollingstockId() );
      System.out.println( "Schedule : " + rollingstock.getSchedule() );
      List<Vehicle> vehicles = rollingstock.getVehicles();
      for ( int y = 0 ; y < vehicles.size() ; y ++ )
View Full Code Here

TOP

Related Classes of se.sj.ipl.rollingstock.domain.RollingStockList

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.