mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Gaetan Boismal
19.33.2015 c4cd6dee5b5293847c41c241c2a81b1b7e614493
Fix checkstyle issues
2 files modified
22 ■■■■ changed files
opendj-cli/src/test/java/com/forgerock/opendj/cli/TestSubCommandArgumentParserTestCase.java 10 ●●●● patch | view | raw | blame | history
opendj-core/src/test/java/org/forgerock/opendj/ldap/ByteStringTestCase.java 12 ●●●● patch | view | raw | blame | history
opendj-cli/src/test/java/com/forgerock/opendj/cli/TestSubCommandArgumentParserTestCase.java
@@ -154,12 +154,12 @@
    @DataProvider
    public Object[][] indentAndWrapProvider() throws Exception {
        final String EOL = System.getProperty("line.separator");
        final String eol = System.getProperty("line.separator");
        return new Object[][] {
            { "test1",                  5, " ", " test1" + EOL },
            { "test1 test2",            5, " ", " test1" + EOL + " test2" + EOL },
            { "test1 test2test3",       5, " ", " test1" + EOL + " test2test3" + EOL },
            { "test1 test2test3 test4", 5, " ", " test1" + EOL + " test2test3" + EOL +" test4" + EOL },
            { "test1",                  5, " ", " test1" + eol },
            { "test1 test2",            5, " ", " test1" + eol + " test2" + eol },
            { "test1 test2test3",       5, " ", " test1" + eol + " test2test3" + eol },
            { "test1 test2test3 test4", 5, " ", " test1" + eol + " test2test3" + eol + " test4" + eol },
        };
    }
opendj-core/src/test/java/org/forgerock/opendj/ldap/ByteStringTestCase.java
@@ -22,7 +22,7 @@
 *
 *
 *      Copyright 2010 Sun Microsystems, Inc.
 *      Portions copyright 2011-2014 ForgeRock AS
 *      Portions copyright 2011-2015 ForgeRock AS
 */
package org.forgerock.opendj.ldap;
@@ -320,15 +320,15 @@
    @Test
    public void testToHexPlusAsciiString() throws Exception {
        final String EOL = System.getProperty("line.separator");
        final String eol = System.getProperty("line.separator");
        ByteString byteString = new ByteStringBuilder().append("cn=testvalue,org=example").toByteString();
        assertThat(byteString.toHexPlusAsciiString(10)).isEqualTo(
            "          63 6E 3D 74 65 73 74 76   61 6C 75 65 2C 6F 72 67  cn=testv alue,org" + EOL +
            "          3D 65 78 61 6D 70 6C 65                            =example " + EOL);
              "          63 6E 3D 74 65 73 74 76   61 6C 75 65 2C 6F 72 67  cn=testv alue,org" + eol
            + "          3D 65 78 61 6D 70 6C 65                            =example " + eol);
        assertThat(byteString.toHexPlusAsciiString(0)).isEqualTo(
            "63 6E 3D 74 65 73 74 76   61 6C 75 65 2C 6F 72 67  cn=testv alue,org" + EOL +
            "3D 65 78 61 6D 70 6C 65                            =example " + EOL);
              "63 6E 3D 74 65 73 74 76   61 6C 75 65 2C 6F 72 67  cn=testv alue,org" + eol
            + "3D 65 78 61 6D 70 6C 65                            =example " + eol);
    }
    @Test