01: /*
02: Copyright 2004-2007 Paul R. Holser, Jr. All rights reserved.
03: Licensed under the Academic Free License version 3.0
04: */
05:
06: package joptsimple.util;
07:
08: import junit.framework.TestCase;
09:
10: /**
11: * @author <a href="mailto:pholser@alumni.rice.edu">Paul Holser</a>
12: * @version $Id: ShouldNotInstantiateUtilityClassesTest.java,v 1.4 2007/04/10 20:06:26 pholser Exp $
13: */
14: public class ShouldNotInstantiateUtilityClassesTest extends TestCase {
15: public void testStringUtilities() {
16: try {
17: new StringUtilities();
18: fail();
19: } catch (UnsupportedOperationException expected) {
20: assertTrue(expected.getMessage(), true);
21: }
22: }
23: }
|