test_class.declarator: changeScriptCreator
test_class.modifier: private
test_class.original_string: private ChangeScriptCreator changeScriptCreator;
test_class.type: ChangeScriptCreator
test_class.var_name: changeScriptCreator
test_class.declarator: scriptDirectory
test_class.modifier: private
test_class.original_string: private File scriptDirectory;
test_class.type: File
test_class.var_name: scriptDirectory
test_class.file: dbdeploy-core/src/test/java/com/dbdeploy/scripts/ChangeScriptCreatorTest.java
test_class.identifier: ChangeScriptCreatorTest
test_case.body: @Test
      public void defaultChangeScriptCreatorCreatesScriptWithTimestamp() throws Exception {
          final File newChangeScript = changeScriptCreator.createScript();
          assertTrue(newChangeScript.exists());
  
          final String newChangeScriptFileName = newChangeScript.getName();
          assertTrue("file name doesnt have sql suffix", newChangeScriptFileName.endsWith(".sql"));
          assertTrue("file name not timestamped correctly", newChangeScriptFileName.matches("[0-9]{14}\\.sql"));
      }
test_case.class_method_signature: ChangeScriptCreatorTest.defaultChangeScriptCreatorCreatesScriptWithTimestamp()
test_case.full_signature: @Test public void defaultChangeScriptCreatorCreatesScriptWithTimestamp()
test_case.identifier: defaultChangeScriptCreatorCreatesScriptWithTimestamp
test_case.invocations: createScript assertTrue exists getName assertTrue endsWith assertTrue matches
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void defaultChangeScriptCreatorCreatesScriptWithTimestamp()
focal_class.declarator: changeScriptSuffix = ".sql"
focal_class.modifier: private
focal_class.original_string: private String changeScriptSuffix = ".sql";
focal_class.type: String
focal_class.var_name: changeScriptSuffix
focal_class.declarator: changeScriptTimestampFormat = "yyyyMMddHHmmss"
focal_class.modifier: private
focal_class.original_string: private String changeScriptTimestampFormat = "yyyyMMddHHmmss";
focal_class.type: String
focal_class.var_name: changeScriptTimestampFormat
focal_class.declarator: scriptDescription
focal_class.modifier: private
focal_class.original_string: private String scriptDescription;
focal_class.type: String
focal_class.var_name: scriptDescription
focal_class.declarator: scriptDirectory
focal_class.modifier: private
focal_class.original_string: private File scriptDirectory;
focal_class.type: File
focal_class.var_name: scriptDirectory
focal_class.declarator: dateFormatter
focal_class.modifier: private
focal_class.original_string: private DateFormat dateFormatter;
focal_class.type: DateFormat
focal_class.var_name: dateFormatter
focal_class.file: dbdeploy-core/src/main/java/com/dbdeploy/scripts/ChangeScriptCreator.java
focal_class.identifier: ChangeScriptCreator
focal_class.class_method_signature: ChangeScriptCreator.ChangeScriptCreator()
focal_class.full_signature: public  ChangeScriptCreator()
focal_class.identifier: ChangeScriptCreator
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  ChangeScriptCreator()
focal_class.class_method_signature: ChangeScriptCreator.go()
focal_class.full_signature: public File go()
focal_class.identifier: go
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: File
focal_class.signature: File go()
focal_class.class_method_signature: ChangeScriptCreator.validate()
focal_class.full_signature: private void validate()
focal_class.identifier: validate
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void validate()
focal_class.class_method_signature: ChangeScriptCreator.createScript()
focal_class.full_signature: public File createScript()
focal_class.identifier: createScript
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: File
focal_class.signature: File createScript()
focal_class.class_method_signature: ChangeScriptCreator.getChangeScriptFileName()
focal_class.full_signature: private String getChangeScriptFileName()
focal_class.identifier: getChangeScriptFileName
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getChangeScriptFileName()
focal_class.class_method_signature: ChangeScriptCreator.getFileTimestamp()
focal_class.full_signature: private String getFileTimestamp()
focal_class.identifier: getFileTimestamp
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getFileTimestamp()
focal_class.class_method_signature: ChangeScriptCreator.setScriptDescription(final String scriptDescription)
focal_class.full_signature: public void setScriptDescription(final String scriptDescription)
focal_class.identifier: setScriptDescription
focal_class.modifiers: public
focal_class.parameters: (final String scriptDescription)
focal_class.return: void
focal_class.signature: void setScriptDescription(final String scriptDescription)
focal_class.class_method_signature: ChangeScriptCreator.setScriptDirectory(final File scriptDirectory)
focal_class.full_signature: public void setScriptDirectory(final File scriptDirectory)
focal_class.identifier: setScriptDirectory
focal_class.modifiers: public
focal_class.parameters: (final File scriptDirectory)
focal_class.return: void
focal_class.signature: void setScriptDirectory(final File scriptDirectory)
focal_class.class_method_signature: ChangeScriptCreator.main(String[] args)
focal_class.full_signature: public static void main(String[] args)
focal_class.identifier: main
focal_class.modifiers: public static
focal_class.parameters: (String[] args)
focal_class.return: void
focal_class.signature: void main(String[] args)
focal_class.class_method_signature: ChangeScriptCreator.parseArguments(String[] args, ChangeScriptCreator creator)
focal_class.full_signature: private static void parseArguments(String[] args, ChangeScriptCreator creator)
focal_class.identifier: parseArguments
focal_class.modifiers: private static
focal_class.parameters: (String[] args, ChangeScriptCreator creator)
focal_class.return: void
focal_class.signature: void parseArguments(String[] args, ChangeScriptCreator creator)
focal_method.body: public File createScript() throws IOException {
          final String newScriptFileName = getChangeScriptFileName();
          final String fullScriptPath = scriptDirectory + File.separator + newScriptFileName;
  
          final File newChangeScriptFile = new File(fullScriptPath);
          if (newChangeScriptFile.createNewFile()) {
              return newChangeScriptFile;
          } else {
              throw new IOException("Unable to create new change script " + fullScriptPath);
          }
      }
focal_method.class_method_signature: ChangeScriptCreator.createScript()
focal_method.full_signature: public File createScript()
focal_method.identifier: createScript
focal_method.invocations: getChangeScriptFileName createNewFile
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: File
focal_method.signature: File createScript()