Skip to content

Commit 0f05cf5

Browse files
author
Kevin Hellemun
committed
Added test for monetary account joint. (#45)
1 parent c06cf56 commit 0f05cf5

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package com.bunq.sdk.model.generated.endpoint;
2+
3+
import com.bunq.sdk.BunqSdkTestBase;
4+
import com.bunq.sdk.model.core.BunqModel;
5+
import com.google.gson.stream.JsonReader;
6+
import org.junit.BeforeClass;
7+
import org.junit.Test;
8+
9+
import java.io.FileNotFoundException;
10+
import java.io.FileReader;
11+
12+
import static org.junit.Assert.assertNotNull;
13+
14+
public class MonetaryAccountJointTest extends BunqSdkTestBase {
15+
16+
private static final String PATH_TO_JSON_RESPONSE =
17+
"src/test/Recourse/ResponseJsons/MonetaryAccountJoint.json";
18+
19+
@BeforeClass
20+
public static void setUp() {
21+
}
22+
23+
@Test
24+
public void parseMonetaryAccountJoint() throws FileNotFoundException {
25+
JsonReader jsonReader = new JsonReader(new FileReader(PATH_TO_JSON_RESPONSE));
26+
MonetaryAccountJoint monetaryAccountJoint = BunqModel.fromJsonReader(MonetaryAccountJoint.class, jsonReader);
27+
28+
assertNotNull(monetaryAccountJoint);
29+
}
30+
31+
}

0 commit comments

Comments
 (0)