// Path: library/src/androidTest/java/com/thefinestartist/royal/entities/Dog.java
// public class Dog extends RealmObject {
// 
//     @Index
//     private String name;
//     private long age;
//     private float height;
//     private double weight;
//     private boolean hasTail;
//     private Date birthday;
//     private Owner owner;
// 
//     public Dog() {
//     }
// 
//     public Dog(String name) {
//         this.name = name;
//     }
// 
//     public Owner getOwner() {
//         return owner;
//     }
// 
//     public void setOwner(Owner owner) {
//         this.owner = owner;
//     }
// 
//     public Date getBirthday() {
//         return birthday;
//     }
// 
//     public void setBirthday(Date birthday) {
//         this.birthday = birthday;
//     }
// 
//     public boolean isHasTail() {
//         return hasTail;
//     }
// 
//     public void setHasTail(boolean hasTail) {
//         this.hasTail = hasTail;
//     }
// 
//     public double getWeight() {
//         return weight;
//     }
// 
//     public void setWeight(double weight) {
//         this.weight = weight;
//     }
// 
//     public float getHeight() {
//         return height;
//     }
// 
//     public void setHeight(float height) {
//         this.height = height;
//     }
// 
//     public long getAge() {
//         return age;
//     }
// 
//     public void setAge(long age) {
//         this.age = age;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public static String getStaticName(Dog dog) {
//         return dog.name;
//     }
// }


import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.test.AndroidTestCase;
import com.orhanobut.logger.Logger;
import com.thefinestartist.royal.entities.Dog;
package io.realm;



/**
 * Created by TheFinestArtist on 7/7/15.
 */
public class RealmTest extends AndroidTestCase {

    @Override
    protected void setUp() throws Exception {
    }

    @Override
    protected void tearDown() throws Exception {
    }

    public void testClose1() {
        RealmConfiguration realmConfig1 = new RealmConfiguration.Builder(getContext()).name("1testClose1.realm").build();
        Realm.deleteRealm(realmConfig1);

        Realm realm1 = Realm.getInstance(realmConfig1);
        realm1 = Realm.getInstance(realmConfig1);
        realm1.close();

        realm1.beginTransaction();
// Path: library/src/androidTest/java/com/thefinestartist/royal/entities/Dog.java
// public class Dog extends RealmObject {
// 
//     @Index
//     private String name;
//     private long age;
//     private float height;
//     private double weight;
//     private boolean hasTail;
//     private Date birthday;
//     private Owner owner;
// 
//     public Dog() {
//     }
// 
//     public Dog(String name) {
//         this.name = name;
//     }
// 
//     public Owner getOwner() {
//         return owner;
//     }
// 
//     public void setOwner(Owner owner) {
//         this.owner = owner;
//     }
// 
//     public Date getBirthday() {
//         return birthday;
//     }
// 
//     public void setBirthday(Date birthday) {
//         this.birthday = birthday;
//     }
// 
//     public boolean isHasTail() {
//         return hasTail;
//     }
// 
//     public void setHasTail(boolean hasTail) {
//         this.hasTail = hasTail;
//     }
// 
//     public double getWeight() {
//         return weight;
//     }
// 
//     public void setWeight(double weight) {
//         this.weight = weight;
//     }
// 
//     public float getHeight() {
//         return height;
//     }
// 
//     public void setHeight(float height) {
//         this.height = height;
//     }
// 
//     public long getAge() {
//         return age;
//     }
// 
//     public void setAge(long age) {
//         this.age = age;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public static String getStaticName(Dog dog) {
//         return dog.name;
//     }
// }


// Path: library/src/androidTest/java/io/realm/RealmTest.java
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.test.AndroidTestCase;
import com.orhanobut.logger.Logger;
import com.thefinestartist.royal.entities.Dog;

package io.realm;



/**
 * Created by TheFinestArtist on 7/7/15.
 */
public class RealmTest extends AndroidTestCase {

    @Override
    protected void setUp() throws Exception {
    }

    @Override
    protected void tearDown() throws Exception {
    }

    public void testClose1() {
        RealmConfiguration realmConfig1 = new RealmConfiguration.Builder(getContext()).name("1testClose1.realm").build();
        Realm.deleteRealm(realmConfig1);

        Realm realm1 = Realm.getInstance(realmConfig1);
        realm1 = Realm.getInstance(realmConfig1);
        realm1.close();

        realm1.beginTransaction();
        Dog dog1 = new Dog();