package org.musetest.core.events;

import org.musetest.core.*;

/**
 * @author Christopher L Merrill (see LICENSE.txt for license details)
 */
public class EndTestEventType extends EventType
	{
	@SuppressWarnings("WeakerAccess") // instantiated via reflection
	public EndTestEventType()
		{
		super(TYPE_ID, "End Test");
		}

	public static MuseEvent create(String description, boolean pass)
		{
		MuseEvent event = new MuseEvent(TYPE_ID);
		event.setAttribute(MuseEvent.DESCRIPTION, description);
		if (!pass)
			event.addTag(MuseEvent.FAILURE);
		return event;
		}

	public static boolean isPass(MuseEvent event)
		{
		return !event.hasTag(MuseEvent.FAILURE);
		}

	public final static String TYPE_ID = "end-test";
	}
@@ -324,47 +324,37 @@
 %7D%0A%0A%09
-public static MuseEvent create(
+@Override%0A%09public 
 String 
-d
+getD
 escr
@@ -363,193 +363,130 @@
 tion
-, boolean pass)%0A%09%09%7B%0A%09%09MuseEvent event = new MuseEvent(TYPE_ID);%0A%09%09event.setAttribute(MuseEvent.DESCRIPTION, description);%0A%09%09if (!pass)%0A%09%09%09event.addTag(MuseEvent.FAILURE);%0A%09%09return event
+(MuseEvent event)%0A%09%09%7B%0A%09%09return %22Test Complete%22;%0A%09%09%7D%0A%0A%09public static MuseEvent create()%0A%09%09%7B%0A%09%09return new MuseEvent(TYPE_ID)
 ;%0A%09%09

Add event description for EndTestEventType