Source:
<code>public void testFieldFilterRange() { System.out.println("\n----------FieldFilterRange Tests----------"); <START> String value = "4.5"; <END> FieldFilterRange fr = FieldFilterRange.makeEq(value); System.out.println("Testing Equality (String) FilterRange creation - " + fr.toString()); assertEquals("['"+value+"']", fr.toString()); Double dvalue = 2.333; fr = FieldFilterRange.makeEq(dvalue); System.out.println("Testing Equality (Double) FilterRange creation - " + fr.toString()); assertEquals("["+dvalue+"]", fr.toString()); fr = FieldFilterRange.makeLE(4.5); System.out.println("Testing Less than Equality (Double) FilterRange creation - " + fr.toString()); assertEquals("(,4.5]", fr.toString()); fr = FieldFilterRange.makeGE(-982); System.out.println("Testing Greater than Equality (Double) FilterRange creation - " + fr.toString()); assertEquals("[-982,)", fr.toString()); String vals = new String[2]; vals[0] = "one"; vals[1] = "two"; fr = new FieldFilterRange(vals, false); FieldFilterRange fr2 = FieldFilterRange.makeIn(vals); System.out.println("Testing IN [Alpha] FilterRange creation - " + fr.toString()); assertEquals(fr.toString(), fr2.toString()); String in = {"1.0", "1.1", "1.3", "2.3", "3.4"}; fr = FieldFilterRange.makeIn(in); System.out.println("Testing IN [Alpha] FilterRange creation 2- " + fr.toString()); Double ind = {1.0, 1.1, 1.3, 2.3, 3.4}; fr =FieldFilterRange.makeIn(ind); System.out.println("Testing IN [Numeric] FilterRange creation - " + fr.toString()); try { fr = FieldFilterRange.makeStartsWith("a", (short)1); System.out.println("Testing starts with FilterRange creation - " + fr.toString()); fr = FieldFilterRange.makeStartsWith("xy", (short)2); System.out.println("Testing starts with FilterRange creation 2- " + fr.toString()); } catch (Exception e) { e.printStackTrace(); } }</code><technical_language>Formatting is</technical_language>

Target:
public void testFieldFilterRange() { System.out.println("\n----------FieldFilterRange Tests----------"); String value = "4.5"; FieldFilterRange fr = FieldFilterRange.makeEq(value); System.out.println("Testing Equality (String) FilterRange creation - " + fr.toString()); assertEquals("['"+value+"']", fr.toString()); Double dvalue = 2.333; fr = FieldFilterRange.makeEq(dvalue); System.out.println("Testing Equality (Double) FilterRange creation - " + fr.toString()); assertEquals("["+dvalue+"]", fr.toString()); fr = FieldFilterRange.makeLE(4.5); System.out.println("Testing Less than Equality (Double) FilterRange creation - " + fr.toString()); assertEquals("(,4.5]", fr.toString()); fr = FieldFilterRange.makeGE(-982); System.out.println("Testing Greater than Equality (Double) FilterRange creation - " + fr.toString()); assertEquals("[-982,)", fr.toString()); Object vals = new String[2]; vals[0] = "one"; vals[1] = "two"; fr = new FieldFilterRange(vals, false); FieldFilterRange fr2 = FieldFilterRange.makeIn(vals); System.out.println("Testing IN [Alpha] FilterRange creation - " + fr.toString()); assertEquals(fr.toString(), fr2.toString()); String in = {"1.0", "1.1", "1.3", "2.3", "3.4"}; fr = FieldFilterRange.makeIn(in); System.out.println("Testing IN [Alpha] FilterRange creation 2- " + fr.toString()); Double ind = {1.0, 1.1, 1.3, 2.3, 3.4}; fr =FieldFilterRange.makeIn(ind); System.out.println("Testing IN [Numeric] FilterRange creation - " + fr.toString()); try { fr = FieldFilterRange.makeStartsWith("a", (short)1); System.out.println("Testing starts with FilterRange creation - " + fr.toString()); fr = FieldFilterRange.makeStartsWith("xy", (short)2); System.out.println("Testing starts with FilterRange creation 2- " + fr.toString()); } catch (Exception e) { e.printStackTrace(); } }