use of com.yandex.money.api.typeadapters.model.showcase.ShowcaseTypeAdapter in project yandex-money-sdk-java by yandex-money.
the class ModelTests method testShowcase.
@Test
public void testShowcase() {
ShowcaseTypeAdapter adapter = ShowcaseTypeAdapter.getInstance();
checkTypeAdapter("/showcase/showcase-1.json", adapter);
}
use of com.yandex.money.api.typeadapters.model.showcase.ShowcaseTypeAdapter in project yandex-money-sdk-java by yandex-money.
the class ShowcaseTypeAdapterTest method testShowcase.
private static void testShowcase(String fileName) {
ShowcaseTypeAdapter adapter = ShowcaseTypeAdapter.getInstance();
check(fileName, adapter);
try {
Showcase showcase = adapter.fromJson(Resources.load(getPath(fileName)));
Object allowedMoneySource = showcase.moneySources.get(0);
assertEquals(allowedMoneySource.getClass(), AllowedMoneySource.class);
} catch (FileNotFoundException e) {
fail();
}
}
Aggregations