package at.fhj.swd14.pse.user;

import org.junit.Test;

import at.fhj.swd14.pse.community.UserCommunity;

import java.util.ArrayList;
import java.util.List;

import org.junit.Assert;

public class UserCoverageTest {
	
	@Test
	public void increaseCoverage(){
		User u = new User();
		u.setPassword("1234");
		u.setSalt("salt");
		List<UserCommunity> comList = new ArrayList<>();
		Assert.assertEquals("1234", u.getPassword());
		Assert.assertEquals("salt", u.getSalt());
		Assert.assertEquals(comList, u.getCommunities());
	}
}

@@ -60,109 +60,59 @@
 ort 
-at.fhj.swd14.pse.community.UserCommunity;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport
+static org.junit.Assert.assertEquals;%0Aimport static
  org
@@ -124,16 +124,27 @@
 t.Assert
+.assertNull
 ;%0A%0Apubli
@@ -174,18 +174,23 @@
 t %7B%0A
-%09%0A%09
+%0A    
 @Test%0A
-%09
+    
 publ
@@ -219,12 +219,19 @@
 ge()
+ 
 %7B%0A
-%09%09
+        
 User
@@ -247,18 +247,24 @@
 User();%0A
-%09%09
+        
 u.setPas
@@ -278,18 +278,24 @@
 1234%22);%0A
-%09%09
+        
 u.setSal
@@ -309,68 +309,16 @@
 %22);%0A
-%09%09List%3CUserCommunity%3E comList = new ArrayList%3C%3E();%0A%09%09Assert.
+        
 asse
@@ -348,33 +348,32 @@
 assword());%0A
-%09%09Assert.
+        
 assertEquals
@@ -399,39 +399,27 @@
 ));%0A
-%09%09Assert.assertEquals(comList, 
+        assertNull(
 u.ge
@@ -439,9 +439,12 @@
 ));%0A
-%09
+    
 %7D%0A%7D%0A

fix coverage test....