package de.fesere.hypermedia.cj.model.transformer;

import de.fesere.hypermedia.cj.model.Item;
import org.junit.Test;

//For sake of consistency
public class TwoWayTransformerTest {
    private TwoWayTransformer t =  new DummyTransformer();

    @Test(expected = IllegalStateException.class)
    public void testConvertToItem() throws Exception {
        t.convert("foo");
    }

    @Test(expected = IllegalStateException.class)
    public void testConvertFromItem() throws Exception {
        t.convert(new Item());
    }

    private class DummyTransformer extends TwoWayTransformer<String> {

    }

}

@@ -187,21 +187,20 @@
 private 
-TwoWa
+Dumm
 yTransfo
@@ -588,17 +588,16 @@
 ring%3E %7B%0A
-%0A
     %7D%0A%0A%7D

Test just for sake of completeness....