// Path: cachebank/src/test/java/net/jspiner/cachebank/model/AnimalModel.java
// public class AnimalModel {
// 
//     public int index;
//     public String animalName;
// 
//     public AnimalModel(int index, String animalName){
//         this.index = index;
//         this.animalName = animalName;
//     }
// }
// 
// Path: cachebank/src/test/java/net/jspiner/cachebank/model/CarModel.java
// public class CarModel {
// 
//     public int index;
//     public String carName;
// 
//     public CarModel(){
// 
//     }
// 
//     public CarModel(int index, String carName){
//         this.index = index;
//         this.carName = carName;
//     }
// 
// }
// 
// Path: cachebank/src/test/java/net/jspiner/cachebank/model/FoodModel.java
// public class FoodModel{
// 
//     public int index;
//     public String foodName;
// 
//     public FoodModel(){
// 
//     }
// 
//     public FoodModel(int index, String foodName){
//         this.index = index;
//         this.foodName = foodName;
//     }
// }
// 
// Path: cachebank/src/test/java/net/jspiner/cachebank/model/GunModel.java
// public class GunModel{
// 
//     private GunModel(){
// 
//     }
// }


import net.jspiner.cachebank.model.AnimalModel;
import net.jspiner.cachebank.model.CarModel;
import net.jspiner.cachebank.model.FoodModel;
import net.jspiner.cachebank.model.GunModel;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
package net.jspiner.cachebank;



/**
 * Created by JSpiner on 2017. 7. 14..
 * JSpiner
 * Contact : jspiner@naver.com
 */

public class ExceptionTest {

    @Before
    public void before(){
        new Bank.Builder()
                .setMemCacheSize(1000 * 24)
                .init();

        Assert.assertTrue(Bank.isInitialized());
    }

    @After
    public void tearDown(){
        Bank.clear();
        Bank.terminate();

        Assert.assertFalse(Bank.isInitialized());
    }

    @Test
    public void classCastExceptionTest(){
// Path: cachebank/src/test/java/net/jspiner/cachebank/model/AnimalModel.java
// public class AnimalModel {
// 
//     public int index;
//     public String animalName;
// 
//     public AnimalModel(int index, String animalName){
//         this.index = index;
//         this.animalName = animalName;
//     }
// }
// 
// Path: cachebank/src/test/java/net/jspiner/cachebank/model/CarModel.java
// public class CarModel {
// 
//     public int index;
//     public String carName;
// 
//     public CarModel(){
// 
//     }
// 
//     public CarModel(int index, String carName){
//         this.index = index;
//         this.carName = carName;
//     }
// 
// }
// 
// Path: cachebank/src/test/java/net/jspiner/cachebank/model/FoodModel.java
// public class FoodModel{
// 
//     public int index;
//     public String foodName;
// 
//     public FoodModel(){
// 
//     }
// 
//     public FoodModel(int index, String foodName){
//         this.index = index;
//         this.foodName = foodName;
//     }
// }
// 
// Path: cachebank/src/test/java/net/jspiner/cachebank/model/GunModel.java
// public class GunModel{
// 
//     private GunModel(){
// 
//     }
// }


// Path: cachebank/src/test/java/net/jspiner/cachebank/ExceptionTest.java
import net.jspiner.cachebank.model.AnimalModel;
import net.jspiner.cachebank.model.CarModel;
import net.jspiner.cachebank.model.FoodModel;
import net.jspiner.cachebank.model.GunModel;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

package net.jspiner.cachebank;



/**
 * Created by JSpiner on 2017. 7. 14..
 * JSpiner
 * Contact : jspiner@naver.com
 */

public class ExceptionTest {

    @Before
    public void before(){
        new Bank.Builder()
                .setMemCacheSize(1000 * 24)
                .init();

        Assert.assertTrue(Bank.isInitialized());
    }

    @After
    public void tearDown(){
        Bank.clear();
        Bank.terminate();

        Assert.assertFalse(Bank.isInitialized());
    }

    @Test
    public void classCastExceptionTest(){
        Bank.deposit(new CarModel(1933, "sonata-new"), "sonata").now();