try {
proc= runtime.exec(fullCommand);
i = proc.waitFor();
- } catch (IOException e) {
- logger.warn( "Exception occurred: ", e );
+ } catch ( IOException e) {
+ logger.info( "Exception occurred:", e );
+ return false;
+ } catch (InterruptedException e)
+ {
+ logger.info( "Exception occurred:", e );
return false;
+ }
+ catch (InterruptedException e)
+ {
+ logger.warn( "Exception occurred: ", e );
} finally{
logger.info( "HostUtil execute - exit value : {}", i );
if(proc!=null)
public static boolean storeProperties(String fileName, Properties props) {
BufferedWriter writer = null;
- try {
+ try
+ {
writer = new BufferedWriter(new FileWriter(fileName));
props.store(writer, null);
+ return true;
}
- catch ( IOException e )
+ catch ( final IOException e )
{
logger.info( "Ignore exception" );
return false;
{
LoggerFactory.getLogger( getClass() ).info( "Test case successfult" );
}
-
+
for ( Object[] input : inputArray ) {
for ( int i = -1 ; i < 10 ; i++ ) {
- for( int j = -1 ; j < 10 ; j++ ) {
+ for( int j = i ; j < 10 ; j++ ) {
int deleteCount = 0;
+ Object[] actualData = null;
try {
- actualData = ArrayUtil.remove( input, i, j);
+ Object[] actualData = ArrayUtil.remove( input, i, j);
i = Math.max( 0, i );
if( j <= i) {
assertArrayEquals(input , actualData);