Package org.hibernate.tool.hbmlint.detector

Examples of org.hibernate.tool.hbmlint.detector.SchemaByMetaDataDetector.visit()


      Table table = (Table) tableMappings.next();
   
      MockCollector mc = new MockCollector();
     
      if(table.getName().equalsIgnoreCase( "missingtable" )) {
        analyzer.visit( configuration, table, mc );       
        assertEquals(mc.problems.size(),1);
        Issue ap = (Issue) mc.problems.get( 0 );
        assertTrue(ap.getDescription().indexOf( "Missing table" ) >=0);
      } else if(table.getName().equalsIgnoreCase( "category" )) {
        analyzer.visit( configuration, table, mc );
View Full Code Here


        analyzer.visit( configuration, table, mc );       
        assertEquals(mc.problems.size(),1);
        Issue ap = (Issue) mc.problems.get( 0 );
        assertTrue(ap.getDescription().indexOf( "Missing table" ) >=0);
      } else if(table.getName().equalsIgnoreCase( "category" )) {
        analyzer.visit( configuration, table, mc );
        assertEquals(mc.problems.size(),1);
        Issue ap = (Issue) mc.problems.get( 0 );
        assertTrue(ap.getDescription().indexOf( "missing column: name" ) >=0);             
      } else if(table.getName().equalsIgnoreCase( "badtype" )) {
        analyzer.visit( configuration, table, mc );
View Full Code Here

        analyzer.visit( configuration, table, mc );
        assertEquals(mc.problems.size(),1);
        Issue ap = (Issue) mc.problems.get( 0 );
        assertTrue(ap.getDescription().indexOf( "missing column: name" ) >=0);             
      } else if(table.getName().equalsIgnoreCase( "badtype" )) {
        analyzer.visit( configuration, table, mc );
        assertEquals(mc.problems.size(),1);
        Issue ap = (Issue) mc.problems.get( 0 );
        assertTrue(ap.getDescription().indexOf( "wrong column type for name" ) >=0);
      } else {
        fail("Unkown table " + table);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.