1 /* 2 * Copyright (C) The JContainer Group. All rights reserved. 3 * 4 * This software is published under the terms of the JContainer 5 * Software License version 1.1, a copy of which has been included 6 * with this distribution in the LICENSE.txt file. 7 */ 8 package org.jcontainer.dna; 9 10 import junit.framework.TestCase; 11 12 /*** 13 * 14 * @author <a href="mailto:peter at realityforge.org">Peter Donald</a> 15 * @version $Revision: 1.2 $ $Date: 2003/09/23 08:10:14 $ 16 */ 17 public class ReleaseUtilTestCase 18 extends TestCase 19 { 20 public void testReleaseOnReleasable() 21 throws Exception 22 { 23 final MockReleaseable releaseable = new MockReleaseable(); 24 ReleaseUtil.release( releaseable ); 25 assertEquals( "isReleased", true, releaseable.isReleased() ); 26 } 27 28 public void testReleaseOnNonReleasable() 29 throws Exception 30 { 31 final Object object = new Object(); 32 ReleaseUtil.release( object ); 33 } 34 }

This page was automatically generated by Maven