1 package com.atlassian.plugin.util;
2
3 import junit.framework.TestCase;
4
5 public class TestClassLoaderUtils extends TestCase
6 {
7 public void testLoadClass() throws ClassNotFoundException
8 {
9 assertEquals(TestClassLoaderUtils.class, ClassLoaderUtils.loadClass(TestClassLoaderUtils.class.getName(), this.getClass()));
10
11 try
12 {
13 ClassLoaderUtils.loadClass("some.class", null);
14 fail("Should have thrown a class not found exception");
15 }
16 catch (ClassNotFoundException ex)
17 {
18
19 }
20 }
21 }