// Path: src/main/java/redis/clients/collections/MapStructure.java
// public interface MapStructure <T> extends Expirable{
// 
// 
// 	Map<String, T> get(String key);
// 	
// 	void delete(String key);
// 	
// }
// 
// Path: src/main/java/redis/clients/collections/builder/RedisBuilderException.java
// public class RedisBuilderException extends RuntimeException {
// 
// 	private static final long serialVersionUID = 1143453384777720845L;
// 
// 	RedisBuilderException(String message){
// 		super(message);
// 	}
// }
// 
// Path: src/main/java/redis/clients/collections/builder/RedisStrutureBuilder.java
// public class RedisStrutureBuilder {
// 
// 	public static <T> KeyValueBuilder<T> ofKeyValue(Jedis jedis,Class<T> clazz) {
// 		Objects.requireNonNull(jedis);
// 		Objects.requireNonNull(clazz, "The class must be specificed to do the RedisStruturebuilder");
// 		return new KeyValueBuilder<>(jedis, clazz);
// 	}
// 
// 	public static CountStructureBuilder ofCount(Jedis jedis) {
// 		Objects.requireNonNull(jedis);
// 		return new CountStructureBuilder(jedis);
// 	}
// 
// 	public static <T> ListStructureBuilder<T> ofList(Jedis jedis, Class<T> clazz) {
// 		Objects.requireNonNull(jedis);
// 		Objects.requireNonNull(clazz, "The class must be specificed to do the ListStruturebuilder");
// 		return new ListStructureBuilder<>(jedis, clazz);
// 	}
// 
// 	public static <T> SetStructureBuilder<T> ofSet(Jedis jedis, Class<T> clazz) {
// 		Objects.requireNonNull(jedis);
// 		Objects.requireNonNull(clazz, "The class must be specificed to do the SetStruturebuilder");
// 		return new SetStructureBuilder<>(jedis, clazz);
// 	}
// 	
// 	public static <T> MapStructureBuilder<T> ofMap(Jedis jedis, Class<T> clazz) {
// 		Objects.requireNonNull(jedis);
// 		Objects.requireNonNull(clazz, "The class must be specificed to do the MapStruturebuilder");
// 		return new MapStructureBuilder<>(jedis, clazz);
// 		
// 	}
// 
// 	public static <T> QueueStructureBuilder<T> ofQueue(Jedis jedis, Class<T> clazz) {
// 		Objects.requireNonNull(jedis);
// 		Objects.requireNonNull(clazz);
// 		return new QueueStructureBuilder<>(jedis, clazz);
// 	}
// 
// 	public static RankingStructureBuilder ofRanking(Jedis jedis) {
// 		Objects.requireNonNull(jedis);
// 		return new RankingStructureBuilder(jedis);
// 	}
// 
// }
// 
// Path: src/test/java/redis/clients/collections/model/Person.java
// public class Person implements Serializable {
// 
// 	private static final long serialVersionUID = 5089852596376703955L;
// 
// 	private String name;
// 	
// 	private Integer age;
// 
// 	public String getName() {
// 		return name;
// 	}
// 
// 	public void setName(String name) {
// 		this.name = name;
// 	}
// 
// 	public Integer getAge() {
// 		return age;
// 	}
// 
// 	public void setAge(Integer age) {
// 		this.age = age;
// 	}
// 
// 	public Person(String name, Integer age) {
// 		this.name = name;
// 		this.age = age;
// 	}
// 	
// 	public Person() {
// 	
// 	}
// 	
// }
// 
// Path: src/test/java/redis/clients/collections/util/RedisConnection.java
// public class RedisConnection {
// 
// 	public static final Jedis JEDIS;
// 	
// 	static{
// 	 JEDIS = new Jedis("localhost");
// 	}
// }


import junit.framework.Assert;
import org.junit.Test;
import redis.clients.collections.MapStructure;
import redis.clients.collections.builder.RedisBuilderException;
import redis.clients.collections.builder.RedisStrutureBuilder;
import redis.clients.collections.model.Person;
import redis.clients.collections.util.RedisConnection;
package redis.clients.collections.builder;




public class MapBuilderStructureTest {

	
	@Test
	public void shouldCreateMapStructure() {
		MapStructure<Person> personStructure =  RedisStrutureBuilder.ofMap(RedisConnection.JEDIS, Person.class).withNameSpace("nameSpaceList").build();
		Assert.assertNotNull(personStructure);
	}
	@SuppressWarnings("unused")
	@Test(expected = RedisBuilderException.class)
	public void shouldNotCreateMapStructureWhenNameSpaceIsNotInformed() {
// Path: src/main/java/redis/clients/collections/MapStructure.java
// public interface MapStructure <T> extends Expirable{
// 
// 
// 	Map<String, T> get(String key);
// 	
// 	void delete(String key);
// 	
// }
// 
// Path: src/main/java/redis/clients/collections/builder/RedisBuilderException.java
// public class RedisBuilderException extends RuntimeException {
// 
// 	private static final long serialVersionUID = 1143453384777720845L;
// 
// 	RedisBuilderException(String message){
// 		super(message);
// 	}
// }
// 
// Path: src/main/java/redis/clients/collections/builder/RedisStrutureBuilder.java
// public class RedisStrutureBuilder {
// 
// 	public static <T> KeyValueBuilder<T> ofKeyValue(Jedis jedis,Class<T> clazz) {
// 		Objects.requireNonNull(jedis);
// 		Objects.requireNonNull(clazz, "The class must be specificed to do the RedisStruturebuilder");
// 		return new KeyValueBuilder<>(jedis, clazz);
// 	}
// 
// 	public static CountStructureBuilder ofCount(Jedis jedis) {
// 		Objects.requireNonNull(jedis);
// 		return new CountStructureBuilder(jedis);
// 	}
// 
// 	public static <T> ListStructureBuilder<T> ofList(Jedis jedis, Class<T> clazz) {
// 		Objects.requireNonNull(jedis);
// 		Objects.requireNonNull(clazz, "The class must be specificed to do the ListStruturebuilder");
// 		return new ListStructureBuilder<>(jedis, clazz);
// 	}
// 
// 	public static <T> SetStructureBuilder<T> ofSet(Jedis jedis, Class<T> clazz) {
// 		Objects.requireNonNull(jedis);
// 		Objects.requireNonNull(clazz, "The class must be specificed to do the SetStruturebuilder");
// 		return new SetStructureBuilder<>(jedis, clazz);
// 	}
// 	
// 	public static <T> MapStructureBuilder<T> ofMap(Jedis jedis, Class<T> clazz) {
// 		Objects.requireNonNull(jedis);
// 		Objects.requireNonNull(clazz, "The class must be specificed to do the MapStruturebuilder");
// 		return new MapStructureBuilder<>(jedis, clazz);
// 		
// 	}
// 
// 	public static <T> QueueStructureBuilder<T> ofQueue(Jedis jedis, Class<T> clazz) {
// 		Objects.requireNonNull(jedis);
// 		Objects.requireNonNull(clazz);
// 		return new QueueStructureBuilder<>(jedis, clazz);
// 	}
// 
// 	public static RankingStructureBuilder ofRanking(Jedis jedis) {
// 		Objects.requireNonNull(jedis);
// 		return new RankingStructureBuilder(jedis);
// 	}
// 
// }
// 
// Path: src/test/java/redis/clients/collections/model/Person.java
// public class Person implements Serializable {
// 
// 	private static final long serialVersionUID = 5089852596376703955L;
// 
// 	private String name;
// 	
// 	private Integer age;
// 
// 	public String getName() {
// 		return name;
// 	}
// 
// 	public void setName(String name) {
// 		this.name = name;
// 	}
// 
// 	public Integer getAge() {
// 		return age;
// 	}
// 
// 	public void setAge(Integer age) {
// 		this.age = age;
// 	}
// 
// 	public Person(String name, Integer age) {
// 		this.name = name;
// 		this.age = age;
// 	}
// 	
// 	public Person() {
// 	
// 	}
// 	
// }
// 
// Path: src/test/java/redis/clients/collections/util/RedisConnection.java
// public class RedisConnection {
// 
// 	public static final Jedis JEDIS;
// 	
// 	static{
// 	 JEDIS = new Jedis("localhost");
// 	}
// }


// Path: src/test/java/redis/clients/collections/builder/MapBuilderStructureTest.java
import junit.framework.Assert;
import org.junit.Test;
import redis.clients.collections.MapStructure;
import redis.clients.collections.builder.RedisBuilderException;
import redis.clients.collections.builder.RedisStrutureBuilder;
import redis.clients.collections.model.Person;
import redis.clients.collections.util.RedisConnection;

package redis.clients.collections.builder;




public class MapBuilderStructureTest {

	
	@Test
	public void shouldCreateMapStructure() {
		MapStructure<Person> personStructure =  RedisStrutureBuilder.ofMap(RedisConnection.JEDIS, Person.class).withNameSpace("nameSpaceList").build();
		Assert.assertNotNull(personStructure);
	}
	@SuppressWarnings("unused")
	@Test(expected = RedisBuilderException.class)
	public void shouldNotCreateMapStructureWhenNameSpaceIsNotInformed() {
		MapStructure<Person> personStructure =  RedisStrutureBuilder.ofMap(RedisConnection.JEDIS, Person.class).build();