mil.dod.th.ose.jaxb.proto.converter/test/mil/dod/th/ose/jaxbprotoconverter/TestEnumConverterFileGenerator.java
private String assertTimeStampGeneration(String data)
    {
        //verify date stamp is present, and then remove it
        Pattern p = Pattern.compile("(0|1)[0-9][/][0-3][0-9][/](20)\\d\\d.[0-2][0-9][:][0-5][0-9][:][0-5][0-9]", 
                Pattern.DOTALL | Pattern.MULTILINE);
        Matcher m = p.matcher(data);
        assertThat("The generated date is contained in output." + data, m.find(), is(true));
        int indexTrim = data.indexOf("\n"); //it is followed by a new line char
        return data.substring(indexTrim);
    }
/**
     * Verify and remove generated time stamp data.
     */
Verify and remove generated time stamp data.
Verify and remove generated time stamp data .
private String assertTimeStampGeneration(String data)
    {
        Pattern p = Pattern.compile("(0|1)[0-9][/][0-3][0-9][/](20)\\d\\d.[0-2][0-9][:][0-5][0-9][:][0-5][0-9]", 
                Pattern.DOTALL | Pattern.MULTILINE);
        Matcher m = p.matcher(data);
        assertThat("The generated date is contained in output." + data, m.find(), is(true));
        int indexTrim = data.indexOf("\n"); 
        return data.substring(indexTrim);
    }
private String assertTimeStampGeneration ( String data ) { Pattern p = Pattern . compile ( "(0|1)[0-9][/][0-3][0-9][/](20)\\d\\d.[0-2][0-9][:][0-5][0-9][:][0-5][0-9]" , Pattern . DOTALL | Pattern . MULTILINE ) ; Matcher m = p . matcher ( data ) ; assertThat ( "The generated date is contained in output." + data , m . find ( ) , is ( true ) ) ; int indexTrim = data . indexOf ( "\n" ) ; return data . substring ( indexTrim ) ; }
Verify and remove generated time stamp data.
Verify and remove generated time stamp data .
//verify date stamp is present, and then remove it //it is followed by a new line char