Skip to content

Instantly share code, notes, and snippets.

View chilmers's full-sized avatar

Christian Hilmersson chilmers

  • A C Hilmersson Consulting
  • Gothenburg, Sweden
View GitHub Profile
@chilmers
chilmers / IntTest.java
Created April 2, 2012 11:30
Boxing/unboxing problem with Integer equality
import org.junit.Test;
import junit.framework.Assert;
public class IntTest {
@Test
public void testSame() {
Assert.assertSame(100,100);
// Since assertSame takes two Objects, the two ints will be boxed to Integers.