mil.dod.th.ose.sdk/test/mil/dod/th/ose/sdk/those/ProjectCapabilitiesUtils.java
public static void assertTestPattern(String tagStart, String tagEnd, String field, String lineAccum)
    {    
        String regex = ".*" + tagStart + ".*" + field + ".*" + tagEnd;
        Pattern p = Pattern.compile(regex, Pattern.DOTALL | Pattern.MULTILINE);
        Matcher m = p.matcher(lineAccum);    
        assertThat(" Pattern " + regex + " is not contained in " + lineAccum, m.find(), is(true));
    }
/**
     * Asserts that a pattern is included in a string.
     * @param tagStart the beginning tag used to create the pattern to test
     * @param tagEnd the closing tag used to create the pattern to test
     * @param field the sub-tag or field used to create the pattern to test
     * @param lineAccum the string to test against
     */
Asserts that a pattern is included in a string.
@param tagStart the beginning tag used to create the pattern to test
@param tagEnd the closing tag used to create the pattern to test
@param field the sub-tag or field used to create the pattern to test
@param lineAccum the string to test against
Asserts that a pattern is included in a string . @param tagStart the beginning tag used to create the pattern to test @param tagEnd the closing tag used to create the pattern to test @param field the sub - tag or field used to create the pattern to test @param lineAccum the string to test against
public static void assertTestPattern(String tagStart, String tagEnd, String field, String lineAccum)
    {    
        String regex = ".*" + tagStart + ".*" + field + ".*" + tagEnd;
        Pattern p = Pattern.compile(regex, Pattern.DOTALL | Pattern.MULTILINE);
        Matcher m = p.matcher(lineAccum);    
        assertThat(" Pattern " + regex + " is not contained in " + lineAccum, m.find(), is(true));
    }
public static void assertTestPattern ( String tagStart , String tagEnd , String field , String lineAccum ) { String regex = ".*" + tagStart + ".*" + field + ".*" + tagEnd ; Pattern p = Pattern . compile ( regex , Pattern . DOTALL | Pattern . MULTILINE ) ; Matcher m = p . matcher ( lineAccum ) ; assertThat ( " Pattern " + regex + " is not contained in " + lineAccum , m . find ( ) , is ( true ) ) ; }
Asserts that a pattern is included in a string.
Asserts that a pattern is included in a string .