@Test public void testGetStatus() throws Exception { RequestStatusImpl status = new RequestStatusImpl(null); Assert.assertEquals(RequestStatus.Status.Complete, status.getStatus()); Resource requestResource = new ResourceImpl(Resource.Type.Request); requestResource.setProperty("Requests/status", "InProgress"); status = new RequestStatusImpl(requestResource); Assert.assertEquals(RequestStatus.Status.InProgress, status.getStatus()); }
@Override public Status getStatus() { return requestResource == null ? Status.Complete : Status.valueOf((String) requestResource.getPropertyValue(PropertyHelper.getPropertyId("Requests", "status"))); }
RequestStatusImpl implements RequestStatus { @Override public Status getStatus() { return requestResource == null ? Status.Complete : Status.valueOf((String) requestResource.getPropertyValue(PropertyHelper.getPropertyId("Requests", "status"))); } }
RequestStatusImpl implements RequestStatus { @Override public Status getStatus() { return requestResource == null ? Status.Complete : Status.valueOf((String) requestResource.getPropertyValue(PropertyHelper.getPropertyId("Requests", "status"))); } RequestStatusImpl(Resource requestResource);  RequestStatusImpl(Resource requestResource, Set<Resource> associatedResources);  RequestStatusImpl(Resource requestResource, Set<Resource> associatedResources, RequestStatusMetaData requestStatusMetaData); }
RequestStatusImpl implements RequestStatus { @Override public Status getStatus() { return requestResource == null ? Status.Complete : Status.valueOf((String) requestResource.getPropertyValue(PropertyHelper.getPropertyId("Requests", "status"))); } RequestStatusImpl(Resource requestResource);  RequestStatusImpl(Resource requestResource, Set<Resource> associatedResources);  RequestStatusImpl(Resource requestResource, Set<Resource> associatedResources, RequestStatusMetaData requestStatusMetaData); @Override Set<Resource> getAssociatedResources(); @Override Resource getRequestResource(); @Override Status getStatus(); @Override RequestStatusMetaData getStatusMetadata(); }
RequestStatusImpl implements RequestStatus { @Override public Status getStatus() { return requestResource == null ? Status.Complete : Status.valueOf((String) requestResource.getPropertyValue(PropertyHelper.getPropertyId("Requests", "status"))); } RequestStatusImpl(Resource requestResource);  RequestStatusImpl(Resource requestResource, Set<Resource> associatedResources);  RequestStatusImpl(Resource requestResource, Set<Resource> associatedResources, RequestStatusMetaData requestStatusMetaData); @Override Set<Resource> getAssociatedResources(); @Override Resource getRequestResource(); @Override Status getStatus(); @Override RequestStatusMetaData getStatusMetadata();  }