DataHistoricalTimeSeriesMasterResource extends AbstractDataResource { @Path("infos/{infoId}") public DataHistoricalTimeSeriesResource findHistoricalTimeSeries(@PathParam("infoId") String idStr) { ObjectId id = ObjectId.parse(idStr); return new DataHistoricalTimeSeriesResource(this, id); } DataHistoricalTimeSeriesMasterResource(final HistoricalTimeSeriesMaster infoMaster); HistoricalTimeSeriesMaster getHistoricalTimeSeriesMaster(); @GET Response getHateaos(@Context UriInfo uriInfo); @HEAD @Path("infos") Response status(); @GET @Path("metaData") Response metaData(@Context UriInfo uriInfo); @POST @Path("infoSearches") Response search(HistoricalTimeSeriesInfoSearchRequest request); @POST @Path("infos") Response add(@Context UriInfo uriInfo, HistoricalTimeSeriesInfoDocument request); @Path("infos/{infoId}") DataHistoricalTimeSeriesResource findHistoricalTimeSeries(@PathParam("infoId") String idStr); @Path("dataPoints/{dpId}") DataHistoricalDataPointsResource findHistoricalDataPoints(@PathParam("dpId") String idStr); static URI uriMetaData(URI baseUri, HistoricalTimeSeriesInfoMetaDataRequest request); static URI uriSearch(URI baseUri); static URI uriAdd(URI baseUri);  }
@Test public void testFindHistoricalTimeSeries() { DataHistoricalTimeSeriesResource test = _resource.findHistoricalTimeSeries("Test~A"); assertSame(_resource, test.getParentResource()); assertEquals(ObjectId.of("Test", "A"), test.getUrlId()); }