Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove commented code #183

Open
sushmitha007 opened this issue Mar 26, 2019 · 0 comments
Open

remove commented code #183

sushmitha007 opened this issue Mar 26, 2019 · 0 comments

Comments

@sushmitha007
Copy link
Collaborator

//
//package com.stackroute.userauthenticationservice.repository;
//
// import com.stackroute.userauthenticationservice.model.User;
// import org.junit.After;
// import org.junit.Assert;
// import org.junit.Before;
// import org.junit.Test;
// import org.junit.runner.RunWith;
// import org.springframework.beans.factory.annotation.Autowired;
// import org.springframework.boot.test.context.SpringBootTest;
// import org.springframework.test.context.junit4.SpringRunner;
// import java.util.Optional;
//
//
//@RunWith(SpringRunner.class)
//@SpringBootTest
//public class UserRepositoryTestIT {
// @Autowired
// private UserRepository userRepository;
// private User user;
//
// @before
// public void setUp() throws Exception{
// User user = new User();
// user.setEmail("xyz@gmail.com");
// user.setPassword("password");
// userRepository.save(user);
// }
//
// @after
// public void tearDown() throws Exception {
// user=null;
//
// }
//
// @test
// public void findByUserNameSuccess(){
// Optional fetchedUser=userRepository.findByEmail("xyz@gmail.com");
// Assert.assertEquals("xyz@gmail.com",fetchedUser.get().getEmail());
// }
// @test
// public void findByUserNameFailure(){
// Optional fetchedUser=userRepository.findByEmail("xyz@gmail.com");
// Assert.assertNotEquals("Eroteme",fetchedUser.get().getEmail());
// }
//}
boeing-wave4-eroteme/user-authentication-service/src/test/java/com/stackroute/userauthenticationservice/repository/UserRepositoryTestIT.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant