@@ -0,0 +1,1596 @@
+/**%0A * Copyright (c) 2008-2010 Andrey Somov%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.yaml.snakeyaml.issues.issue52;%0A%0Aimport java.io.IOException;%0A%0Aimport junit.framework.TestCase;%0A%0Aimport org.yaml.snakeyaml.DumperOptions;%0Aimport org.yaml.snakeyaml.Yaml;%0Aimport org.yaml.snakeyaml.DumperOptions.ScalarStyle;%0A%0A/**%0A * @see %3Ca%0A *      href=%22http://code.google.com/p/snakeyaml/issues/detail?id=52%22%3EIssue%3C/a%3E%0A */%0Apublic class LineBreakDooubleQuotedTest extends TestCase %7B%0A    public void testDoubleQuotedStyle() throws IOException %7B%0A        DumperOptions options = new DumperOptions();%0A        options.setDefaultScalarStyle(ScalarStyle.DOUBLE_QUOTED);%0A        options.setWidth(20);%0A        options.setIndent(4);%0A        Yaml yaml = new Yaml(options);%0A        String etalon = %2212345678901234567890%5Cn%5Cn123  456%22;%0A        String output = yaml.dump(etalon);%0A        System.out.println(output);%0A        assertEquals(%22%5C%2212345678901234567890%5C%5Cn%5C%5C%5Cn    %5C%5Cn123  456%5C%22%5Cn%22, output);%0A        String parsed = (String) yaml.load(output);%0A        assertEquals(etalon, parsed);%0A    %7D%0A%7D%0A

add test for issue 52: check format for double quoted scalar