use of com.linkedin.data.schema.StringDataSchemaLocation in project rest.li by linkedin.
the class TestTemplateSpecGenerator method initMocks.
@BeforeMethod
public void initMocks() {
MockitoAnnotations.initMocks(this);
_uniqueNumberGenerator = new AtomicInteger();
_location = new StringDataSchemaLocation("location");
HashMap<String, DataSchemaLocation> schemaToLocation = new HashMap<>();
schemaToLocation.put(INPUT_SCHEMA_NAME, _location);
schemaToLocation.put(CUSTOM_TYPE_1.getFullName(), _location);
schemaToLocation.put(CUSTOM_TYPE_2.getFullName(), _location);
Mockito.when(_resolver.nameToDataSchemaLocations()).thenReturn(schemaToLocation);
}
Aggregations