package by.bsuir.mpp.computershop;

import by.bsuir.mpp.computershop.config.PrimaryConfiguration;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@ContextConfiguration(classes = {PrimaryConfiguration.class})
@SpringBootTest
public class ComputerShopMppApplicationTests {

    @Test
    public void contextLoads() {
    }

}

@@ -83,32 +83,57 @@
 yConfiguration;%0A
+import org.junit.Assert;%0A
 import org.junit
@@ -204,39 +204,171 @@
 rk.b
-oot.test.context.SpringBootTest
+eans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.context.SpringBootTest;%0Aimport org.springframework.security.crypto.password.PasswordEncoder
 ;%0Aim
@@ -653,45 +653,442 @@
    @
-Test%0A    public void contextLoads() %7B
+Autowired%0A    private PasswordEncoder passwordEncoder;%0A%0A    @Test%0A    public void contextLoads() %7B%0A    %7D%0A%0A    @Test%0A    public void passwordEncoderTest() %7B%0A        String source = %22some password%22;%0A%0A        String one = passwordEncoder.encode(source);%0A        String two = passwordEncoder.encode(source);%0A%0A        Assert.assertTrue(passwordEncoder.matches(source, one));%0A        Assert.assertTrue(passwordEncoder.matches(source, two));
 %0A   

Add PasswordEncoderTest