My favorites
▼
|
Sign in
testng-eclipse
Eclipse plug-in for TestNG
Project Home
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
32
attachment: patch-testng-eclipse.txt
(80.5 KB)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
Index: testng-eclipse/src/main/org/testng/eclipse/TestNGPlugin.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/TestNGPlugin.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/TestNGPlugin.java (working copy)
@@ -266,10 +266,6 @@
}
}
- private static void ppp(final Object message) {
-// System.out.println("[TestNG]:- " + message);
- }
-
// Assume that all the controls that go through bold() have the same font,
// which is probably a safe assumption. The BOLD font will be disposed
// in the stop() method
@@ -306,10 +302,6 @@
return null;
}
- private boolean isEmtpy(String string) {
- return null == string || "".equals(string.trim());
- }
-
/**
* Returns a String that can be used as an identifying key for
* a system property set when tests fail. The value of the property
Index: testng-eclipse/src/main/org/testng/eclipse/launch/RunEditorLaunchDelegate.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/launch/RunEditorLaunchDelegate.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/launch/RunEditorLaunchDelegate.java (working copy)
@@ -1,23 +1,5 @@
package org.testng.eclipse.launch;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.core.ILaunchManager;
-import org.eclipse.debug.ui.DebugUITools;
-import org.eclipse.jdt.core.ICompilationUnit;
-import org.eclipse.jdt.core.IJavaElement;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.ui.IEditorActionDelegate;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IFileEditorInput;
-import org.testng.eclipse.launch.components.ITestContent;
-import org.testng.eclipse.ui.util.ConfigurationHelper;
-import org.testng.eclipse.ui.util.TypeParser;
-import org.testng.eclipse.util.JDTUtil;
public class RunEditorLaunchDelegate extends AbstractTestNGLaunchDelegate {
Index: testng-eclipse/src/main/org/testng/eclipse/launch/TestNGLaunchConfigurationDelegate.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/launch/TestNGLaunchConfigurationDelegate.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/launch/TestNGLaunchConfigurationDelegate.java (working copy)
@@ -13,6 +13,7 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Platform;
@@ -28,7 +29,7 @@
import org.eclipse.jdt.launching.IVMRunner;
import org.eclipse.jdt.launching.SocketUtil;
import org.eclipse.jdt.launching.VMRunnerConfiguration;
-import org.eclipse.jface.util.Assert;
+import org.testng.Assert;
import org.testng.TestNG;
import org.testng.TestNGCommandLineArgs;
import org.testng.eclipse.TestNGPlugin;
@@ -248,21 +249,21 @@
List entries = new ArrayList();
try {
- entries.add(Platform.asLocalURL(new URL(url, "build/classes")).getFile()); //$NON-NLS-1$
+ entries.add(FileLocator.toFileURL(new URL(url, "build/classes")).getFile()); //$NON-NLS-1$
}
catch(IOException e3) {
try {
- entries.add(Platform.asLocalURL(new URL(url, "eclipse-testng.jar")).getFile()); //$NON-NLS-1$
+ entries.add(FileLocator.toFileURL(new URL(url, "eclipse-testng.jar")).getFile()); //$NON-NLS-1$
}
catch(IOException e4) {
;
}
}
if(addedSize == 2) {
- entries.add(Platform.asLocalURL(new URL(url, testngJarLocation)).getFile()); //$NON-NLS-1$
+ entries.add(FileLocator.toFileURL(new URL(url, testngJarLocation)).getFile()); //$NON-NLS-1$
}
- Assert.isTrue(entries.size() == addedSize, "Required JARs available"); //$NON-NLS-1$
+ Assert.assertTrue(entries.size() == addedSize, "Required JARs available"); //$NON-NLS-1$
classPath = new String[cp.length + entries.size()];
@@ -273,10 +274,10 @@
else {
classPath = new String[cp.length + addedSize];
System.arraycopy(cp, 0, classPath, addedSize, cp.length);
- classPath[0] = Platform.asLocalURL(new URL(url, "eclipse-testng.jar")).getFile(); //$NON-NLS-1$
+ classPath[0] = FileLocator.toFileURL(new URL(url, "eclipse-testng.jar")).getFile(); //$NON-NLS-1$
if(addedSize == 2) {
- classPath[1] = Platform.asLocalURL(new URL(url, testngJarLocation)).getFile();
+ classPath[1] = FileLocator.toFileURL(new URL(url, testngJarLocation)).getFile();
}
}
}
Index: testng-eclipse/src/main/org/testng/eclipse/launch/LaunchConfigurationHelper.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/launch/LaunchConfigurationHelper.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/launch/LaunchConfigurationHelper.java (working copy)
@@ -1,8 +1,5 @@
package org.testng.eclipse.launch;
-import org.testng.eclipse.ui.util.ConfigurationHelper;
-import org.testng.eclipse.util.JDTUtil;
-
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
@@ -16,6 +13,8 @@
import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.jdt.core.IJavaProject;
+import org.testng.eclipse.ui.util.ConfigurationHelper;
+import org.testng.eclipse.util.JDTUtil;
public class LaunchConfigurationHelper {
Index: testng-eclipse/src/main/org/testng/eclipse/launch/DebugEditorLaunchDelegate.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/launch/DebugEditorLaunchDelegate.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/launch/DebugEditorLaunchDelegate.java (working copy)
@@ -1,23 +1,5 @@
package org.testng.eclipse.launch;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.core.ILaunchManager;
-import org.eclipse.debug.ui.DebugUITools;
-import org.eclipse.jdt.core.ICompilationUnit;
-import org.eclipse.jdt.core.IJavaElement;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.ui.IEditorActionDelegate;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IFileEditorInput;
-import org.testng.eclipse.launch.components.ITestContent;
-import org.testng.eclipse.ui.util.ConfigurationHelper;
-import org.testng.eclipse.ui.util.TypeParser;
-import org.testng.eclipse.util.JDTUtil;
public class DebugEditorLaunchDelegate extends AbstractTestNGLaunchDelegate {
Index: testng-eclipse/src/main/org/testng/eclipse/launch/components/Filters.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/launch/components/Filters.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/launch/components/Filters.java (working copy)
@@ -1,7 +1,5 @@
package org.testng.eclipse.launch.components;
-import org.testng.eclipse.ui.util.TypeParser;
-
import java.util.ArrayList;
import java.util.List;
@@ -16,6 +14,7 @@
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerFilter;
+import org.testng.eclipse.ui.util.TypeParser;
public class Filters {
Index: testng-eclipse/src/main/org/testng/eclipse/launch/components/BaseVisitor.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/launch/components/BaseVisitor.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/launch/components/BaseVisitor.java (working copy)
@@ -1,11 +1,5 @@
package org.testng.eclipse.launch.components;
-import org.testng.TestNG;
-import org.testng.eclipse.ui.util.Utils;
-import org.testng.eclipse.util.signature.ASTMethodDescriptor;
-import org.testng.eclipse.util.signature.IMethodDescriptor;
-import org.testng.eclipse.util.signature.MethodDescriptor;
-
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
@@ -15,6 +9,11 @@
import org.eclipse.jdt.core.IMethod;
import org.eclipse.jdt.core.dom.ASTVisitor;
import org.eclipse.jdt.core.dom.MethodDeclaration;
+import org.testng.TestNG;
+import org.testng.eclipse.ui.util.Utils;
+import org.testng.eclipse.util.signature.ASTMethodDescriptor;
+import org.testng.eclipse.util.signature.IMethodDescriptor;
+import org.testng.eclipse.util.signature.MethodDescriptor;
public class BaseVisitor extends ASTVisitor implements ITestContent {
static final String JDK14_ANNOTATION = TestNG.JAVADOC_ANNOTATION_TYPE;
Index: testng-eclipse/src/main/org/testng/eclipse/launch/components/CheckBoxTable.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/launch/components/CheckBoxTable.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/launch/components/CheckBoxTable.java (working copy)
@@ -1,7 +1,5 @@
package org.testng.eclipse.launch.components;
-import org.testng.eclipse.util.ResourceUtil;
-
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
@@ -24,6 +22,7 @@
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Table;
import org.eclipse.ui.dialogs.SelectionStatusDialog;
+import org.testng.eclipse.util.ResourceUtil;
/**
*
Index: testng-eclipse/src/main/org/testng/eclipse/launch/TestngTestSelector.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/launch/TestngTestSelector.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/launch/TestngTestSelector.java (working copy)
@@ -20,12 +20,8 @@
private Button radioButton;
private Text text;
- private Button searchButton;
private ModifyListener textAdapter;
- private Composite comp;
private TestNGMainTab callback;
- private ButtonHandler buttonHandler;
- private String labelKey;
// TestNGLaunchConfigurationConstants.XXX
private int testngType;
@@ -94,10 +90,7 @@
int testngType, Composite comp, String labelKey) {
this.callback = callback;
- this.buttonHandler = buttonHandler;
this.testngType = testngType;
- this.comp = comp;
- this.labelKey = labelKey;
textAdapter = new TextAdapter(testngType);
SelectionAdapter radioAdapter = new RadioAdapter(testngType);
@@ -108,7 +101,6 @@
radioButton = wt.radio;
text = wt.text;
- searchButton = wt.button;
}
/////
Index: testng-eclipse/src/main/org/testng/eclipse/launch/tester/JavaTypeExtender.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/launch/tester/JavaTypeExtender.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/launch/tester/JavaTypeExtender.java (working copy)
@@ -1,9 +1,8 @@
package org.testng.eclipse.launch.tester;
-import org.testng.eclipse.util.TestSearchEngine;
-
import org.eclipse.core.expressions.PropertyTester;
import org.eclipse.jdt.core.IJavaElement;
+import org.testng.eclipse.util.TestSearchEngine;
public class JavaTypeExtender extends PropertyTester {
Index: testng-eclipse/src/main/org/testng/eclipse/launch/tester/FileExtender.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/launch/tester/FileExtender.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/launch/tester/FileExtender.java (working copy)
@@ -1,11 +1,10 @@
package org.testng.eclipse.launch.tester;
-import org.testng.eclipse.TestNGPlugin;
-import org.testng.eclipse.util.SuiteFileValidator;
-
import org.eclipse.core.expressions.PropertyTester;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
+import org.testng.eclipse.TestNGPlugin;
+import org.testng.eclipse.util.SuiteFileValidator;
/**
Index: testng-eclipse/src/main/org/testng/eclipse/launch/TestNGTabGroup.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/launch/TestNGTabGroup.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/launch/TestNGTabGroup.java (working copy)
@@ -6,6 +6,7 @@
import org.eclipse.debug.ui.EnvironmentTab;
import org.eclipse.debug.ui.ILaunchConfigurationDialog;
import org.eclipse.debug.ui.ILaunchConfigurationTab;
+import org.eclipse.debug.ui.ILaunchConfigurationTabGroup;
import org.eclipse.debug.ui.sourcelookup.SourceLookupTab;
import org.eclipse.jdt.debug.ui.launchConfigurations.JavaArgumentsTab;
import org.eclipse.jdt.debug.ui.launchConfigurations.JavaClasspathTab;
Index: testng-eclipse/src/main/org/testng/eclipse/launch/AbstractTestNGLaunchDelegate.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/launch/AbstractTestNGLaunchDelegate.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/launch/AbstractTestNGLaunchDelegate.java (working copy)
@@ -30,9 +30,6 @@
* @author <a href='mailto:the_mindstorm[at]evolva[dot]ro'>Alexandru Popescu</a>
*/
public abstract class AbstractTestNGLaunchDelegate implements IEditorActionDelegate {
- private static final Integer CLASS_TYPE= new Integer(TestNGLaunchConfigurationConstants.CLASS);
- private static final Integer SUITE_TYPE= new Integer(TestNGLaunchConfigurationConstants.SUITE);
-
private IAction m_action;
private IEditorPart m_editorPart;
@@ -42,7 +39,6 @@
private String m_configName;
private String m_actionText= "";
- private boolean m_isSuite= false;
private boolean m_enabled= false;
protected abstract String getLaunchMode();
Index: testng-eclipse/src/main/org/testng/eclipse/buildpath/BuildPathSupport.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/buildpath/BuildPathSupport.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/buildpath/BuildPathSupport.java (working copy)
@@ -5,9 +5,9 @@
import java.io.IOException;
import java.net.URL;
+import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
@@ -36,8 +36,7 @@
}
private static URL getLocalURL(URL url) throws IOException {
- // 3.2 only: FileLocator.toFileURL(url);
- return Platform.asLocalURL(url);
+ return FileLocator.toFileURL(url);
}
public static IClasspathEntry getTestNGClasspathEntry() {
Index: testng-eclipse/src/main/org/testng/eclipse/properties/TestNGPropertyPage.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/properties/TestNGPropertyPage.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/properties/TestNGPropertyPage.java (working copy)
@@ -42,7 +42,6 @@
import org.testng.eclipse.util.SWTUtil;
public class TestNGPropertyPage extends PropertyPage {
- private static final IStatus ERROR = new StatusInfo(IStatus.ERROR, "");
private static final String PATH_TITLE = "Path:";
private Text m_outdirPath;
private Text m_reportersText;
Index: testng-eclipse/src/main/org/testng/eclipse/ui/CounterPanel.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/CounterPanel.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/CounterPanel.java (working copy)
@@ -1,10 +1,6 @@
package org.testng.eclipse.ui;
-import org.testng.eclipse.TestNGPlugin;
-
-import java.text.MessageFormat;
-
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CLabel;
@@ -12,12 +8,11 @@
import org.eclipse.swt.events.DisposeListener;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
+import org.testng.eclipse.TestNGPlugin;
/**
* A panel presenting report info:
@@ -29,7 +24,6 @@
* @author <a href='mailto:the_mindstorm@evolva.ro'>Alexandru Popescu</a>
*/
public class CounterPanel extends Composite {
- private static final String TOTAL_MESSAGE_FORMAT = "{0}/{1} ";
private final Image m_successIcon = TestNGPlugin.getImageDescriptor("ovr16/success.gif").createImage(); //$NON-NLS-1$
private final Image m_failureIcon = TestNGPlugin.getImageDescriptor("ovr16/failure.gif").createImage(); //$NON-NLS-1$
private final Image m_skipIcon = TestNGPlugin.getImageDescriptor("ovr16/skip.gif").createImage(); //$NON-NLS-1$
@@ -110,31 +104,6 @@
}
- private Text createReportFor(Composite parent,
- String labelText,
- Color backColor,
- String initialText) {
- Composite cell = new Composite(parent, SWT.BORDER);
- GridLayout gl = new GridLayout();
- gl.numColumns = 2;
- gl.makeColumnsEqualWidth = false;
- gl.horizontalSpacing = 1;
- cell.setLayout(gl);
- cell.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-
- Label label = new Label(cell, SWT.NONE);
- label.setText(labelText);
- label.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_CENTER));
- label.setFont(JFaceResources.getBannerFont());
-
- Text text = new Text(cell, SWT.READ_ONLY);
- text.setText(initialText);
- text.setBackground(backColor);
- text.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.GRAB_HORIZONTAL));
-
- return text;
- }
-
/* private void createReportLowerRow() {
Composite lowerRow = new Composite(this, SWT.NONE);
GridLayout gridLayout = new GridLayout();
Index: testng-eclipse/src/main/org/testng/eclipse/ui/OpenTestAction.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/OpenTestAction.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/OpenTestAction.java (working copy)
@@ -11,23 +11,13 @@
package org.testng.eclipse.ui;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.core.runtime.CoreException;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.IMethod;
import org.eclipse.jdt.core.ISourceRange;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.ide.IDE;
import org.eclipse.ui.texteditor.ITextEditor;
-
import org.testng.eclipse.util.JDTUtil;
import org.testng.eclipse.util.ResourceUtil;
Index: testng-eclipse/src/main/org/testng/eclipse/ui/JUnitProgressBar.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/JUnitProgressBar.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/JUnitProgressBar.java (working copy)
@@ -49,7 +49,6 @@
private int m_testCounter;
private int m_totalMethodsCounter;
private int m_methodsCounter;
- private String m_currentMessage = "Tests: 0/0 Methods: 0/0";
private String m_timeMessage= "";
public JUnitProgressBar(Composite parent) {
@@ -103,7 +102,6 @@
m_totalMethodsCounter = 0;
m_methodsCounter = 0;
m_timeMessage= "";
- m_currentMessage = getCurrentMessage();
redraw();
// ppp("reset");
@@ -121,7 +119,6 @@
startX = Math.max(1, startX);
gc.fillRectangle(startX, 1, endX - startX, rect.height - 2);
String string = getCurrentMessage();
- m_currentMessage = string;
gc.setFont(JFaceResources.getDefaultFont());
FontMetrics fontMetrics = gc.getFontMetrics();
int stringWidth = fontMetrics.getAverageCharWidth() * string.length();
@@ -232,7 +229,6 @@
public void stepTests() {
m_testCounter++;
- m_currentMessage = getCurrentMessage();
redraw();
}
@@ -241,8 +237,4 @@
m_timeMessage= msg;
redraw();
}
-
- private static void ppp(Object msg) {
-// System.out.println("[JUP]: " + msg);
- }
}
Index: testng-eclipse/src/main/org/testng/eclipse/ui/conversion/JUnitConverterQuickAssistProcessor.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/conversion/JUnitConverterQuickAssistProcessor.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/conversion/JUnitConverterQuickAssistProcessor.java (working copy)
@@ -70,8 +70,4 @@
vResult.toArray(new IJavaCompletionProposal[vResult.size()]);
}
- private static void ppp(String s) {
- System.out.println("[JUnitConverterQuickAssistProcessor] " + s);
- }
-
}
Index: testng-eclipse/src/main/org/testng/eclipse/ui/conversion/JUnitVisitor.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/conversion/JUnitVisitor.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/conversion/JUnitVisitor.java (working copy)
@@ -27,6 +27,7 @@
private MethodDeclaration m_suite = null;
private SimpleType m_testCase = null;
private List m_junitImports = new ArrayList();
+ private TypeDeclaration m_typeDeclaration = null;
public boolean visit(ImportDeclaration id) {
String name = id.getName().getFullyQualifiedName();
@@ -38,7 +39,7 @@
public boolean visit(MethodDeclaration md) {
String methodName = md.getName().getFullyQualifiedName();
- if (methodName.indexOf("test") != -1) {
+ if (methodName.startsWith("test")) {
m_testMethods.add(md);
}
else if (methodName.equals("setUp")) {
@@ -55,6 +56,7 @@
}
public boolean visit(TypeDeclaration td) {
+ m_typeDeclaration = td;
Type superClass = td.getSuperclassType();
if (superClass instanceof SimpleType) {
SimpleType st = (SimpleType) superClass;
@@ -65,10 +67,6 @@
return super.visit(td);
}
- private static void ppp(String s) {
- System.out.println("[JUnitVisitor] " + s);
- }
-
public MethodDeclaration getSetUp() {
return m_setUp;
}
@@ -109,4 +107,12 @@
return m_junitImports;
}
+ public TypeDeclaration getTypeDeclaration() {
+ return m_typeDeclaration;
+ }
+
+ public void setTypeDeclaration(TypeDeclaration declaration) {
+ m_typeDeclaration = declaration;
+ }
+
}
Index: testng-eclipse/src/main/org/testng/eclipse/ui/conversion/AnnotationRewriter.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/conversion/AnnotationRewriter.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/conversion/AnnotationRewriter.java (working copy)
@@ -4,12 +4,12 @@
import java.util.List;
import org.eclipse.jdt.core.dom.AST;
-import org.eclipse.jdt.core.dom.BooleanLiteral;
import org.eclipse.jdt.core.dom.CompilationUnit;
import org.eclipse.jdt.core.dom.ImportDeclaration;
import org.eclipse.jdt.core.dom.MemberValuePair;
import org.eclipse.jdt.core.dom.MethodDeclaration;
import org.eclipse.jdt.core.dom.NormalAnnotation;
+import org.eclipse.jdt.core.dom.StringLiteral;
import org.eclipse.jdt.core.dom.rewrite.ASTRewrite;
import org.eclipse.jdt.core.dom.rewrite.ListRewrite;
@@ -18,33 +18,45 @@
* using JDK5 annotations
*/
public class AnnotationRewriter
- extends BaseRewriter
- implements IRewriteProvider
+extends BaseRewriter
+implements IRewriteProvider
{
public ASTRewrite createRewriter(CompilationUnit astRoot,
AST ast,
JUnitVisitor visitor
- )
+ )
{
final ASTRewrite result = ASTRewrite.create(astRoot.getAST());
-
+
performCommonRewrites(astRoot, ast, visitor, result);
-
+
//
// Add TestNG imports
//
{
ListRewrite lr = result.getListRewrite(astRoot, CompilationUnit.IMPORTS_PROPERTY);
- String[] annotations = {
- "Test", "Configuration", "Factory",
- };
- for (int i = 0; i < annotations.length; i++) {
+ if (visitor.getSetUp() != null) {
ImportDeclaration id = ast.newImportDeclaration();
- id.setName(ast.newName("org.testng.annotations." + annotations[i]));
+ id.setName(ast.newName("org.testng.annotations.BeforeMethod"));
lr.insertFirst(id, null);
}
+ if (visitor.getTearDown() != null) {
+ ImportDeclaration id = ast.newImportDeclaration();
+ id.setName(ast.newName("org.testng.annotations.AfterMethod"));
+ lr.insertFirst(id, null);
+ }
+ if (visitor.getTestMethods().size() > 0) {
+ ImportDeclaration id = ast.newImportDeclaration();
+ id.setName(ast.newName("org.testng.annotations.Test"));
+ lr.insertFirst(id, null);
+ }
+ if (visitor.getSuite() != null) {
+ ImportDeclaration id = ast.newImportDeclaration();
+ id.setName(ast.newName("org.testng.annotations.Factory"));
+ lr.insertFirst(id, null);
+ }
}
-
+
//
// Add @Test annotations
//
@@ -52,20 +64,25 @@
for (int i = 0; i < testMethods.size(); i++) {
NormalAnnotation a = ast.newNormalAnnotation();
a.setTypeName(ast.newName("Test"));
- addAnnotation(result, (MethodDeclaration) testMethods.get(i), a);
+ addAnnotation(ast, visitor, result, (MethodDeclaration) testMethods.get(i), a);
}
-
+
//
- // Addd @Configuration annotations
+ // Add @BeforeMethod and @AfterMethod annotations
//
MethodDeclaration setUp = visitor.getSetUp();
if (null != setUp) {
- addConfiguration(ast, result, setUp, "beforeTestMethod");
+ NormalAnnotation a = ast.newNormalAnnotation();
+ a.setTypeName(ast.newName("BeforeMethod"));
+ addAnnotation(ast, visitor, result, setUp, a);
+
}
-
+
MethodDeclaration tearDown = visitor.getTearDown();
if (null != tearDown) {
- addConfiguration(ast, result, tearDown, "afterTestMethod");
+ NormalAnnotation a = ast.newNormalAnnotation();
+ a.setTypeName(ast.newName("AfterMethod"));
+ addAnnotation(ast, visitor, result, tearDown, a);
}
//
@@ -75,29 +92,34 @@
if (null != suite) {
NormalAnnotation a = ast.newNormalAnnotation();
a.setTypeName(ast.newName("Factory"));
- addAnnotation(result, suite, a);
+ addAnnotation(ast, visitor, result, suite, a);
}
-
+
return result;
}
- private void addConfiguration(AST ast, final ASTRewrite rewriter,
- MethodDeclaration md, String annotation)
- {
- NormalAnnotation a = ast.newNormalAnnotation();
- a.setTypeName(ast.newName("Configuration"));
- List l = a.values();
- MemberValuePair mvp = ast.newMemberValuePair();
- mvp.setName(ast.newSimpleName(annotation));
- BooleanLiteral sl = ast.newBooleanLiteral(true);
- mvp.setValue(sl);
- l.add(mvp);
- addAnnotation(rewriter, md, a);
+ /**
+ * This method attempts to set an initial "groups" property in the annotation, by
+ * combining functional with the name of the class.
+ * @param ast
+ * @param md
+ * @param a
+ */
+ private void setGroupsProperty(AST ast, String testCaseClassName, NormalAnnotation a) {
+ List annotationValues = a.values();
+ MemberValuePair suggestedGroupAttribute = ast.newMemberValuePair();
+ suggestedGroupAttribute.setName(ast.newSimpleName("groups"));
+ StringLiteral suggestedGroup = ast.newStringLiteral();
+ suggestedGroup.setLiteralValue("functional." + testCaseClassName);
+ suggestedGroupAttribute.setValue(suggestedGroup);
+ annotationValues.add(suggestedGroupAttribute);
}
-
- private void addAnnotation(ASTRewrite rewriter, MethodDeclaration md,
+
+ private void addAnnotation(AST ast, JUnitVisitor visitor, ASTRewrite rewriter, MethodDeclaration md,
NormalAnnotation a)
{
+ setGroupsProperty(ast, visitor.getTypeDeclaration().getName().toString(), a);
+
List oldModifiers = md.modifiers();
List newModifiers = new ArrayList();
for (int k = 0; k < oldModifiers.size(); k++) {
Index: testng-eclipse/src/main/org/testng/eclipse/ui/FailureNavigationAction.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/FailureNavigationAction.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/FailureNavigationAction.java (working copy)
@@ -4,12 +4,11 @@
*/
package org.testng.eclipse.ui;
+import org.eclipse.jface.action.Action;
import org.testng.eclipse.TestNGPlugin;
import org.testng.eclipse.util.ResourceUtil;
-import org.eclipse.jface.action.Action;
-
/**
* Class usage XXX
*
Index: testng-eclipse/src/main/org/testng/eclipse/ui/CompareResultsAction.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/CompareResultsAction.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/CompareResultsAction.java (working copy)
@@ -11,11 +11,10 @@
package org.testng.eclipse.ui;
+import org.eclipse.jface.action.Action;
import org.testng.eclipse.TestNGPlugin;
import org.testng.eclipse.util.ResourceUtil;
-import org.eclipse.jface.action.Action;
-
/**
* Action to enable/disable stack trace filtering.
*/
Index: testng-eclipse/src/main/org/testng/eclipse/ui/TestNGQuickFixProcessor.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/TestNGQuickFixProcessor.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/TestNGQuickFixProcessor.java (working copy)
@@ -70,7 +70,6 @@
List proposals) {
try {
ICompilationUnit compilationUnit = context.getCompilationUnit();
- IJavaProject project = compilationUnit.getJavaProject();
String s = compilationUnit.getBuffer().getText(location.getOffset(), location.getLength());
if (maybeTestNGPackage(s)) {
Index: testng-eclipse/src/main/org/testng/eclipse/ui/RunInfo.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/RunInfo.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/RunInfo.java (working copy)
@@ -15,7 +15,6 @@
private static final Pattern CARRAGERETURN= Pattern.compile("\r");
private String m_id;
- private String m_idWithDesc;
private int m_type;
private String m_suiteName;
private String m_testName;
@@ -57,8 +56,6 @@
String stackTrace,
int status) {
m_id = suiteName + "." + testName + "." + className + "." + methodName + toString(params, paramTypes);
- if (testDesc != null) m_idWithDesc = m_id + "." + testDesc;
- else m_idWithDesc = m_id;
m_suiteName = suiteName;
m_testName = testName;
m_className = className;
Index: testng-eclipse/src/main/org/testng/eclipse/ui/TestRunInfo.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/TestRunInfo.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/TestRunInfo.java (working copy)
@@ -28,44 +28,4 @@
public String getId() {
return m_suiteName + "." + m_testName;
}
-
- private static class TestKey {
- protected String m_className;
- protected String m_methodName;
-
-
- /**
- * Returns <code>true</code> if this <code>TestKey</code> is the same as the o argument.
- *
- * @return <code>true</code> if this <code>TestKey</code> is the same as the o argument.
- */
- public boolean equals(Object o) {
- if(this == o) {
- return true;
- }
- if((null == o) || !(o instanceof TestKey)) {
- return false;
- }
-
- TestKey castedObj = (TestKey) o;
-
- return (((this.m_className == null) ? (castedObj.m_className == null)
- : this.m_className.equals(castedObj.m_className))
- && ((this.m_methodName == null) ? (castedObj.m_methodName == null)
- : this.m_methodName.equals(castedObj.m_methodName)));
- }
-
- /**
- * Override hashCode.
- *
- * @return the Objects hashcode.
- */
- public int hashCode() {
- int hashCode = 1;
- hashCode = (31 * hashCode) + ((m_className == null) ? 0 : m_className.hashCode());
- hashCode = (31 * hashCode) + ((m_methodName == null) ? 0 : m_methodName.hashCode());
-
- return hashCode;
- }
- }
}
Index: testng-eclipse/src/main/org/testng/eclipse/ui/AbstractTraceAction.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/AbstractTraceAction.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/AbstractTraceAction.java (working copy)
@@ -6,8 +6,8 @@
import java.io.StringReader;
import java.io.StringWriter;
+import org.eclipse.core.runtime.Assert;
import org.eclipse.jdt.internal.junit.model.TestElement;
-import org.eclipse.core.runtime.Assert;
import org.eclipse.swt.SWTError;
import org.eclipse.swt.dnd.Clipboard;
import org.eclipse.swt.dnd.DND;
Index: testng-eclipse/src/main/org/testng/eclipse/ui/preferences/PreferencePage.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/preferences/PreferencePage.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/preferences/PreferencePage.java (working copy)
@@ -4,8 +4,6 @@
import java.io.File;
import org.eclipse.debug.internal.ui.preferences.BooleanFieldEditor2;
-import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil;
-import org.eclipse.jdt.internal.ui.wizards.dialogfields.StringDialogField;
import org.eclipse.jface.preference.DirectoryFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.IPreferenceStore;
@@ -17,14 +15,12 @@
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.DirectoryDialog;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.testng.eclipse.TestNGPlugin;
import org.testng.eclipse.TestNGPluginConstants;
-import org.testng.eclipse.util.SWTUtil;
/**
* This class represents a preference page that
Index: testng-eclipse/src/main/org/testng/eclipse/ui/TestNGAddLibraryProposal.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/TestNGAddLibraryProposal.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/TestNGAddLibraryProposal.java (working copy)
@@ -30,8 +30,6 @@
private IInvocationContext invocationContext;
- private boolean importTestNGAnnotationPackage;
-
private int relevance;
public TestNGAddLibraryProposal(IInvocationContext context, int relevance) {
@@ -43,7 +41,6 @@
boolean alsoImportTestNGAnnotationPackage) {
this.invocationContext = context;
this.relevance = relevance;
- this.importTestNGAnnotationPackage = alsoImportTestNGAnnotationPackage;
}
public int getRelevance() {
Index: testng-eclipse/src/main/org/testng/eclipse/ui/ShowPreviousFailureAction.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/ShowPreviousFailureAction.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/ShowPreviousFailureAction.java (working copy)
@@ -10,11 +10,10 @@
*******************************************************************************/
package org.testng.eclipse.ui;
+import org.eclipse.jface.action.Action;
import org.testng.eclipse.TestNGPlugin;
import org.testng.eclipse.util.ResourceUtil;
-import org.eclipse.jface.action.Action;
-
class ShowPreviousFailureAction extends Action {
private TestRunnerViewPart fPart;
Index: testng-eclipse/src/main/org/testng/eclipse/ui/ShowNextFailureAction.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/ShowNextFailureAction.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/ShowNextFailureAction.java (working copy)
@@ -10,11 +10,10 @@
*******************************************************************************/
package org.testng.eclipse.ui;
+import org.eclipse.jface.action.Action;
import org.testng.eclipse.TestNGPlugin;
import org.testng.eclipse.util.ResourceUtil;
-import org.eclipse.jface.action.Action;
-
class ShowNextFailureAction extends Action {
private TestRunnerViewPart fPart;
Index: testng-eclipse/src/main/org/testng/eclipse/ui/AbstractHierarchyTab.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/AbstractHierarchyTab.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/AbstractHierarchyTab.java (working copy)
@@ -12,12 +12,8 @@
package org.testng.eclipse.ui;
-import org.testng.eclipse.TestNGPlugin;
-import org.testng.eclipse.util.ResourceUtil;
-
import java.text.MessageFormat;
import java.util.ArrayList;
-import java.util.Arrays;
import java.util.Hashtable;
import java.util.List;
import java.util.Map;
@@ -31,7 +27,6 @@
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.action.Separator;
import org.eclipse.swt.SWT;
-import org.eclipse.swt.SWTException;
import org.eclipse.swt.custom.CTabFolder;
import org.eclipse.swt.custom.CTabItem;
import org.eclipse.swt.events.DisposeEvent;
@@ -48,6 +43,8 @@
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.TreeItem;
import org.testng.ITestResult;
+import org.testng.eclipse.TestNGPlugin;
+import org.testng.eclipse.util.ResourceUtil;
/*
* A view that shows the contents of a test suite
@@ -84,8 +81,6 @@
*/
private List m_failureIds = new ArrayList();
- private boolean fMoveSelection = false;
-
private TestRunnerViewPart fTestRunnerPart;
//do not create TreeItems for tests for FailureTab until failure is known
@@ -220,7 +215,6 @@
* @see net.noco.testng.ui.TestRunTab#activate()
*/
public void activate() {
- fMoveSelection = false;
testSelected();
}
@@ -239,7 +233,6 @@
m_treeItemMap = new Hashtable();
m_runningItems= new Hashtable();
m_duplicateItemsIndex= 0;
- fMoveSelection = false;
}
/**
@@ -692,10 +685,6 @@
return ResourceUtil.getString(key);
}
- private static void ppp(final Object msg) {
-// System.out.println("[TestHierachy]:- " + msg);
- }
-
protected abstract String getTooltipKey();
protected abstract String getSelectedTestKey();
Index: testng-eclipse/src/main/org/testng/eclipse/ui/TestRunnerViewPart.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/TestRunnerViewPart.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/TestRunnerViewPart.java (working copy)
@@ -17,7 +17,6 @@
package org.testng.eclipse.ui;
-import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.HashSet;
@@ -168,7 +167,6 @@
private Action m_rerunAction;
private Action m_rerunFailedAction;
private Action m_openReportAction;
- private boolean m_hasFailures;
private long m_startTime;
private long m_stopTime;
@@ -206,7 +204,6 @@
*/
private IsRunningJob m_isRunningJob;
private ILock m_runLock;
- private boolean m_testIsRunning = false;
/**
* Queue used for processing Tree Entries
@@ -340,30 +337,12 @@
return (m_failedCount + m_skippedCount + m_successPercentageFailed > 0);
}
- private String elapsedTimeAsString(long runTime) {
- return NumberFormat.getInstance().format((double) runTime / 1000);
- }
-
- private void handleStopped() {
- postSyncRunnable(new Runnable() {
- public void run() {
- if(isDisposed()) {
- return;
- }
-
- fProgressBar.stopped();
- }
- });
- stopUpdateJobs();
- }
-
public void startTestRunListening(IJavaProject project,
String subName,
int port,
ILaunch launch) {
m_LastLaunch = launch;
m_workingProject = project;
- m_hasFailures= false;
aboutToLaunch(subName);
@@ -380,7 +359,6 @@
}
protected void aboutToLaunch(final String message) {
- String msg = ResourceUtil.getFormattedString("TestRunnerViewPart.message.launching", message); //$NON-NLS-1$
firePropertyChange(IWorkbenchPart.PROP_TITLE);
}
@@ -396,48 +374,12 @@
fFailureColor.dispose();
}
- private void resetProgressBar(final int total) {
- fProgressBar.reset(total);
- fProgressBar.setMaximum(total, total);
- }
-
private void postSyncRunnable(Runnable r) {
if(!isDisposed()) {
getDisplay().syncExec(r);
}
}
- private void aboutToStart() {
- postSyncRunnable(new Runnable() {
- public void run() {
- if(!isDisposed()) {
- for(Enumeration e = m_tabsList.elements(); e.hasMoreElements();) {
- TestRunTab v = (TestRunTab) e.nextElement();
- v.aboutToStart();
- }
- fNextAction.setEnabled(false);
- fPrevAction.setEnabled(false);
- }
- }
- });
- }
-
- private void postEndTest(final String testId, final String testName) {
- postSyncRunnable(new Runnable() {
- public void run() {
- if(isDisposed()) {
- return;
- }
- m_testIsRunning = false;
-
- if(hasErrors()) {
- fNextAction.setEnabled(true);
- fPrevAction.setEnabled(true);
- }
- }
- });
- }
-
private void refreshCounters() {
m_counterPanel.setMethodCount(m_methodCount);
m_counterPanel.setPassedCount(m_passedCount);
@@ -1062,11 +1004,6 @@
}
}
-
- private static void ppp(final Object message) {
-// System.out.println("[TestRunnerViewPart]:- " + message);
- }
-
/**
* @see IWorkbenchPart#getTitleImage()
*/
@@ -1312,7 +1249,6 @@
fNextAction.setEnabled(hasErrors());
fPrevAction.setEnabled(hasErrors());
m_rerunFailedAction.setEnabled(hasErrors());
- m_hasFailures= true;
postShowTestResultsView();
stopTest();
m_stopTime= System.currentTimeMillis();
Index: testng-eclipse/src/main/org/testng/eclipse/ui/util/Utils.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/util/Utils.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/util/Utils.java (working copy)
@@ -145,8 +145,6 @@
return sourceFile.getAbsolutePath();
}
else {
- String projectPrefixPath= null;
- int lastSegment= rootPath.lastIndexOf('/');
return new File(rootPath, sourcePath).getAbsolutePath();
}
}
Index: testng-eclipse/src/main/org/testng/eclipse/ui/util/TestSelectionDialog.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/util/TestSelectionDialog.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/util/TestSelectionDialog.java (working copy)
@@ -11,7 +11,6 @@
package org.testng.eclipse.ui.util;
import java.lang.reflect.InvocationTargetException;
-
import java.text.MessageFormat;
import org.eclipse.core.internal.resources.File;
@@ -29,7 +28,6 @@
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.dialogs.TwoPaneElementSelector;
import org.eclipse.ui.model.WorkbenchLabelProvider;
-
import org.testng.eclipse.TestNGPlugin;
import org.testng.eclipse.launch.TestNGLaunchConfigurationConstants;
import org.testng.eclipse.launch.components.Filters;
Index: testng-eclipse/src/main/org/testng/eclipse/ui/util/ConfigurationHelper.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/util/ConfigurationHelper.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/util/ConfigurationHelper.java (working copy)
@@ -262,14 +262,6 @@
config.setAttribute(TestNGLaunchConfigurationConstants.LOG_LEVEL, "2");
}
- private static String computeRelativePath(final String rootPath, final String sourcePath) {
- File rootFile = new File(rootPath);
- String rootRelativeName = rootFile.getName();
-
- int idx = sourcePath.indexOf(rootPath);
- return File.separator + rootRelativeName + sourcePath.substring(idx + rootPath.length());
- }
-
/**
* @return List<LaunchSuite>
*/
Index: testng-eclipse/src/main/org/testng/eclipse/ui/util/ProjectChooserDialog.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/util/ProjectChooserDialog.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/util/ProjectChooserDialog.java (working copy)
@@ -1,13 +1,12 @@
package org.testng.eclipse.ui.util;
-import org.testng.eclipse.util.JDTUtil;
-import org.testng.eclipse.util.ResourceUtil;
-
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.ui.JavaElementLabelProvider;
import org.eclipse.jface.window.Window;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.dialogs.ElementListSelectionDialog;
+import org.testng.eclipse.util.JDTUtil;
+import org.testng.eclipse.util.ResourceUtil;
/**
Index: testng-eclipse/src/main/org/testng/eclipse/ui/util/TypeParser.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/ui/util/TypeParser.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/ui/util/TypeParser.java (working copy)
@@ -1,14 +1,13 @@
package org.testng.eclipse.ui.util;
-import org.testng.eclipse.launch.components.AnnotationVisitor;
-import org.testng.eclipse.launch.components.BaseVisitor;
-import org.testng.eclipse.launch.components.ITestContent;
-
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.core.dom.AST;
import org.eclipse.jdt.core.dom.ASTParser;
import org.eclipse.jdt.core.dom.CompilationUnit;
+import org.testng.eclipse.launch.components.AnnotationVisitor;
+import org.testng.eclipse.launch.components.BaseVisitor;
+import org.testng.eclipse.launch.components.ITestContent;
/**
Index: testng-eclipse/src/main/org/testng/eclipse/util/JDTUtil.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/util/JDTUtil.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/util/JDTUtil.java (working copy)
@@ -2,7 +2,6 @@
import java.util.ArrayList;
-import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
@@ -16,8 +15,6 @@
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IJavaModel;
@@ -38,13 +35,10 @@
import org.eclipse.jdt.core.dom.MemberValuePair;
import org.eclipse.jdt.core.dom.NormalAnnotation;
import org.eclipse.jdt.core.dom.StringLiteral;
-import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.PlatformUI;
import org.testng.eclipse.TestNGPlugin;
import org.testng.eclipse.launch.TestNGLaunchConfigurationConstants;
import org.testng.eclipse.ui.RunInfo;
@@ -600,7 +594,6 @@
List values= new ArrayList();
if(paramAttr instanceof ArrayInitializer) {
List literals= ((ArrayInitializer) paramAttr).expressions();
- List paramNames= new ArrayList(literals.size());
for(int j= 0; j < literals.size(); j++) {
StringLiteral str= (StringLiteral) literals.get(j);
values.add(str.getLiteralValue());
Index: testng-eclipse/src/main/org/testng/eclipse/util/SuiteFileValidator.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/util/SuiteFileValidator.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/util/SuiteFileValidator.java (working copy)
@@ -1,9 +1,5 @@
package org.testng.eclipse.util;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.runtime.CoreException;
-import org.testng.eclipse.TestNGPlugin;
-
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
@@ -12,20 +8,12 @@
import java.util.Map;
import java.util.regex.Pattern;
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.parsers.SAXParser;
-import javax.xml.parsers.SAXParserFactory;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.CoreException;
+import org.testng.eclipse.TestNGPlugin;
-import org.testng.xml.Parser;
-import org.xml.sax.Attributes;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-import org.xml.sax.helpers.DefaultHandler;
-
public class SuiteFileValidator {
- private static final SAXParserFactory SAX_FACTORY = SAXParserFactory.newInstance();
- private static SAXParser SAXPARSER;
private static final Pattern SUITE_REGEXP = Pattern.compile("<suite.*");
private static final Pattern TAG_REGEXP = Pattern.compile("<[^>?!]+>");
@@ -75,79 +63,4 @@
public static void ppp(String s) {
System.out.println("[SuiteFileValidator] " + s);
}
-
- private static SAXParser getParser() {
- if(null == SAXPARSER) {
- try {
- SAX_FACTORY.setValidating(false);
- SAXPARSER = SAX_FACTORY.newSAXParser();
- }
- catch(ParserConfigurationException pce) {
- TestNGPlugin.log(pce);
- }
- catch(SAXException saxe) {
- TestNGPlugin.log(saxe);
- }
- }
-
- return SAXPARSER;
- }
-
- private static class SuiteHandler extends DefaultHandler {
- protected boolean m_isValid = false;
- protected int m_elementCount = 0;
-
- public boolean isValid() {
- return m_isValid;
- }
-
-
- public InputSource resolveEntity(String publicId, String systemId)
- throws SAXException
- {
- InputSource result = null;
- if(Parser.TESTNG_DTD_URL.equals(publicId)) {
- InputStream is = getClass().getClassLoader().getResourceAsStream(Parser.TESTNG_DTD);
- if(null == is) {
- is = Thread.currentThread().getContextClassLoader()
- .getResourceAsStream(Parser.TESTNG_DTD);
- if(null == is) {
- System.out.println("WARNING: couldn't find in classpath " + Parser.TESTNG_DTD_URL
- + "\n" + "Fetching it from the Web site.");
- try {
- result = super.resolveEntity(systemId, publicId);
- }
- catch (Exception e) {
- throw new SAXException(e);
- }
- }
- else {
- result = new InputSource(is);
- }
- }
- else {
- result = new InputSource(is);
- }
- }
- else {
- try {
- result = super.resolveEntity(systemId, publicId);
- }
- catch (Exception e) {
- throw new SAXException(e);
- }
- }
-
- return result;
- }
-
-
- public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
- if(m_elementCount++ == 0) {
- if ("suite".equals(qName)) {
- m_isValid = true;
- }
- }
- }
- }
}
Index: testng-eclipse/src/main/org/testng/eclipse/util/param/ParameterSolver.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/util/param/ParameterSolver.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/util/param/ParameterSolver.java (working copy)
@@ -10,10 +10,8 @@
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
-import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IJavaElement;
Index: testng-eclipse/src/main/org/testng/eclipse/util/SuiteBuilder.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/util/SuiteBuilder.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/util/SuiteBuilder.java (working copy)
@@ -1,13 +1,5 @@
package org.testng.eclipse.util;
-import org.testng.TestNG;
-import org.testng.eclipse.TestNGPlugin;
-import org.testng.eclipse.launch.components.ITestContent;
-import org.testng.eclipse.ui.util.TypeParser;
-import org.testng.eclipse.util.signature.IMethodDescriptor;
-import org.testng.eclipse.util.signature.MethodDescriptor;
-import org.testng.internal.AnnotationTypeEnum;
-
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
@@ -22,6 +14,13 @@
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.IMethod;
import org.eclipse.jdt.core.IType;
+import org.testng.TestNG;
+import org.testng.eclipse.TestNGPlugin;
+import org.testng.eclipse.launch.components.ITestContent;
+import org.testng.eclipse.ui.util.TypeParser;
+import org.testng.eclipse.util.signature.IMethodDescriptor;
+import org.testng.eclipse.util.signature.MethodDescriptor;
+import org.testng.internal.AnnotationTypeEnum;
import org.testng.reporters.XMLStringBuffer;
import org.testng.xml.Parser;
Index: testng-eclipse/src/main/org/testng/eclipse/util/TestSearchEngine.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/util/TestSearchEngine.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/util/TestSearchEngine.java (working copy)
@@ -1,11 +1,6 @@
package org.testng.eclipse.util;
-import org.testng.eclipse.TestNGPlugin;
-import org.testng.eclipse.launch.components.Filters;
-import org.testng.eclipse.launch.components.ITestContent;
-import org.testng.eclipse.ui.util.TypeParser;
-
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.HashSet;
@@ -34,6 +29,10 @@
import org.eclipse.jface.operation.IRunnableContext;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.ui.PlatformUI;
+import org.testng.eclipse.TestNGPlugin;
+import org.testng.eclipse.launch.components.Filters;
+import org.testng.eclipse.launch.components.ITestContent;
+import org.testng.eclipse.ui.util.TypeParser;
/**
* Search engine for TestNG related elements.
Index: testng-eclipse/src/main/org/testng/eclipse/util/SWTUtil.java
===================================================================
--- testng-eclipse/src/main/org/testng/eclipse/util/SWTUtil.java (revision 105)
+++ testng-eclipse/src/main/org/testng/eclipse/util/SWTUtil.java (working copy)
@@ -2,7 +2,6 @@
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.resource.JFaceResources;
-import org.eclipse.jface.util.Assert;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Button;
@@ -10,6 +9,7 @@
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
+import org.testng.Assert;
/**
@@ -37,7 +37,7 @@
}
public static void setButtonDimensionHint(Button button) {
- Assert.isNotNull(button);
+ Assert.assertNotNull(button);
Object gd= button.getLayoutData();
if (gd instanceof GridData) {
((GridData)gd).widthHint= getButtonWidthHint(button);
Index: testng-eclipse/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- testng-eclipse/.settings/org.eclipse.jdt.core.prefs (revision 105)
+++ testng-eclipse/.settings/org.eclipse.jdt.core.prefs (working copy)
@@ -1,4 +1,4 @@
-#Wed Mar 09 09:53:23 GMT+02:00 2005
+#Thu Jul 10 10:52:15 EDT 2008
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4
@@ -10,3 +10,257 @@
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
org.eclipse.jdt.core.compiler.source=1.4
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=80
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=2
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=80
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=space
+org.eclipse.jdt.core.formatter.tabulation.size=2
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
Index: testng-eclipse/.settings/org.eclipse.jdt.ui.prefs
===================================================================
--- testng-eclipse/.settings/org.eclipse.jdt.ui.prefs (revision 105)
+++ testng-eclipse/.settings/org.eclipse.jdt.ui.prefs (working copy)
@@ -1,3 +0,0 @@
-#Sat May 14 15:33:22 GMT+02:00 2005
-eclipse.preferences.version=1
-internal.default.compliance=user
Powered by
Google Project Hosting