@Test public void testGenerateDeploymentId() { when ( driverDef.getUuid() ).thenReturn( "driver1" ); when( dataSourceDef.getUuid() ).thenReturn( "dataSource1" ); assertEquals( "kie#driver1#", DeploymentIdGenerator.generateDeploymentId( driverDef ) ); assertEquals( "kie#dataSource1#", DeploymentIdGenerator.generateDeploymentId( dataSourceDef ) ); assertEquals( "kie#someValue#", DeploymentIdGenerator.generateDeploymentId( "someValue" ) ); }
public static String generateDeploymentId( final DriverDef driverDef ) { return generateDeploymentId( driverDef.getUuid() ); }
DeploymentIdGenerator { public static String generateDeploymentId( final DriverDef driverDef ) { return generateDeploymentId( driverDef.getUuid() ); } }
DeploymentIdGenerator { public static String generateDeploymentId( final DriverDef driverDef ) { return generateDeploymentId( driverDef.getUuid() ); }  }
DeploymentIdGenerator { public static String generateDeploymentId( final DriverDef driverDef ) { return generateDeploymentId( driverDef.getUuid() ); }  static String extractUuid( final String deploymentId ); static String generateDeploymentId( final DriverDef driverDef ); static String generateDeploymentId( final DataSourceDef dataSourceDef ); static String generateDeploymentId( final String uuid ); }
DeploymentIdGenerator { public static String generateDeploymentId( final DriverDef driverDef ) { return generateDeploymentId( driverDef.getUuid() ); }  static String extractUuid( final String deploymentId ); static String generateDeploymentId( final DriverDef driverDef ); static String generateDeploymentId( final DataSourceDef dataSourceDef ); static String generateDeploymentId( final String uuid );  }