Search in sources :

Example 6 with ClientSummary

use of org.orcid.jaxb.model.v3.dev1.client.ClientSummary in project ORCID-Source by ORCID.

the class JpaJaxbClientAdapterTest method toClientSummaryTest.

@Test
public void toClientSummaryTest() {
    ClientDetailsEntity entity = getClientDetailsEntity();
    ClientSummary summary = adapter.toClientSummary(entity);
    assertEquals(getClientSummary(), summary);
}
Also used : ClientDetailsEntity(org.orcid.persistence.jpa.entities.ClientDetailsEntity) ClientSummary(org.orcid.jaxb.model.v3.dev1.client.ClientSummary) Test(org.junit.Test)

Example 7 with ClientSummary

use of org.orcid.jaxb.model.v3.dev1.client.ClientSummary in project ORCID-Source by ORCID.

the class ClientManagerReadOnlyTest method getClientSummary.

private ClientSummary getClientSummary(String randomString) {
    ClientSummary summary = new ClientSummary();
    summary.setDescription("description " + randomString);
    summary.setName("client-name " + randomString);
    return summary;
}
Also used : ClientSummary(org.orcid.jaxb.model.v3.dev1.client.ClientSummary)

Aggregations

ClientSummary (org.orcid.jaxb.model.v3.dev1.client.ClientSummary)7 Test (org.junit.Test)3 ClientDetailsEntity (org.orcid.persistence.jpa.entities.ClientDetailsEntity)2 Date (java.util.Date)1 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 Map (java.util.Map)1 TreeSet (java.util.TreeSet)1 Response (javax.ws.rs.core.Response)1 MapperFactory (ma.glasnost.orika.MapperFactory)1 MappingContext (ma.glasnost.orika.MappingContext)1 DefaultMapperFactory (ma.glasnost.orika.impl.DefaultMapperFactory)1 ArgumentMatchers.anyString (org.mockito.ArgumentMatchers.anyString)1 Client (org.orcid.jaxb.model.v3.dev1.client.Client)1 ClientRedirectUri (org.orcid.jaxb.model.v3.dev1.client.ClientRedirectUri)1 FuzzyDate (org.orcid.jaxb.model.v3.dev1.common.FuzzyDate)1 PublicationDate (org.orcid.jaxb.model.v3.dev1.common.PublicationDate)1 ClientRedirectUriEntity (org.orcid.persistence.jpa.entities.ClientRedirectUriEntity)1 ClientSecretEntity (org.orcid.persistence.jpa.entities.ClientSecretEntity)1 DBUnitTest (org.orcid.test.DBUnitTest)1