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