package com.ircclouds.irc.api.negotiators;

import com.ircclouds.irc.api.IRCApi;
import com.ircclouds.irc.api.commands.CapCmd;
import com.ircclouds.irc.api.domain.messages.interfaces.IMessage;
import mockit.Mocked;
import mockit.Tested;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 * @author Danny van Heumen
 */
public class NoopNegotiatorTest
{

	@Tested
	private NoopNegotiator neg;

	public NoopNegotiatorTest()
	{
	}

	@Test
	public void testInitiate(@Mocked IRCApi irc)
	{
		CapCmd cmd = neg.initiate(irc);
		assertNotNull(cmd);
		assertEquals("CAP END", cmd.asString());
	}

	@Test
	public void testOnMessage(@Mocked IMessage msg)
	{
		neg.onMessage(msg);
	}
}

@@ -528,30 +528,8 @@
 c);%0A
-%09%09assertNotNull(cmd);%0A
 %09%09as

Remove non-sensicle assertion.