Commit 5592d335 authored by Vijay Akula's avatar Vijay Akula

Resolved merge conflicts

parent a2f51444
...@@ -8,10 +8,10 @@ server.context-path=/myTeam/ ...@@ -8,10 +8,10 @@ server.context-path=/myTeam/
#spring.data.mongodb.username=myteam #spring.data.mongodb.username=myteam
#spring.data.mongodb.password=myteam #spring.data.mongodb.password=myteam
#Local configuration #Local Database configuration
spring.data.mongodb.host=localhost spring.data.mongodb.host=localhost
spring.data.mongodb.port=27017 spring.data.mongodb.port=27017
spring.data.mongodb.database=mytime spring.data.mongodb.database=myTeamDB
quartz.enabled=true quartz.enabled=true
cron.expression=0 45 10/3 1/1 * ? * cron.expression=0 45 10/3 1/1 * ? *
......
...@@ -16,6 +16,10 @@ function($mdDateLocaleProvider) { ...@@ -16,6 +16,10 @@ function($mdDateLocaleProvider) {
//TODO: Replace this appUri with the domain name created //TODO: Replace this appUri with the domain name created
myApp.constant('appConfig', { myApp.constant('appConfig', {
appName: "MyTime", appName: "MyTime",
<<<<<<< Updated upstream
=======
//appUri: "http://10.3.45.11:8080/myTeam/",
>>>>>>> Stashed changes
appUri: "http://localhost:8080/myTeam/", appUri: "http://localhost:8080/myTeam/",
version:"1.0", version:"1.0",
empStartId:16001, empStartId:16001,
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
function renderButton() { function renderButton() {
gapi.load('auth2', function () { gapi.load('auth2', function () {
gapi.auth2.init({ gapi.auth2.init({
//client_id: "685521475239-ujm7l2hkgrltk7loi8efl0ed702asm2r.apps.googleusercontent.com", client_id: "685521475239-ujm7l2hkgrltk7loi8efl0ed702asm2r.apps.googleusercontent.com",
client_id: "10230597574-gv1bg8nehm0a63n9hh5mu9um563uqaq1.apps.googleusercontent.com", //client_id: "10230597574-gv1bg8nehm0a63n9hh5mu9um563uqaq1.apps.googleusercontent.com",
hosted_domain: 'nisum.com' hosted_domain: 'nisum.com'
}); });
}); });
...@@ -33,7 +33,9 @@ ...@@ -33,7 +33,9 @@
} }
</script> </script>
<script src="https://apis.google.com/js/platform.js?onload=renderButton"></script> <script src="https://apis.google.com/js/platform.js?onload=renderButton"></script>
<meta name="google-signin-client_id" content="10230597574-gv1bg8nehm0a63n9hh5mu9um563uqaq1.apps.googleusercontent.com"> <!--<meta name="google-signin-client_id" content="10230597574-gv1bg8nehm0a63n9hh5mu9um563uqaq1.apps.googleusercontent.com">-->
<meta name="google-signin-client_id" content="685521475239-ujm7l2hkgrltk7loi8efl0ed702asm2r.apps.googleusercontent.com">
<link rel="stylesheet" href="css/login.css" /> <link rel="stylesheet" href="css/login.css" />
</head> </head>
<div class="myteam-login" ng-controller="loginController" id="popupContainer"> <div class="myteam-login" ng-controller="loginController" id="popupContainer">
......
...@@ -55,25 +55,25 @@ public class AccountControllerTest { ...@@ -55,25 +55,25 @@ public class AccountControllerTest {
@Test // @Test
public void testaddAccount() throws Exception { // public void testaddAccount() throws Exception {
List<String> list = new ArrayList<>(); // List<String> list = new ArrayList<>();
list.add("16620"); // list.add("16620");
list.add("16632"); // list.add("16632");
String responce=null; // String responce=null;
Account persistedAccount=null; // Account persistedAccount=null;
Account account = new Account( // Account account = new Account(
"Acc003", "Nisum", 3, // "Acc003", "Nisum", 3,
"Y","HYD","RetailS",list); // "Y","HYD","RetailS",list);
when(Accountserviceimpl.createAccount(account)) // when(Accountserviceimpl.createAccount(account))
.thenReturn(persistedAccount); // .thenReturn(persistedAccount);
String jsonvalue = (new ObjectMapper()) // String jsonvalue = (new ObjectMapper())
.writeValueAsString(account).toString(); // .writeValueAsString(account).toString();
mockMvc.perform(post("/account/accounts").param("action","N") // mockMvc.perform(post("/account/accounts").param("action","N")
.contentType(MediaType.APPLICATION_JSON_VALUE) // .contentType(MediaType.APPLICATION_JSON_VALUE)
.content(jsonvalue)) // .content(jsonvalue))
.andExpect(MockMvcResultMatchers.status().isOk()); // .andExpect(MockMvcResultMatchers.status().isOk());
} // }
@Test @Test
public void testgetAccountNames() throws Exception { public void testgetAccountNames() throws Exception {
...@@ -94,25 +94,27 @@ public class AccountControllerTest { ...@@ -94,25 +94,27 @@ public class AccountControllerTest {
.andExpect(MockMvcResultMatchers.status().isOk()); .andExpect(MockMvcResultMatchers.status().isOk());
} }
@Test // @Test
public void testupdateAccount() throws Exception { // public void testupdateAccount() throws Exception {
List<String> list = new ArrayList<>(); // List<String> list = new ArrayList<>();
list.add("16620"); // list.add("16620");
list.add("16632"); // list.add("16632");
String responce=null; // String responce=null;
Account accountUpdated=null; // Account accountUpdated=null;
Account account = new Account( // Account account = new Account(
"Acc003", "Nisum", 3, // "Acc003", "Nisum", 3,
"Y","HYD","RetailS",list); // "Y","HYD","RetailS",list);
when(Accountserviceimpl.createAccount(account)) // when(Accountserviceimpl.createAccount(account))
.thenReturn(accountUpdated); // .thenReturn(accountUpdated);
String jsonvalue = (new ObjectMapper()) // String jsonvalue = (new ObjectMapper())
.writeValueAsString(account).toString(); // .writeValueAsString(account).toString();
mockMvc.perform(post("/account/accounts").param("action","U") // mockMvc.perform(post("/account/accounts").param("action","U")
.contentType(MediaType.APPLICATION_JSON_VALUE) // .contentType(MediaType.APPLICATION_JSON_VALUE)
.content(jsonvalue)) // .content(jsonvalue))
.andExpect(MockMvcResultMatchers.status().isOk()); // .andExpect(MockMvcResultMatchers.status().isOk());
} // }
//
@Test @Test
public void testdeleteAccount() throws Exception { public void testdeleteAccount() throws Exception {
mockMvc.perform( mockMvc.perform(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment