// Path: RecordingLib/src/com/vpedak/testsrecorder/core/Espresso.java
// public class Espresso extends Subject {
// 
//     public void accept(StringBuilder sb, TestGenerator generator){
//         generator.generateSubject(sb, this);
//     }
// }


import com.vpedak.testsrecorder.core.Espresso;
import com.vpedak.testsrecorder.core.events.*;
import org.junit.Assert;
import org.junit.Test;
package com.vpedak.testrecorder.core.events;


public class SubjectTest {

    @Test
    public void testSerialization() {
        View view = new View("viewId");
        Assert.assertEquals("view=viewId", view.toString());

        DisplayedView displayedView = new DisplayedView("viewId");
        Assert.assertEquals("displayedView=viewId", displayedView.toString());

        MenuItem menuItem = new MenuItem("title", "menuId");
        Assert.assertEquals("menuItem=menuId#title", menuItem.toString());

        ParentView parentView = new ParentView("parentId", 1);
        Assert.assertEquals("parentView=parentId#1", parentView.toString());

        ParentIdView parentIdView = new ParentIdView("parentId", "childId");
        Assert.assertEquals("parentIdView=parentId#childId", parentIdView.toString());

        OptionsMenu optionsMenu = new OptionsMenu();
        Assert.assertEquals("optionsMenu", optionsMenu.toString());

// Path: RecordingLib/src/com/vpedak/testsrecorder/core/Espresso.java
// public class Espresso extends Subject {
// 
//     public void accept(StringBuilder sb, TestGenerator generator){
//         generator.generateSubject(sb, this);
//     }
// }


// Path: RecordingLib/test/com/vpedak/testrecorder/core/events/SubjectTest.java
import com.vpedak.testsrecorder.core.Espresso;
import com.vpedak.testsrecorder.core.events.*;
import org.junit.Assert;
import org.junit.Test;

package com.vpedak.testrecorder.core.events;


public class SubjectTest {

    @Test
    public void testSerialization() {
        View view = new View("viewId");
        Assert.assertEquals("view=viewId", view.toString());

        DisplayedView displayedView = new DisplayedView("viewId");
        Assert.assertEquals("displayedView=viewId", displayedView.toString());

        MenuItem menuItem = new MenuItem("title", "menuId");
        Assert.assertEquals("menuItem=menuId#title", menuItem.toString());

        ParentView parentView = new ParentView("parentId", 1);
        Assert.assertEquals("parentView=parentId#1", parentView.toString());

        ParentIdView parentIdView = new ParentIdView("parentId", "childId");
        Assert.assertEquals("parentIdView=parentId#childId", parentIdView.toString());

        OptionsMenu optionsMenu = new OptionsMenu();
        Assert.assertEquals("optionsMenu", optionsMenu.toString());

        Espresso espresso = new Espresso();