Commit 18bc5a15 authored by Sergey Shepelevich's avatar Sergey Shepelevich

REPO-1977 Upgrade JUnit to 4.12

parent 6541ed6a
/*
* Copyright 2011-2014 Hippo B.V. (http://www.onehippo.com)
* Copyright 2011-2018 Hippo B.V. (http://www.onehippo.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -28,6 +28,7 @@ import java.util.GregorianCalendar;
import static java.math.BigDecimal.ONE;
import static org.easymock.EasyMock.*;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.junit.Assert.assertThat;
......@@ -102,10 +103,10 @@ public class SingleValueGetterImplTest {
final Boolean v7 = Boolean.valueOf(singleValueGetter.getValue(value).toString());
assertThat(v7, is(Boolean.FALSE));
assertThat(singleValueGetter.getValue(value), is(Calendar.class));
assertThat(singleValueGetter.getValue(value), is(BigDecimal.class));
assertThat(singleValueGetter.getValue(value), is(Double.class));
assertThat(singleValueGetter.getValue(value), is(Binary.class));
assertThat(singleValueGetter.getValue(value), instanceOf(Calendar.class));
assertThat(singleValueGetter.getValue(value), instanceOf(BigDecimal.class));
assertThat(singleValueGetter.getValue(value), instanceOf(Double.class));
assertThat(singleValueGetter.getValue(value), instanceOf(Binary.class));
}
@Test(expected = RepositoryException.class)
......
......@@ -81,7 +81,7 @@
<hippo.jcrdiff.version>1.01.06</hippo.jcrdiff.version>
<!-- Test dependencies -->
<junit.version>4.10</junit.version>
<junit.version>4.12</junit.version>
<hamcrest-core.version>1.3</hamcrest-core.version>
<!-- Project Dependencies -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment