@@ -0,0 +1,1466 @@
+package org.yaml.snakeyaml.constructor;%0D%0A%0D%0Aimport java.util.HashMap;%0D%0Aimport java.util.Map;%0D%0A%0D%0Aimport junit.framework.TestCase;%0D%0A%0D%0Aimport org.yaml.snakeyaml.composer.Composer;%0D%0Aimport org.yaml.snakeyaml.composer.ComposerImpl;%0D%0Aimport org.yaml.snakeyaml.parser.Parser;%0D%0Aimport org.yaml.snakeyaml.parser.ParserImpl;%0D%0Aimport org.yaml.snakeyaml.reader.Reader;%0D%0Aimport org.yaml.snakeyaml.resolver.Resolver;%0D%0Aimport org.yaml.snakeyaml.resolver.ResolverImpl;%0D%0Aimport org.yaml.snakeyaml.scanner.Scanner;%0D%0Aimport org.yaml.snakeyaml.scanner.ScannerImpl;%0D%0A%0D%0Apublic class ConstructorTest extends TestCase %7B%0D%0A%0D%0A    public void testGetSingleData() %7B%0D%0A        String data = %22american:%5Cn  - Boston Red Sox%22;%0D%0A        Object map = construct(data);%0D%0A        assertNotNull(map);%0D%0A        assertTrue(map.getClass().toString(), map instanceof Map);%0D%0A        assertTrue(map.getClass().toString(), map instanceof HashMap);%0D%0A        // TODO assertTrue(map.getClass().toString(), map instanceof%0D%0A        // LinkedHashMap);%0D%0A    %7D%0D%0A%0D%0A    private Object construct(String data) %7B%0D%0A        Reader reader = new Reader(data);%0D%0A        Scanner scanner = new ScannerImpl(reader);%0D%0A        Parser parser = new ParserImpl(scanner);%0D%0A        Resolver resolver = new ResolverImpl();%0D%0A        Composer composer = new ComposerImpl(parser, resolver);%0D%0A        Constructor constructor = new ConstructorImpl(composer);%0D%0A        Object result = constructor.getSingleData();%0D%0A        return result;%0D%0A    %7D%0D%0A%7D%0D%0A

add constructor list