release 0.1 #30

Manually merged
noemi3 merged 150 commits from release/0.1 into master 2020-01-18 14:59:02 +00:00
Showing only changes of commit 4595d7bbe7 - Show all commits

View File

@ -32,7 +32,6 @@ public class CardServiceTest {
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
} }
@After @After
@ -108,8 +107,7 @@ public class CardServiceTest {
try { try {
Card card = service.newCard( Card card = service.newCard(
cardToAdd, "oKthRbLqoXZr5NNua","iA6pmp6fENvF7AaTX",cardToAdd)
"oKthRbLqoXZr5NNua","iA6pmp6fENvF7AaTX")
.execute().body(); .execute().body();
assertNotNull(card); assertNotNull(card);
@ -140,8 +138,6 @@ public class CardServiceTest {
assertEquals("iA6pmp6fENvF7AaTX" + i, cards.get(i).getListId()); assertEquals("iA6pmp6fENvF7AaTX" + i, cards.get(i).getListId());
assertEquals("proof", cards.get(i).getDescription()); assertEquals("proof", cards.get(i).getDescription());
} }
} }
@Test @Test
@ -154,14 +150,13 @@ public class CardServiceTest {
Card update = new Card(); Card update = new Card();
update.setTitle("newTitle"); update.setTitle("newTitle");
Card card = service.putCard(update, "","","") Card card = service.putCard("","","",update)
.execute().body(); .execute().body();
assertNotNull(card); assertNotNull(card);
assertEquals("sig8KLcMcPTGx5GfF", card.getId()); assertEquals("sig8KLcMcPTGx5GfF", card.getId());
} }
private static final String card = private static final String card =
"{"+ "{"+
"\"_id\":\"J5a86fPe2DhqN3QbF\"," + "\"_id\":\"J5a86fPe2DhqN3QbF\"," +
@ -190,6 +185,7 @@ public class CardServiceTest {
"\"type\":\"cardType-card\"," + "\"type\":\"cardType-card\"," +
"\"linkedId\":\"" + "\"linkedId\":\"" +
"}"; "}";
private static final Card cardToAdd = new Card( private static final Card cardToAdd = new Card(
"jPdkf3a9bmfZWx3GR","cardAdded","ScwkAWCRW23duajxJ", "jPdkf3a9bmfZWx3GR","cardAdded","ScwkAWCRW23duajxJ",
"proof"); "proof");