@@ -0,0 +1,1802 @@
+/*%0A * Copyright 2014 Matteo Ceccarello%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 */%0A%0Apackage it.unipd.dei.experiment;%0A%0Aimport static org.hamcrest.CoreMatchers.*;%0Aimport static org.junit.Assert.*;%0A%0Aimport clojure.lang.*;%0Aimport org.junit.Test;%0A%0Apublic class EdnFormatterTest %7B%0A%0A  public static final Keyword CLASS = Keyword.intern(null, %22class%22);%0A  public static final Keyword NAME = Keyword.intern(null, %22name%22);%0A  public static final Keyword DATE = Keyword.intern(null, %22date%22);%0A  public static final Keyword NOTES = Keyword.intern(null, %22notes%22);%0A  public static final Keyword TAGS = Keyword.intern(null, %22tags%22);%0A  public static final Keyword TABLES = Keyword.intern(null, %22tables%22);%0A%0A  @Test%0A  public void testEdn1() %7B%0A    Experiment exp = new Experiment(%22exp-class%22, %22exp-name%22);%0A    String edn = EdnFormatter.format(exp);%0A    Object parsed = RT.readString(edn);%0A%0A    assertThat(parsed, is(instanceOf(IPersistentMap.class)));%0A%0A    IPersistentMap expMap = (IPersistentMap) parsed;%0A%0A    assertEquals(expMap.valAt(CLASS), %22exp-class%22);%0A    assertEquals(expMap.valAt(NAME), %22exp-name%22);%0A    assertEquals(expMap.valAt(NOTES), PersistentVector.EMPTY);%0A    assertEquals(expMap.valAt(TAGS), PersistentArrayMap.EMPTY);%0A    assertEquals(expMap.valAt(TABLES), PersistentArrayMap.EMPTY);%0A  %7D%0A%0A%7D%0A

Add EdnFormatterTest