Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/schema_salad/java/test_utils/YamlUtilsTest.java @ 0:26e78fe6e8c4 draft
"planemo upload commit c699937486c35866861690329de38ec1a5d9f783"
author | shellac |
---|---|
date | Sat, 02 May 2020 07:14:21 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:26e78fe6e8c4 |
---|---|
1 package ${package}.utils; | |
2 | |
3 import java.util.Map; | |
4 import org.junit.Assert; | |
5 import org.junit.Test; | |
6 | |
7 public class YamlUtilsTest { | |
8 @Test | |
9 public void testSimpleLoad() { | |
10 final String yamlStr = "moo: cow\nbark: dog\n"; | |
11 final Map<String, Object> loaded = YamlUtils.mapFromString(yamlStr); | |
12 Assert.assertEquals(loaded.get("moo"), "cow"); | |
13 Assert.assertEquals(loaded.get("bark"), "dog"); | |
14 } | |
15 } |