-
Notifications
You must be signed in to change notification settings - Fork 3
/
WHATSNEW
184 lines (121 loc) · 4.47 KB
/
WHATSNEW
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
JUnit-addons
============
Changes from version 1.4 to 1.5
===============================
Framework
---------
* Assert: new method pass() and pass(String)
* ClassAssert: new class
* ComparisonFailure: bug fix
* ExecutionError (new class): when a custom assert method throws exceptions,
it's best to catch it and rethrow it. But not with a AssertionFailedError
but with this new class instead.
Util
----
* ObjectUtil (new class)
* SimpleTestFilter: deprecated in favor of BasicTestFilter
* AbstractTestFilter, BasicTestFilter (new classes): the package names are
now calculated according to a root that is devined when starting to browse
a directory.
Resolved Tracker Items
----------------------
[ 970622 ] Fix SimpleTestFilter on Windows
[ 966081 ] Wrong message in exception when a field is not found
[ 924109 ] fix to EqualsHashCodeTestCase null and wrong-class tests
Changes from version 1.3 to 1.4
===============================
Framework
---------
* FileAssert: fix bug 724587: ignoring last line of file
* ListAssert (new class)
* NamingAssert (new class)
* ObjectAssert
New methods: assertSame (with better ouput message)
assertNotSame (with better output message)
* StringAssert
New methods: assertStartsWith(String substring, String actual)
assertNotStartsWith(String substring, String actual)
assertEndsWith(String substring, String actual)
assertNotEndsWith(String substring, String actual)
Util
----
* Converter: removed the deprecated methods
* NamingUtil: intial import of convenient methods for the javax.naming package
* SuiteBuilder: removed the deprecated methods
* TestFilter: new method include(String) that is invoked before the class is
loaded to speed up the discovery process.
Changes from version 1.2 to 1.3
===============================
Framework
---------
* Assert
New methods: fail(Throwable cause) and fail(String message, Throwable cause)
assertEquals(String expected, String actual)
assertEquals(String message, String expected, String actual)
* AssertionFailedError
Similar to the official one but supports chained exceptions.
* ComparisonFailure
Similar to the official one but displayed message is at least 10 characters
long (useful when only one character changes).
Util
----
* PrivateAccessor
Correctly reports the exception thrown by an invoked method (the exception was
perviously hidden into an InvocationTargetException exception). Already
written test cases may be broken (the invoke method now throws Throwable and
not simply Exception). Thanks to Dan Griffin for finding this one.
* PropertyManager
Method setProperty(String, String) added.
* ResourceManager
New method hasResource added. The signature of the getResource method
slightly changed (returns null if the resource is not found) and it may break
some already written tests.
* TestFilter (new interface)
The ArchiveSuiteBuilder and DirectorySuiteBuilder now use a TestFilter to
define if a class must be included into the TestSuite. This new mechanism is
more flexible than the previously implemented one (now deprecated).
* ThrowableUtil (new class)
Contains a method to return the stacktrace.
Changes from version 1.1 to 1.2
===============================
Framework
---------
* ArrayAssert
Support of basic types
* ThrowableAssert (new class)
Tests for Throwable (both Exception and Error) objects.
Extensions
----------
* ComparabilityTestCase (new class)
* EqualsHashCodeTestCase (new class)
* SerializabilityTestCase (new class)
Util
----
* ArchiveSuiteBuilder (new class)
Extracts the test classes from an archive (jar or zip file)
* ResourceManager (new class)
Allow tests to share the same resources
* Converter (new class)
Placeholder for various conversion methods
Changes from version 3.7.1 to 1.1
=================================
Framework
---------
* FileAssert (new class)
Tests both text and binary files.
* ComparableAssert (new class)
Tests for Comparable objects.
* OrderedTestSuite (new class)
TestSuite that executes the tests in an alphabetical order.
Extensions
----------
* TestSetup (new class)
Always executes the tearDown method, even if errors occured during the setup
of the fixture of the execution of the test
Tool
----
* TestClassValidator (enhancements)
Checks the validity of the "testXYZ" methods.
Misc
----
* the numbering has been changed since we support both JUnit 3.7 and JUnit 3.8.x