Search in sources :

Example 1 with DatabaseV4Identifiers

use of com.sequenceiq.redbeams.api.endpoint.v4.database.base.DatabaseV4Identifiers in project cloudbreak by hortonworks.

the class DatabaseTestV4RequestTest method testGettersAndSetters.

@Test
public void testGettersAndSetters() {
    DatabaseV4Identifiers identifiers = new DatabaseV4Identifiers();
    request.setExistingDatabase(identifiers);
    assertEquals(identifiers, request.getExistingDatabase());
    DatabaseV4Request serverRequest = new DatabaseV4Request();
    serverRequest.setName("mydb1");
    request.setDatabase(serverRequest);
    assertEquals("mydb1", request.getDatabase().getName());
}
Also used : DatabaseV4Identifiers(com.sequenceiq.redbeams.api.endpoint.v4.database.base.DatabaseV4Identifiers) Test(org.junit.Test)

Aggregations

DatabaseV4Identifiers (com.sequenceiq.redbeams.api.endpoint.v4.database.base.DatabaseV4Identifiers)1 Test (org.junit.Test)1