package app.tests;

/**
 * Created by Samuel on 23-01-17.
 */

import app.login.User;
import org.junit.Assert;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;

// import static app.login.RegisterController.multiplyString;

@FixMethodOrder(MethodSorters.JVM)
public class LoginTest {

    @Test
    public void nameTester() {
//        RegisterController tester = new RegisterController();
        Boolean name=true;
        String name2="Toos";
        String name3="Pieter";
        // assert statements
       Boolean result2 =(name);
        Assert.assertEquals(name, result2);
//        String result3 = tester.multiplyString(name2);
//        assertEquals(name2, result3);
//        String result4 = tester.multiplyString(name3);
//        assertEquals(name3, result4);
//        String result = tester.multiplyString("name");
//        assertEquals("name", result);
       Boolean result0 =(true);
       Assert.assertEquals(true, result0);
    }

   @Test
   public void createAdressTester() {
       User tester = new User();
       String name="2";
       String name2="Toos";
       String name3="Pieter";
       String name4="city";
       // assert statements
//        String result = tester.createAdress(name, name2, name3, name, name3);
//        assertEquals("insert into adress(usernamecustomer, city, postalcode ,street, housenumber) values('"+name+"', '"+name2+"', '"+name3+"', '"+name+"', '"+name3+"');", result);
//        String result1 = tester.alterAdress(name4, name2, name3);
//        assertEquals("city", result1);
//        String result2 = tester.deleteAdress(name);
//        assertEquals(name, result2);
   }

   @Test
   public void createCustomerTester() {
       User tester = new User();
       String name="02-12-2016";
       String name2="Toos";
       String name3="Pieter";
       String name4="userlevel";
       // assert statements
//        Boolean result = tester.createCustomer(name3, name2, name3, name2, name3,name,name3,name);
//        assertEquals(true, result);
//        String result1 = tester.alterCustomer(name4, name2, name3);
//        assertEquals("userlevel", result1);
//        String result2 = tester.deleteCustomer(name3);
//        assertEquals(name3, result2);
 }

   @Test
   public void wishlistTester() {
       User tester = new User();
       String name="02-12-2016";
       String name2="Toos";
       String name3="2";
       // assert statements
//        String result = tester.addWishproduct(name3, name2, name3);
//        assertEquals("insert into wishlistproducts(productid, wishlistid, quantity) values('"+name3+"', '"+name2+"', '"+name3+"');", result);
   }
}

@@ -56,16 +56,53 @@
 7.%0A */%0A%0A
+import app.login.RegisterController;%0A
 import a
@@ -242,71 +242,8 @@
 s;%0A%0A
-// import static app.login.RegisterController.multiplyString;%0A%0A
 @Fix
@@ -340,18 +340,16 @@
 ter() %7B%0A
-//
         
@@ -542,16 +542,17 @@
 esult2 =
+ 
 (name);%0A
@@ -595,26 +595,24 @@
 sult2);%0A
-//
         
 String r
@@ -599,30 +599,31 @@
 2);%0A        
-String
+Boolean
  result3 = t
@@ -651,22 +651,19 @@
 name
-2
 );%0A
-//
         
 asse
@@ -650,32 +650,39 @@
 (name);%0A        
+Assert.
 assertEquals(nam
@@ -889,16 +889,18 @@
 esult);%0A
+//
        B
@@ -919,16 +919,31 @@
 t0 =
+ multiplyString
 (true);%0A
     
@@ -934,24 +934,26 @@
 ring(true);%0A
+//
        Asser
@@ -985,38 +985,40 @@
 lt0);%0A    %7D%0A%0A   
+ 
 @Test%0A
+ 
    public void c
@@ -1038,32 +1038,33 @@
 ster() %7B%0A       
+ 
 User tester = ne
@@ -1072,32 +1072,33 @@
  User();%0A       
+ 
 String name=%222%22;
@@ -1094,24 +1094,25 @@
 g name=%222%22;%0A
+ 
        Strin
@@ -1126,32 +1126,33 @@
 =%22Toos%22;%0A       
+ 
 String name3=%22Pi
@@ -1157,32 +1157,33 @@
 Pieter%22;%0A       
+ 
 String name4=%22ci
@@ -1187,16 +1187,17 @@
 %22city%22;%0A
+ 
        /
@@ -1683,19 +1683,21 @@
 t2);%0A   
+ 
 %7D%0A%0A
+ 
    @Test
@@ -1689,32 +1689,33 @@
    %7D%0A%0A    @Test%0A
+ 
    public void c
@@ -1737,32 +1737,33 @@
 ster() %7B%0A       
+ 
 User tester = ne
@@ -1764,32 +1764,33 @@
 r = new User();%0A
+ 
        String na
@@ -1805,32 +1805,33 @@
 2-2016%22;%0A       
+ 
 String name2=%22To
@@ -1827,32 +1827,33 @@
 g name2=%22Toos%22;%0A
+ 
        String na
@@ -1865,32 +1865,33 @@
 Pieter%22;%0A       
+ 
 String name4=%22us
@@ -1900,16 +1900,17 @@
 level%22;%0A
+ 
        /
@@ -2281,20 +2281,22 @@
 sult2);%0A
+ 
  %7D%0A%0A
+ 
    @Test
@@ -2296,16 +2296,17 @@
   @Test%0A
+ 
    publi
@@ -2327,24 +2327,25 @@
 tTester() %7B%0A
+ 
        User 
@@ -2364,32 +2364,33 @@
  User();%0A       
+ 
 String name=%2202-
@@ -2395,24 +2395,25 @@
 2-12-2016%22;%0A
+ 
        Strin
@@ -2431,24 +2431,25 @@
 os%22;%0A       
+ 
 String name3
@@ -2450,24 +2450,25 @@
  name3=%222%22;%0A
+ 
        // as
@@ -2697,15 +2697,16 @@
 esult);%0A
+ 
    %7D%0A%7D%0A

Update LoginTest.java