/** @throws Exception */ @Test public void testValidate() throws Exception { LoadDataCommand command = new LoadDataCommand(); try { command.validate(); fail(); } catch (RequiredPropertyNullRuntimeException expected) { } }
/** @throws Exception */ @Test public void testInit() throws Exception { LoadDataCommand command = new LoadDataCommand(); command.setConfigPath("s2jdbc-gen-core-test.dicon"); command.setClasspathDir(new File("dir")); command.validate(); command.init(); assertNotNull(command.sqlUnitExecutor); assertNotNull(command.databaseDescFactory); assertNotNull(command.loader); assertNotNull(command.entityMetaReader); assertNotNull(command.dialect); assertNotNull(command.ddlVersionDirectoryTree); }