package edu.kit.iks.Cryptographics.DiffieHellman;

import java.awt.Color;

import org.junit.Before;
import org.junit.Test;

import edu.kit.iks.Cryptographics.DiffieHellman.Model;
import junit.framework.TestCase;

public class ModelTest extends TestCase  {
	private Model model;
	
	@Before
	public void setUp() throws Exception {
		this.model = new Model();
	}
	
	@Test
	public void testMixAlicePrivateAndPublic() {
		Color publicColor = Color.RED;
		Color privateColor = Color.BLUE;
		this.model.setPublicColor(publicColor);
		this.model.setAlicePrivateColor(privateColor);
		this.model.mixAlicePrivateAndPublic();
		
		Color expected = new Color(255, 0, 255);
		Color actual = this.model.getAliceMixedColor();
		assertEquals(expected, actual);
	}
}

@@ -644,19 +644,19 @@
 lor(
-255
+127
 , 0, 
-255
+127
 );%0A%09
@@ -741,10 +741,394 @@
 al);%0A%09%7D%0A
+%09%0A%09@Test%0A%09public void testMixBobPrivateAndPublic() %7B%0A%09%09Color publicColor = Color.YELLOW;%0A%09%09Color privateColor = Color.PINK;%0A%09%09this.model.setPublicColor(publicColor);%0A%09%09this.model.setBobPrivateColor(privateColor);%0A%09%09this.model.mixBobPrivateAndPublic();%0A%09%09%0A%09%09Color expected = new Color(255, 215, 87);%0A%09%09Color actual = this.model.getBobMixedColor();%0A%09%09assertEquals(expected, actual);%0A%09%7D%0A
 %7D%0A

Add more tests.