@Test public void testFindUsageStatistics_inexistingTarget() throws Exception { List<TargetUsageItem> items = this.resource.findUsageStatistics( "4" ); Assert.assertEquals( 0, items.size()); }
@Override public List<TargetUsageItem> findUsageStatistics( String targetId ) { this.logger.fine( "Request: list usage statistics for target " + targetId + "." ); return this.manager.targetsMngr().findUsageStatistics( targetId ); }
TargetResource implements ITargetResource { @Override public List<TargetUsageItem> findUsageStatistics( String targetId ) { this.logger.fine( "Request: list usage statistics for target " + targetId + "." ); return this.manager.targetsMngr().findUsageStatistics( targetId ); } }
TargetResource implements ITargetResource { @Override public List<TargetUsageItem> findUsageStatistics( String targetId ) { this.logger.fine( "Request: list usage statistics for target " + targetId + "." ); return this.manager.targetsMngr().findUsageStatistics( targetId ); } TargetResource( Manager manager ); }
TargetResource implements ITargetResource { @Override public List<TargetUsageItem> findUsageStatistics( String targetId ) { this.logger.fine( "Request: list usage statistics for target " + targetId + "." ); return this.manager.targetsMngr().findUsageStatistics( targetId ); } TargetResource( Manager manager ); @Override List<TargetWrapperDescriptor> listTargets( String name, String qualifier ); @Override Response createOrUpdateTarget( String rawProperties, String targetId ); @Override Response loadTargetArchive( InputStream uploadedInputStream, FormDataContentDisposition fileDetail ); @Override Response deleteTarget( String targetId ); @Override Response getTargetProperties( String targetId ); @Override Response findTargetById( String targetId ); @Override Response associateTarget(
			String name,
			String qualifier,
			String instancePathOrComponentName,
			String targetId,
			boolean bind ); @Override Response updateHint( String name, String qualifier, String targetId, boolean bind ); @Override List<TargetUsageItem> findUsageStatistics( String targetId ); }
TargetResource implements ITargetResource { @Override public List<TargetUsageItem> findUsageStatistics( String targetId ) { this.logger.fine( "Request: list usage statistics for target " + targetId + "." ); return this.manager.targetsMngr().findUsageStatistics( targetId ); } TargetResource( Manager manager ); @Override List<TargetWrapperDescriptor> listTargets( String name, String qualifier ); @Override Response createOrUpdateTarget( String rawProperties, String targetId ); @Override Response loadTargetArchive( InputStream uploadedInputStream, FormDataContentDisposition fileDetail ); @Override Response deleteTarget( String targetId ); @Override Response getTargetProperties( String targetId ); @Override Response findTargetById( String targetId ); @Override Response associateTarget(
			String name,
			String qualifier,
			String instancePathOrComponentName,
			String targetId,
			boolean bind ); @Override Response updateHint( String name, String qualifier, String targetId, boolean bind ); @Override List<TargetUsageItem> findUsageStatistics( String targetId );  }