Fixed potential bug found by findbugs

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/vre-management/smart-executor@119321 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2015-10-01 14:29:58 +00:00
parent db8ccbcabd
commit 2ebec0abfe
1 changed files with 2 additions and 2 deletions

View File

@ -269,7 +269,7 @@ public class SmartExecutorSchedulerTest {
for(int i=1; i<5; i++){
PluginState pluginState = pc.getPluginInstanceState(HelloWorldPluginDeclaration.NAME, uuid, i);
if(i%2==1){
if(i%2!=0){
Assert.assertEquals(PluginState.DONE, pluginState);
}else{
Assert.assertEquals(PluginState.DISCARDED, pluginState);
@ -424,7 +424,7 @@ public class SmartExecutorSchedulerTest {
for(int i=1; i<5; i++){
PluginState pluginState = pc.getPluginInstanceState(HelloWorldPluginDeclaration.NAME, uuid, i);
if(i%2==1){
if(i%2!=0){
Assert.assertEquals(PluginState.DONE, pluginState);
}else{
Assert.assertEquals(PluginState.DISCARDED, pluginState);