X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=support%2Fgeneral%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Ftest%2FAssertionUtils.java;h=e6e0b155c72650cc06b3d42bc913d44f66ee77fa;hb=e84a037d2ee2d2d2e8d991128f83978f2e98201c;hp=b23eee933ecb6fbf3cc2878381a759e52c6797c8;hpb=e72743b6a9fac5a99b842f92b1687fba65ef3210;p=utils diff --git a/support/general/src/test/java/org/wamblee/test/AssertionUtils.java b/support/general/src/test/java/org/wamblee/test/AssertionUtils.java index b23eee93..e6e0b155 100644 --- a/support/general/src/test/java/org/wamblee/test/AssertionUtils.java +++ b/support/general/src/test/java/org/wamblee/test/AssertionUtils.java @@ -12,7 +12,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.wamblee.test; import java.util.Arrays; @@ -29,7 +29,8 @@ import junit.framework.TestCase; * @author Erik Brakkee */ public final class AssertionUtils { - private static final Logger LOG = Logger.getLogger(AssertionUtils.class.getName()); + private static final Logger LOG = Logger.getLogger(AssertionUtils.class + .getName()); /** * Disabled constructor. @@ -74,7 +75,7 @@ public final class AssertionUtils { /** * Asserts that two objects are equal, and in case the object is an Object[] - * delegates to {@link #assertEquals(String, Object[], Object[]). + * delegates to {@link #assertEquals(String, Object[], Object[])}. * * @param aMsg * Message. @@ -110,9 +111,9 @@ public final class AssertionUtils { TestCase.assertEquals("Map sizes differ", aExpectedMap.size(), aActual .size()); - Set> expectedEntries = aExpectedMap.entrySet(); + Set> expectedEntries = aExpectedMap.entrySet(); - for (Entry entry: expectedEntries) { + for (Entry entry : expectedEntries) { Key key = entry.getKey(); TestCase.assertTrue("Map does not containg entry for key:" + key, aActual.containsKey(key)); @@ -124,7 +125,7 @@ public final class AssertionUtils { /** * Asserts that an exception occurs. * - * @param aRunnable + * @param aObject Erroneious code. * Test cases should create a subclass of this which contains the * code that should throw an exception. * @param aType @@ -139,7 +140,7 @@ public final class AssertionUtils { LOG.info("Expected exception occured " + t.getMessage()); return; // ok - } + } throw new RuntimeException(t); } }