DATAREDIS-253 - Avoid usage of deprecated API.

Changed usage of TypeFactory to the recommended API.
This commit is contained in:
Thomas Darimont
2014-01-16 10:39:52 +01:00
parent b5137e6dd4
commit 168713aae1
5 changed files with 40 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2011-2013 the original author or authors.
* Copyright 2011-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,21 +15,25 @@
*/
package org.springframework.data.redis.connection.srp;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.springframework.data.redis.connection.DefaultSortParameters;
import org.springframework.data.redis.connection.SortParameters;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
/**
* Unit test of {@link SrpUtils}
*
* @author Jennifer Hickey
* @author Thomas Darimont
*
* Suppressed deprecation warnings since SrpUtils is deprecated.
*/
@SuppressWarnings("deprecation")
public class SrpUtilsTests {
@Test