We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
// //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("[email protected]"); // user.setPassword("password"); // userRepository.save(user); // } // // @after // public void tearDown() throws Exception { // user=null; // // } // // @test // public void findByUserNameSuccess(){ // Optional fetchedUser=userRepository.findByEmail("[email protected]"); // Assert.assertEquals("[email protected]",fetchedUser.get().getEmail()); // } // @test // public void findByUserNameFailure(){ // Optional fetchedUser=userRepository.findByEmail("[email protected]"); // Assert.assertNotEquals("Eroteme",fetchedUser.get().getEmail()); // } //} boeing-wave4-eroteme/user-authentication-service/src/test/java/com/stackroute/userauthenticationservice/repository/UserRepositoryTestIT.java
The text was updated successfully, but these errors were encountered:
No branches or pull requests
//
//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("[email protected]");
// user.setPassword("password");
// userRepository.save(user);
// }
//
// @after
// public void tearDown() throws Exception {
// user=null;
//
// }
//
// @test
// public void findByUserNameSuccess(){
// Optional fetchedUser=userRepository.findByEmail("[email protected]");
// Assert.assertEquals("[email protected]",fetchedUser.get().getEmail());
// }
// @test
// public void findByUserNameFailure(){
// Optional fetchedUser=userRepository.findByEmail("[email protected]");
// Assert.assertNotEquals("Eroteme",fetchedUser.get().getEmail());
// }
//}
boeing-wave4-eroteme/user-authentication-service/src/test/java/com/stackroute/userauthenticationservice/repository/UserRepositoryTestIT.java
The text was updated successfully, but these errors were encountered: