All pastes #265668 Raw Edit

Mine

public text v1 · immutable
·published 2006-12-03 15:05 UTC
rendered paste body
package j.lang.test;

import static org.junit.Assert.assertEquals;

import org.junit.Test;


public class LoadClassTest	{

	@Test
	public void testLoadClassWithBytePrimitiveArray() throws Exception {
		String byteArrayBinaryName = byte[].class.getName();
		Class<?> c = Thread.currentThread().getContextClassLoader().
				loadClass(byteArrayBinaryName);
		assertEquals(byte[].class, c);
	}
}