Add 'sdk/java-v2/' from commit '55f103e336ca9fb8bf1720d2ef4ee8dd4e221118'
[arvados.git] / sdk / java-v2 / src / test / java / org / arvados / client / test / utils / ArvadosClientIntegrationTest.java
1 /*
2  * Copyright (C) The Arvados Authors. All rights reserved.
3  *
4  * SPDX-License-Identifier: AGPL-3.0 OR Apache-2.0
5  *
6  */
7
8 package org.arvados.client.test.utils;
9
10 import org.arvados.client.config.FileConfigProvider;
11 import org.arvados.client.facade.ArvadosFacade;
12 import org.junit.BeforeClass;
13
14 import static org.junit.Assert.assertTrue;
15
16 public class ArvadosClientIntegrationTest {
17
18     protected static final FileConfigProvider CONFIG = new FileConfigProvider("integration-tests-application.conf");
19     protected static final ArvadosFacade FACADE = new ArvadosFacade(CONFIG);
20     protected static final String PROJECT_UUID = CONFIG.getIntegrationTestProjectUuid();
21
22     @BeforeClass
23     public static void validateConfiguration(){
24         String msg = " info must be provided in configuration";
25         CONFIG.getConfig().entrySet()
26                 .forEach(e -> assertTrue("Parameter " + e.getKey() + msg, !e.getValue().render().equals("\"\"")));
27     }
28 }