/*
 * Mutability Detector
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 *
 * Further licensing information for this project can be found in 
 * 		license/LICENSE.txt
 */

package org.mutabilitydetector;

import static org.mutabilitydetector.unittesting.MutabilityAssert.assertInstancesOf;
import static org.mutabilitydetector.unittesting.matchers.MutabilityMatchers.areImmutable;
import static org.mutabilitydetector.unittesting.matchers.MutabilityMatchers.areNotImmutable;

import java.lang.reflect.Array;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.Date;

import javax.management.ImmutableDescriptor;

import org.junit.Ignore;
import org.junit.Test;

public class WellKnownJavaTypesTest {
	
	@Ignore("Not final " +
			"Reassigned field " +
			"Mutable type to field (BigInteger, String)")
	@Test public void BigDecimal() {
		assertInstancesOf(BigDecimal.class, areImmutable());
	}
	
	@Ignore("Not final" +
			"Published fields can be reassigned" +
			"Reassigning field" +
			"Mutable type to field (primitive array)" +
			"Field which is a mutable type")
	@Test public void BigInteger() {
		assertInstancesOf(BigInteger.class, areImmutable());
	}
	
	@Ignore("Mutable type to field (primitive array)" +
			"Field which is a mutable type")
	@Test public void String() {
		assertInstancesOf(String.class, areImmutable());
	}
	
	@Test public void Integer() {
		assertInstancesOf(Integer.class, areImmutable());
	}
	
	@Test public void Array() {
		assertInstancesOf(Array.class, areImmutable());
	}
	
	@Test public void Date() {
		assertInstancesOf(Date.class, areNotImmutable());
	}
	
	@Ignore("Not final" +
			"Mutable type to field (java.lang.Object)")
	@Test public void AbstractMap$SimpleImmutableEntry() {
		assertInstancesOf(AbstractMap.SimpleImmutableEntry.class, areImmutable());
	}
	
	@Ignore("Not final" +
			"Field hashCode reassigned" +
			"Field of mutable type (primitive array)")
	@Test public void ImmutableDescriptor() {
		assertInstancesOf(ImmutableDescriptor.class, areImmutable());
	}
	
	@Test public void Class() {
		assertInstancesOf(Class.class, areNotImmutable());
	}
	
	@Test public void ArrayList() {
		 assertInstancesOf(ArrayList.class, areNotImmutable());
	}
	
}
@@ -868,16 +868,141 @@
 est %7B%0A%09%0A
+%09@Ignore(%22Not final%22)%0A%09@Test public void Object() throws Exception %7B%0A%09%09assertInstancesOf(Object.class, areImmutable());%0A%09%7D%0A%09%0A
 %09@Ignore

Add (immediately ignored) test for java.lang.Object.