for(MatrixConfiguration c: matrixProject.getItems()){
AbstractBuild configurationBuild = c.getBuildByNumber(1);
List<Action> actions = configurationBuild.getTransientActions();
for(Action action : actions){
if(action instanceof BuildDiskUsageAction){
BuildDiskUsageAction a = (BuildDiskUsageAction) action;
a.setDiskUsage(kiloBytes);
}
}
count++;
}
BuildDiskUsageAction action = null;
for(Action a: matrixBuild.getTransientActions()){
if(a instanceof BuildDiskUsageAction){
action = (BuildDiskUsageAction) a ;
action.setDiskUsage(kiloBytes);
break;
}
}
count ++;
String size = (kiloBytes*count/1024) + " KB";
assertEquals("String representation of build disk usage which has " + size + " is wrong.", size, action.getBuildUsageString());
}