Deprecation fixes

Co-authored-by: Alinson S. Xavier <git@axavier.org>
This commit is contained in:
TacoTheDank
2020-08-22 12:14:35 -05:00
committed by Alinson S. Xavier
parent 3554895a5d
commit d9ff429c28
14 changed files with 42 additions and 45 deletions

View File

@@ -25,8 +25,8 @@ import org.junit.*;
import java.util.*;
import static junit.framework.Assert.*;
import static org.hamcrest.MatcherAssert.*;
import static org.junit.Assert.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
public class ArchiveHabitsCommandTest extends BaseUnitTest

View File

@@ -23,7 +23,7 @@ import org.isoron.uhabits.core.*;
import org.isoron.uhabits.core.models.*;
import org.junit.*;
import static junit.framework.Assert.*;
import static org.junit.Assert.assertTrue;
import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.MatcherAssert.*;

View File

@@ -24,10 +24,10 @@ import org.isoron.uhabits.core.models.*;
import org.isoron.uhabits.core.utils.*;
import org.junit.*;
import static junit.framework.Assert.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.isoron.uhabits.core.models.Checkmark.CHECKED_EXPLICITLY;
import static org.hamcrest.Matchers.*;
import static org.isoron.uhabits.core.models.Checkmark.*;
import static org.junit.Assert.*;
public class CreateRepetitionCommandTest extends BaseUnitTest
{

View File

@@ -24,9 +24,9 @@ import org.isoron.uhabits.core.models.*;
import org.isoron.uhabits.core.utils.*;
import org.junit.*;
import static junit.framework.Assert.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
public class ToggleRepetitionCommandTest extends BaseUnitTest
{

View File

@@ -25,7 +25,7 @@ import org.junit.*;
import java.util.*;
import static junit.framework.Assert.*;
import static org.junit.Assert.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;

View File

@@ -22,8 +22,8 @@ package org.isoron.uhabits.core.models;
import org.isoron.uhabits.core.*;
import org.junit.*;
import static junit.framework.Assert.*;
import static org.hamcrest.MatcherAssert.*;
import static org.junit.Assert.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.IsEqual.*;
public class WeekdayListTest extends BaseUnitTest

View File

@@ -19,13 +19,11 @@
package org.isoron.uhabits.core.ui.screens.habits.list;
import junit.framework.Assert;
import org.isoron.uhabits.core.*;
import org.isoron.uhabits.core.commands.*;
import org.isoron.uhabits.core.models.*;
import org.isoron.uhabits.core.utils.*;
import org.junit.Test;
import org.junit.*;
import java.util.*;
@@ -100,7 +98,7 @@ public class HabitCardListCacheTest extends BaseUnitTest
assertThat(cache.getHabitCount(), equalTo(10));
Habit h = habitList.getByPosition(3);
junit.framework.Assert.assertNotNull(h.getId());
Assert.assertNotNull(h.getId());
double score = h.getScores().getTodayValue();
assertThat(cache.getHabitByPosition(3), equalTo(h));