Package name.pehl.karaka.client.activity.event

Examples of name.pehl.karaka.client.activity.event.ActivityActionEvent



    @Override
    public void onSave(Activity activity)
    {
        ActivityActionEvent.fire(this, new ActivityActionEvent(SAVE, activity));
    }
View Full Code Here


    @Test
    public void onStartStopWithCurrentActivity()
    {
        cut.currentActivity = td.newActivity();
        cut.onStartStop();
        ActivityActionEvent event = (ActivityActionEvent) popEvent();
        assertEquals(START_STOP, event.getAction());
        assertSame(cut.currentActivity, event.getActivity());
    }
View Full Code Here

    @Test
    public void onSave()
    {
        Activity activity = td.newActivity();
        cut.onSave(activity);
        ActivityActionEvent event = (ActivityActionEvent) popEvent();
        assertEquals(SAVE, event.getAction());
        assertEquals(activity, event.getActivity());
    }
View Full Code Here

    @Test
    public void onAnyButDetailsActivityAction()
    {
        Activity activity = td.newActivity();
        cut.onActivityAction(COPY, activity);
        ActivityActionEvent event = (ActivityActionEvent) popEvent();
        assertEquals(COPY, event.getAction());
        assertEquals(activity, event.getActivity());
    }
View Full Code Here

TOP

Related Classes of name.pehl.karaka.client.activity.event.ActivityActionEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.