Search in sources :

Example 6 with SystemCodeCache

use of gov.ca.cwds.rest.api.domain.cms.SystemCodeCache in project api-core by ca-cwds.

the class LogicalIdValidatorTest method setupClass.

@BeforeClass
public static void setupClass() {
    SystemCodeCache systemCodeCache = new TestSystemCodeCache();
    validator = Validation.buildDefaultValidatorFactory().getValidator();
}
Also used : SystemCodeCache(gov.ca.cwds.rest.api.domain.cms.SystemCodeCache) BeforeClass(org.junit.BeforeClass)

Example 7 with SystemCodeCache

use of gov.ca.cwds.rest.api.domain.cms.SystemCodeCache in project api-core by ca-cwds.

the class SystemCodeDescriptionValidatorTest method setupClass.

@BeforeClass
public static void setupClass() {
    SystemCodeCache systemCodeCache = new TestSystemCodeCache();
    // TestSystemCodeCache.init();
    validator = Validation.buildDefaultValidatorFactory().getValidator();
}
Also used : SystemCodeCache(gov.ca.cwds.rest.api.domain.cms.SystemCodeCache) BeforeClass(org.junit.BeforeClass)

Example 8 with SystemCodeCache

use of gov.ca.cwds.rest.api.domain.cms.SystemCodeCache in project cals-api by ca-cwds.

the class ServicesModule method provideSystemCodeCache.

@Provides
public SystemCodeCache provideSystemCodeCache(SystemCodeService systemCodeService) {
    SystemCodeCache systemCodeCache = (SystemCodeCache) systemCodeService;
    systemCodeCache.register();
    return systemCodeCache;
}
Also used : SystemCodeCache(gov.ca.cwds.rest.api.domain.cms.SystemCodeCache) Provides(com.google.inject.Provides)

Aggregations

SystemCodeCache (gov.ca.cwds.rest.api.domain.cms.SystemCodeCache)8 TestSystemCodeCache (gov.ca.cwds.rest.validation.TestSystemCodeCache)4 Test (org.junit.Test)4 BeforeClass (org.junit.BeforeClass)3 JsonGenerator (com.fasterxml.jackson.core.JsonGenerator)1 SerializerProvider (com.fasterxml.jackson.databind.SerializerProvider)1 Provides (com.google.inject.Provides)1 BitSet (java.util.BitSet)1