@@ -0,0 +1,1035 @@
+/**%0A * Copyright (c) 2015 deniskir@gmail.com. All rights reserved.%0A *%0A * @author Denis Kiriusin%0A */%0A%0Apackage com.dksoftware.combo;%0A%0Aimport java.util.regex.Pattern;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0A/**%0A * Tests regular expressions used within the project.%0A */%0Apublic class RegExTest %7B%0A%0A%09@Test%0A%09public void testSectionContainsText() %7B%0A%09%09final String text = %22This is %5Ct a%5Cn %5Cta %5Cn Combinatorius %5Cn%5Cn servlet %5Cn%22;%0A%09%09Pattern p = Pattern.compile(%22(?s)(?:.*Combinatorius.*)%22);%0A%09%09Assert.assertTrue(p.matcher(text).find());%0A%09%7D%0A%0A%09@Test%0A%09public void testSectionContainsTextCaseSensitive() %7B%0A%09%09final String text = %22This is %5Ct a%5Cn %5Cta %5Cn combinatorius %5Cn%5Cn servlet %5Cn%22;%0A%09%09Pattern p = Pattern.compile(%22(?s)(?:.*Combinatorius.*)%22);%0A%09%09Assert.assertFalse(p.matcher(text).find());%0A%09%7D%0A%0A%09@Test%0A%09public void testSectionContainsTextCaseInsensitive() %7B%0A%09%09final String text = %22This is %5Ct a%5Cn %5Cta %5Cn combinatorius %5Cn%5Cn servlet %5Cn%22;%0A%09%09Pattern p = Pattern.compile(%22(?s)(?i:.*Combinatorius.*)%22);%0A%09%09Assert.assertTrue(p.matcher(text).find());%0A%09%7D%0A%7D%0A

Add unit tests for commonly used regular expressions.