Commit 63a75e19 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

could be final.


Signed-off-by: Kristof Szabados's avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent d2b8dbbf
......@@ -32,7 +32,7 @@ public final class KnownTestcasesDragSourceListener extends DragSourceAdapter {
if (!selection.isEmpty()) {
final TestCaseTreeElement[] testcases = new TestCaseTreeElement[selection.size()];
int i = 0;
for (Iterator<?> it = selection.iterator(); it.hasNext();) {
for (final Iterator<?> it = selection.iterator(); it.hasNext();) {
testcases[i] = (TestCaseTreeElement) it.next();
i++;
}
......
......@@ -67,10 +67,10 @@ public final class TestSetTab extends AbstractLaunchConfigurationTab {
public void createControl(final Composite parent) {
mainComposite = new Composite(parent, SWT.NONE);
setControl(mainComposite);
GridLayout layout = new GridLayout();
final GridLayout layout = new GridLayout();
layout.numColumns = 2;
layout.makeColumnsEqualWidth = true;
GridData gridData = new GridData();
final GridData gridData = new GridData();
gridData.horizontalAlignment = SWT.FILL;
mainComposite.setLayout(layout);
mainComposite.setLayoutData(gridData);
......@@ -88,8 +88,8 @@ public final class TestSetTab extends AbstractLaunchConfigurationTab {
}
private void createKnownTestCasesViewer(final Composite parent) {
Composite composite = new Composite(parent, SWT.NONE);
GridLayout layout = new GridLayout();
final Composite composite = new Composite(parent, SWT.NONE);
final GridLayout layout = new GridLayout();
layout.marginHeight = 0;
layout.marginWidth = 0;
layout.numColumns = 1;
......@@ -115,8 +115,8 @@ public final class TestSetTab extends AbstractLaunchConfigurationTab {
knownTestcasesViewer.setContentProvider(new TestcasesContentProvider());
knownTestcasesViewer.setLabelProvider(testcasesLabelProvider);
int ops = DND.DROP_COPY;
Transfer[] types = new Transfer[] {TestcaseTransfer.getInstance()};
final int ops = DND.DROP_COPY;
final Transfer[] types = new Transfer[] {TestcaseTransfer.getInstance()};
knownTestcasesViewer.addDragSupport(ops, types, new KnownTestcasesDragSourceListener(knownTestcasesViewer));
tableRoot = new TestsetTreeElement("tableRoot");
......@@ -132,7 +132,7 @@ public final class TestSetTab extends AbstractLaunchConfigurationTab {
availableControlparts = new ArrayList<String>();
availableTestcases = new ArrayList<String>();
String testcaseName;
for (String testcase : testcases) {
for (final String testcase : testcases) {
testcaseName = testcase;
if (testcaseName.endsWith(".control")) {
availableControlparts.add(testcaseName);
......@@ -152,8 +152,8 @@ public final class TestSetTab extends AbstractLaunchConfigurationTab {
}
private void createTestsetViewer(final Composite parent) {
Composite composite = new Composite(parent, SWT.NONE);
GridLayout layout = new GridLayout();
final Composite composite = new Composite(parent, SWT.NONE);
final GridLayout layout = new GridLayout();
layout.marginHeight = 0;
layout.marginWidth = 0;
layout.numColumns = 1;
......@@ -179,18 +179,18 @@ public final class TestSetTab extends AbstractLaunchConfigurationTab {
testsetViewer.setContentProvider(new TestcasesContentProvider());
testsetViewer.setLabelProvider(testcasesLabelProvider);
int dragOps = DND.DROP_COPY | DND.DROP_MOVE;
Transfer[] types = new Transfer[] {TestcaseTransfer.getInstance()};
final int dragOps = DND.DROP_COPY | DND.DROP_MOVE;
final Transfer[] types = new Transfer[] {TestcaseTransfer.getInstance()};
testsetViewer.addDragSupport(dragOps, types, new TestsetTreeDragSourceListener(testsetViewer));
int dropOps = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_DEFAULT;
final int dropOps = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_DEFAULT;
testsetViewer.addDropSupport(dropOps, types, new TestsetTreeDropTargetListener(testsetViewer, this));
testsetViewer.addSelectionChangedListener(new ISelectionChangedListener() {
@Override
public void selectionChanged(final SelectionChangedEvent event) {
IStructuredSelection selection = (IStructuredSelection) event.getSelection();
final IStructuredSelection selection = (IStructuredSelection) event.getSelection();
remove.setEnabled(!selection.isEmpty());
rename.setEnabled(!selection.isEmpty() && (selection.getFirstElement() instanceof TestsetTreeElement));
}
......@@ -215,15 +215,15 @@ public final class TestSetTab extends AbstractLaunchConfigurationTab {
if (null == testsetViewer) {
return;
}
TestsetDialog dialog = new TestsetDialog(getShell(), "Create new testset");
final TestsetDialog dialog = new TestsetDialog(getShell(), "Create new testset");
if (dialog.open() != Window.OK) {
return;
}
String testsetName = dialog.getTestsetName();
List<ITreeLeaf> children = treeRoot.children();
for (ITreeLeaf aChildren : children) {
final String testsetName = dialog.getTestsetName();
final List<ITreeLeaf> children = treeRoot.children();
for (final ITreeLeaf aChildren : children) {
if (aChildren.name().equals(testsetName)) {
return;
}
......@@ -247,17 +247,16 @@ public final class TestSetTab extends AbstractLaunchConfigurationTab {
return;
}
IStructuredSelection selection = (IStructuredSelection) testsetViewer.getSelection();
TestsetDialog dialog = new TestsetDialog(getShell(), "Rename testset");
final IStructuredSelection selection = (IStructuredSelection) testsetViewer.getSelection();
final TestsetDialog dialog = new TestsetDialog(getShell(), "Rename testset");
dialog.setTestsetName(((TestsetTreeElement) selection.getFirstElement()).name());
if (dialog.open() != Window.OK) {
return;
}
String testsetName = dialog.getTestsetName();
List<ITreeLeaf> children = treeRoot.children();
for (ITreeLeaf aChildren : children) {
final String testsetName = dialog.getTestsetName();
final List<ITreeLeaf> children = treeRoot.children();
for (final ITreeLeaf aChildren : children) {
if (aChildren.name().equals(testsetName)) {
return;
}
......@@ -280,10 +279,11 @@ public final class TestSetTab extends AbstractLaunchConfigurationTab {
if (null == testsetViewer || testsetViewer.getSelection().isEmpty()) {
return;
}
testsetViewer.getTree().setRedraw(false);
IStructuredSelection selection = (IStructuredSelection) testsetViewer.getSelection();
for (Iterator<?> iterator = selection.iterator(); iterator.hasNext();) {
TreeLeaf element = (TreeLeaf) iterator.next();
final IStructuredSelection selection = (IStructuredSelection) testsetViewer.getSelection();
for (final Iterator<?> iterator = selection.iterator(); iterator.hasNext();) {
final TreeLeaf element = (TreeLeaf) iterator.next();
if (null != element.parent()) {
((TestsetTreeElement) element.parent()).remove(element);
element.dispose();
......@@ -304,7 +304,7 @@ public final class TestSetTab extends AbstractLaunchConfigurationTab {
manager.add(newTestset);
manager.add(rename);
manager.add(remove);
Menu menu = manager.createContextMenu(testsetViewer.getControl());
final Menu menu = manager.createContextMenu(testsetViewer.getControl());
testsetViewer.getControl().setMenu(menu);
}
......@@ -327,14 +327,14 @@ public final class TestSetTab extends AbstractLaunchConfigurationTab {
TestCaseTreeElement helperTestcase;
try {
List<String> testsetNames = configuration.getAttribute("testsetNames", (ArrayList<String>) null);
final List<String> testsetNames = configuration.getAttribute("testsetNames", (ArrayList<String>) null);
if (null != testsetNames) {
for (String testsetName1 : testsetNames) {
String testsetName = testsetName1;
for (final String testsetName1 : testsetNames) {
final String testsetName = testsetName1;
helperTestset = new TestsetTreeElement(testsetName);
treeRoot.addChildToEnd(helperTestset);
List<String> testCases = configuration.getAttribute("testcasesOf" + testsetName, (ArrayList<String>) null);
for (String testCase : testCases) {
final List<String> testCases = configuration.getAttribute("testcasesOf" + testsetName, (ArrayList<String>) null);
for (final String testCase : testCases) {
helperTestcase = new TestCaseTreeElement(testCase);
helperTestset.addChildToEnd(helperTestcase);
}
......@@ -346,8 +346,8 @@ public final class TestSetTab extends AbstractLaunchConfigurationTab {
testsetViewer.setInput(treeRoot);
try {
List<String> tempAvailableTestcases = configuration.getAttribute(AVAILABLETESTCASES_LABEL, (ArrayList<String>) null);
List<String> tempAvailableControlParts = configuration.getAttribute(AVAILABLECONTROLPARTS_LABEL, (ArrayList<String>) null);
final List<String> tempAvailableTestcases = configuration.getAttribute(AVAILABLETESTCASES_LABEL, (ArrayList<String>) null);
final List<String> tempAvailableControlParts = configuration.getAttribute(AVAILABLECONTROLPARTS_LABEL, (ArrayList<String>) null);
if (tempAvailableTestcases != null && !tempAvailableTestcases.equals(availableTestcases)) {
setErrorMessage(TESTCASELIST_CHANGED);
}
......@@ -361,13 +361,13 @@ public final class TestSetTab extends AbstractLaunchConfigurationTab {
@Override
public void performApply(final ILaunchConfigurationWorkingCopy configuration) {
List<String> testsetNames = new ArrayList<String>();
List<List<String>> testSets = new ArrayList<List<String>>();
final List<String> testsetNames = new ArrayList<String>();
final List<List<String>> testSets = new ArrayList<List<String>>();
for (ITreeLeaf testSet : treeRoot.children()) {
for (final ITreeLeaf testSet : treeRoot.children()) {
testsetNames.add(testSet.name());
List<String> testcases = new ArrayList<String>();
for (ITreeLeaf testcase : ((TestsetTreeElement) testSet).children()) {
final List<String> testcases = new ArrayList<String>();
for (final ITreeLeaf testcase : ((TestsetTreeElement) testSet).children()) {
testcases.add(testcase.name());
}
testSets.add(testcases);
......@@ -399,10 +399,10 @@ public final class TestSetTab extends AbstractLaunchConfigurationTab {
* @param testcases the list of testcases to be added to the launch configuration.
* */
public static void setTestcases(final ILaunchConfigurationWorkingCopy workingCopy, final String[] testcases) {
List<String> availableControlparts = new ArrayList<String>();
List<String> availableTestcases = new ArrayList<String>();
final List<String> availableControlparts = new ArrayList<String>();
final List<String> availableTestcases = new ArrayList<String>();
String testcaseName;
for (String testcase : testcases) {
for (final String testcase : testcases) {
testcaseName = testcase;
if (testcaseName.endsWith(".control")) {
availableControlparts.add(testcaseName);
......
......@@ -33,14 +33,14 @@ public final class TestcaseTransfer extends ByteArrayTransfer {
}
protected TestCaseTreeElement[] fromByteArray(final byte[] bytes) {
DataInputStream in = new DataInputStream(new ByteArrayInputStream(bytes));
final DataInputStream in = new DataInputStream(new ByteArrayInputStream(bytes));
TestCaseTreeElement[] testcases = null;
try {
final int size = in.readInt();
testcases = new TestCaseTreeElement[size];
for (int i = 0; i < size; i++) {
TestCaseTreeElement testcase = new TestCaseTreeElement(in.readUTF());
final TestCaseTreeElement testcase = new TestCaseTreeElement(in.readUTF());
testcases[i] = testcase;
}
} catch (IOException e) {
......@@ -88,7 +88,7 @@ public final class TestcaseTransfer extends ByteArrayTransfer {
try {
out.writeInt(testcases.length);
for (TestCaseTreeElement testcase : testcases) {
for (final TestCaseTreeElement testcase : testcases) {
out.writeUTF((testcase).name());
}
......
......@@ -27,7 +27,8 @@ public final class TestcasesContentProvider implements ITreeContentProvider {
@Override
public ITreeLeaf[] getChildren(final Object parentElement) {
if (parentElement instanceof TestsetTreeElement) {
List<ITreeLeaf> temp = ((TestsetTreeElement) parentElement).children();
final List<ITreeLeaf> temp = ((TestsetTreeElement) parentElement).children();
return temp.toArray(new ITreeLeaf[temp.size()]);
}
return new ITreeLeaf[] {};
......
......@@ -41,9 +41,8 @@ public final class TestcasesLabelProvider extends LabelProvider {
public Image getImage(final Object element) {
if (element instanceof TestsetTreeElement) {
final List<ITreeLeaf> temp = ((TestsetTreeElement) element).children();
String name;
for (ITreeLeaf aTemp : temp) {
name = aTemp.name();
for (final ITreeLeaf aTemp : temp) {
final String name = aTemp.name();
if (availableTestcases.contains(name)
|| availableControlparts.contains(name)) {
return ImageCache.getImage("testset.gif");
......
......@@ -29,12 +29,12 @@ public final class TestsetTreeDragSourceListener implements DragSourceListener {
@Override
public void dragFinished(final DragSourceEvent event) {
IStructuredSelection selection = (IStructuredSelection) testsetViewer.getSelection();
final IStructuredSelection selection = (IStructuredSelection) testsetViewer.getSelection();
if (!selection.isEmpty()) {
testsetViewer.getTree().setRedraw(false);
if (event.detail == DND.DROP_MOVE) {
for (Iterator<?> it = selection.iterator(); it.hasNext();) {
Object element = it.next();
for (final Iterator<?> it = selection.iterator(); it.hasNext();) {
final Object element = it.next();
if (element instanceof TestCaseTreeElement) {
((TestsetTreeElement) ((TestCaseTreeElement) element).parent()).remove((TestCaseTreeElement) element);
((TestCaseTreeElement) element).dispose();
......@@ -49,11 +49,11 @@ public final class TestsetTreeDragSourceListener implements DragSourceListener {
@Override
public void dragSetData(final DragSourceEvent event) {
if (TestcaseTransfer.getInstance().isSupportedType(event.dataType)) {
IStructuredSelection selection = (IStructuredSelection) testsetViewer.getSelection();
List<TestCaseTreeElement> testcases = new ArrayList<TestCaseTreeElement>();
final IStructuredSelection selection = (IStructuredSelection) testsetViewer.getSelection();
final List<TestCaseTreeElement> testcases = new ArrayList<TestCaseTreeElement>();
if (!selection.isEmpty()) {
for (Iterator<?> it = selection.iterator(); it.hasNext();) {
Object element = it.next();
for (final Iterator<?> it = selection.iterator(); it.hasNext();) {
final Object element = it.next();
if (element instanceof TestCaseTreeElement) {
testcases.add((TestCaseTreeElement) element);
}
......@@ -65,7 +65,7 @@ public final class TestsetTreeDragSourceListener implements DragSourceListener {
@Override
public void dragStart(final DragSourceEvent event) {
IStructuredSelection selection = (IStructuredSelection) testsetViewer.getSelection();
final IStructuredSelection selection = (IStructuredSelection) testsetViewer.getSelection();
event.doit = !selection.isEmpty() && !(selection.getFirstElement() instanceof TestsetTreeElement);
}
}
......@@ -47,7 +47,7 @@ public final class TestsetTreeDropTargetListener extends DropTargetAdapter {
event.feedback = DND.FEEDBACK_SCROLL;
event.detail = DND.DROP_NONE;
} else {
TreeLeaf element = (TreeLeaf) event.item.getData();
final TreeLeaf element = (TreeLeaf) event.item.getData();
if (element instanceof TestsetTreeElement) {
event.feedback = DND.FEEDBACK_EXPAND | DND.FEEDBACK_SCROLL | DND.FEEDBACK_SELECT;
} else {
......@@ -73,12 +73,12 @@ public final class TestsetTreeDropTargetListener extends DropTargetAdapter {
final TreeLeaf element = (TreeLeaf) event.item.getData();
final TestCaseTreeElement[] treeElements = (TestCaseTreeElement[]) event.data;
if (element instanceof TestsetTreeElement) {
for (TestCaseTreeElement treeElement : treeElements) {
for (final TestCaseTreeElement treeElement : treeElements) {
((TestsetTreeElement) element).addChildToEnd(treeElement);
}
testsetViewer.refresh(element);
} else {
for (TestCaseTreeElement treeElement : treeElements) {
for (final TestCaseTreeElement treeElement : treeElements) {
((TestsetTreeElement) element.parent()).addChildBefore(treeElement, element);
}
testsetViewer.refresh(element.parent());
......
......@@ -30,8 +30,8 @@ public final class LaunchesListener implements ILaunchesListener2 {
@Override
public void launchesAdded(final ILaunch[] launches) {
for (ILaunch launch : launches) {
ILaunchConfiguration launchConfiguration = launch.getLaunchConfiguration();
for (final ILaunch launch : launches) {
final ILaunchConfiguration launchConfiguration = launch.getLaunchConfiguration();
try {
if (ExecutorMonitorView.isSupportedConfiguration(launchConfiguration)) {
......@@ -64,8 +64,8 @@ public final class LaunchesListener implements ILaunchesListener2 {
@Override
public void launchesChanged(final ILaunch[] launches) {
for (int i = 0; i < launches.length; i++) {
ILaunch launched = launches[i];
List<ITreeLeaf> children = executorMonitorView.getRoot().children();
final ILaunch launched = launches[i];
final List<ITreeLeaf> children = executorMonitorView.getRoot().children();
for (int j = 0, size = children.size(); i < size; i++) {
final LaunchElement launchElement = (LaunchElement) children.get(j);
if (launched.equals(launchElement.launch())) {
......@@ -86,7 +86,7 @@ public final class LaunchesListener implements ILaunchesListener2 {
@Override
public void launchesRemoved(final ILaunch[] launches) {
final TreeBranch root = executorMonitorView.getRoot();
for (ILaunch launched : launches) {
for (final ILaunch launched : launches) {
for (int i = root.children().size() - 1; i >= 0; i--) {
final ILaunch temporal = ((LaunchElement) root.children().get(i)).launch();
if (launched.equals(temporal)) {
......@@ -106,8 +106,8 @@ public final class LaunchesListener implements ILaunchesListener2 {
@Override
public void launchesTerminated(final ILaunch[] launches) {
for (ILaunch launched : launches) {
for (ITreeLeaf element : executorMonitorView.getRoot().children()) {
for (final ILaunch launched : launches) {
for (final ITreeLeaf element : executorMonitorView.getRoot().children()) {
final LaunchElement launchElement = (LaunchElement) element;
if (launched.equals(launchElement.launch())) {
launchElement.changed();
......
......@@ -29,9 +29,9 @@ public final class NotificationContentProvider implements IStructuredContentProv
@Override
public Object[] getElements(final Object inputElement) {
if (inputElement instanceof LaunchElement) {
List<ITreeLeaf> children = ((LaunchElement) inputElement).children();
for (ITreeLeaf aChildren : children) {
BaseExecutor executor = ((MainControllerElement) aChildren).executor();
final List<ITreeLeaf> children = ((LaunchElement) inputElement).children();
for (final ITreeLeaf aChildren : children) {
final BaseExecutor executor = ((MainControllerElement) aChildren).executor();
if (null != executor && null != executor.notifications()) {
return executor.notifications().toArray();
}
......
......@@ -34,7 +34,7 @@ public final class NotificationLabelProvider extends LabelProvider implements IT
@Override
public String getColumnText(final Object element, final int columnIndex) {
if (element instanceof Notification) {
Notification nElement = (Notification) element;
final Notification nElement = (Notification) element;
switch (columnIndex) {
case 0:
return nElement.getTimestamp();
......
......@@ -172,7 +172,7 @@ public final class NotificationView extends ViewPart implements ISelectionListen
}
if (isFollowing && null != actualInput && actualInput instanceof LaunchElement) {
final List<ITreeLeaf> children = ((LaunchElement) actualInput).children();
for (ITreeLeaf aChildren : children) {
for (final ITreeLeaf aChildren : children) {
final BaseExecutor executor = ((MainControllerElement) aChildren).executor();
if (null != executor && !executor.notifications().isEmpty()) {
viewer.reveal(executor.notifications().get(executor.notifications().size() - 1));
......@@ -187,7 +187,7 @@ public final class NotificationView extends ViewPart implements ISelectionListen
public void run() {
if (null != actualInput && actualInput instanceof LaunchElement) {
final List<ITreeLeaf> children = ((LaunchElement) actualInput).children();
for (ITreeLeaf aChildren : children) {
for (final ITreeLeaf aChildren : children) {
final BaseExecutor executor = ((MainControllerElement) aChildren).executor();
if (null != executor) {
executor.notifications().clear();
......@@ -284,11 +284,11 @@ public final class NotificationView extends ViewPart implements ISelectionListen
try {
out = new PrintWriter(new FileWriter(file));
final List<ITreeLeaf> children = ((LaunchElement) actualInput).children();
for (ITreeLeaf aChildren : children) {
for (final ITreeLeaf aChildren : children) {
final BaseExecutor executor = ((MainControllerElement) aChildren).executor();
if (null != executor) {
List<Notification> tempList = executor.notifications();
for (Notification aTempList : tempList) {
final List<Notification> tempList = executor.notifications();
for (final Notification aTempList : tempList) {
out.println(aTempList.toString());
}
}
......
......@@ -43,7 +43,7 @@ public final class ExecutedTestcase {
@Override
public String toString() {
Joiner joiner = new Joiner(" ")
final Joiner joiner = new Joiner(" ")
.join(timestamp)
.join(testcaseName)
.join(verdict);
......
......@@ -32,7 +32,7 @@ public final class TestExecutionContentProvider implements IStructuredContentPro
final List<Object> list = new ArrayList<Object>();
if (inputElement instanceof LaunchElement) {
final List<ITreeLeaf> children = ((LaunchElement) inputElement).children();
for (ITreeLeaf aChildren : children) {
for (final ITreeLeaf aChildren : children) {
final BaseExecutor executor = ((MainControllerElement) aChildren).executor();
if (null != executor) {
list.addAll(executor.executedTests());
......
......@@ -63,7 +63,7 @@ public final class TestExecutionView extends ViewPart implements ISelectionListe
public void createPartControl(final Composite parent) {
table = new Table(parent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION);
GridData gridData = new GridData(GridData.FILL_BOTH);
final GridData gridData = new GridData(GridData.FILL_BOTH);
gridData.grabExcessVerticalSpace = true;
gridData.horizontalSpan = 2;
table.setLayoutData(gridData);
......@@ -73,7 +73,7 @@ public final class TestExecutionView extends ViewPart implements ISelectionListe
TableColumn column = new TableColumn(table, SWT.LEFT, 0);
column.setText("reason");
column.setWidth(300);
Image infoImage = ImageCache.getImage("information2.gif");
final Image infoImage = ImageCache.getImage("information2.gif");
column.setImage(infoImage);
column.setMoveable(true);
column.setAlignment(SWT.LEFT);
......@@ -167,7 +167,7 @@ public final class TestExecutionView extends ViewPart implements ISelectionListe
}
if (isFollowing && null != actualInput && actualInput instanceof LaunchElement) {
final List<ITreeLeaf> children = ((LaunchElement) actualInput).children();
for (ITreeLeaf aChildren : children) {
for (final ITreeLeaf aChildren : children) {
final BaseExecutor executor = ((MainControllerElement) aChildren).executor();
if (null != executor && !executor.executedTests().isEmpty()) {
viewer.reveal(executor.executedTests().get(executor.executedTests().size() - 1));
......@@ -196,7 +196,7 @@ public final class TestExecutionView extends ViewPart implements ISelectionListe
@Override
public void run() {
if (null != executor && !executor.executedTests().isEmpty()) {
TableViewer tableViewer = getInstance().viewer;
final TableViewer tableViewer = getInstance().viewer;
tableViewer.setInput(executor.executedTests());
tableViewer.reveal(executor.executedTests().get(executor.executedTests().size() - 1));
}
......@@ -213,10 +213,10 @@ public final class TestExecutionView extends ViewPart implements ISelectionListe
final List<ExecutedTestcase> executedTestCases = new ArrayList<ExecutedTestcase>();
final List<ITreeLeaf> children = ((LaunchElement) actualInput).children();
ITreeLeaf executorElement;
for (ITreeLeaf aChildren : children) {
for (final ITreeLeaf aChildren : children) {
executorElement = aChildren;
if (executorElement instanceof MainControllerElement) {
BaseExecutor executor = ((MainControllerElement) executorElement).executor();
final BaseExecutor executor = ((MainControllerElement) executorElement).executor();
if (null != executor) {
executedTestCases.addAll(executor.executedTests());
}
......@@ -227,7 +227,7 @@ public final class TestExecutionView extends ViewPart implements ISelectionListe
return;
}
String statistics = createStatistics(element, executedTestCases);
final String statistics = createStatistics(element, executedTestCases);
setTitleToolTip(statistics);
}
......@@ -237,8 +237,8 @@ public final class TestExecutionView extends ViewPart implements ISelectionListe
int error = 0;
int none = 0;
int pass = 0;
int sum = executedTestCases.size();
for (ExecutedTestcase test : executedTestCases) {
final int sum = executedTestCases.size();
for (final ExecutedTestcase test : executedTestCases) {
if (PASS.equals(test.getVerdict())) {
pass++;
} else if (INCONC.equals(test.getVerdict())) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment