import java.util.Map;
import java.util.Map.Entry;
import java.util.Spliterator;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@Test
public void testConvertEmptyInputToArraySpliterator() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
Spliterator<Object> spliterator;
spliterator = SimpleMapper.getArraySpliterator(get("/empty/1.json"));
@Test
public void testConvertEmptyInputToList() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
List<Object> list;
list = SimpleMapper.convertArray(get("/empty/1.json"));
@Test
public void testConvertEmptyInputToObjectSpliterator() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
Spliterator<Entry<String, Object>> spliterator;
spliterator = SimpleMapper.getObjectSpliterator(get("/empty/1.json"));
@Test
public void testConvertEmptyInputToMap() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
Map<String, Object> map;
map = SimpleMapper.convertObject(get("/empty/1.json"));
@Test
public void testConvertEmptyInput() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
Object object;
object = SimpleMapper.convert(get("/empty/1.json"));
@Test
public void testConvertEmptyArrayToArraySpliterator() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
Spliterator<Object> spliterator;
spliterator = SimpleMapper.getArraySpliterator(get("/array/empty/1.json"));
@Test
public void testConvertEmptyArrayToList() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
List<Object> list;
list = SimpleMapper.convertArray(get("/array/empty/1.json"));
@Test
public void testConvertEmptyArrayToObjectSpliterator() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
try
{
SimpleMapper.getObjectSpliterator(get("/array/empty/1.json"));
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
try
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
try
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
try
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
}
@Test
public void testConvertEmptyArrayToMap() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
try
{
SimpleMapper.convertObject(get("/array/empty/1.json"));
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
try
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
try
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
try
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
}
@Test
public void testConvertEmptyArray() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
Object object;
object = SimpleMapper.convert(get("/array/empty/1.json"));
@Test
public void testConvertEmptyObjectToArraySpliterator() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
try
{
SimpleMapper.getArraySpliterator(get("/object/empty/1.json"));
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
try
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
try
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
try
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
}
@Test
public void testConvertEmptyObjectToList() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
try
{
SimpleMapper.convertArray(get("/object/empty/1.json"));
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
try
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
try
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
try
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
}
@Test
public void testConvertEmptyObjectToObjectSpliterator() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
Spliterator<Entry<String, Object>> spliterator;
spliterator = SimpleMapper.getObjectSpliterator(get("/object/empty/1.json"));
@Test
public void testConvertEmptyObjectToMap() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
Map<String, Object> map;
map = SimpleMapper.convertObject(get("/object/empty/1.json"));
@Test
public void testConvertEmptyObject() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
Object object;
object = SimpleMapper.convert(get("/object/empty/1.json"));
@Test
public void testConvertArrayToArraySpliterator() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
Spliterator<Object> spliterator;
spliterator = SimpleMapper.getArraySpliterator(get("/array/1.json"));
@Test
public void testConvertArrayToList() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
List<Object> list;
list = SimpleMapper.convertArray(get("/array/1.json"));
@Test
public void testConvertArrayToObjectSpliterator() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
try
{
SimpleMapper.getObjectSpliterator(get("/array/1.json"));
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
try
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
}
@Test
public void testConvertArrayToMap() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
try
{
SimpleMapper.convertObject(get("/array/1.json"));
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
try
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
}
@Test
public void testConvertArray() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
Object object;
List<Object> list;
@Test
public void testConvertObjectToArraySpliterator() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
try
{
SimpleMapper.getArraySpliterator(get("/object/1.json"));
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
try
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
}
@Test
public void testConvertObjectToList() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
try
{
SimpleMapper.convertArray(get("/object/1.json"));
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
try
}
catch(IllegalArgumentException e)
{
- LOG.info(e.getMessage());
+ LOG.trace("expected exception", e);
}
}
@Test
public void testConvertObjectToObjectSpliterator() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
Spliterator<Entry<String, Object>> spliterator;
spliterator = SimpleMapper.getObjectSpliterator(get("/object/1.json"));
@Test
public void testConvertObjectToMap() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
Map<String, Object> map;
map = SimpleMapper.convertObject(get("/object/1.json"));
@Test
public void testConvertObject() throws Exception
{
+ LOG.info("<-- Start Of New Test-Case!");
+
Object object;
Map<String, Object> map;