Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mytime
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Narendar Vakiti
mytime
Commits
5592d335
Commit
5592d335
authored
May 13, 2019
by
Vijay Akula
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolved merge conflicts
parent
a2f51444
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
43 deletions
+51
-43
application.properties
src/main/resources/application.properties
+2
-2
app.js
src/main/webapp/WEB-INF/js/app.js
+4
-0
MyTime.pdf
src/main/webapp/WEB-INF/reports/MyTime.pdf
+0
-0
login.html
src/main/webapp/WEB-INF/templates/login.html
+5
-3
AccountControllerTest.java
...om/nisum/myteam/controllertest/AccountControllerTest.java
+40
-38
No files found.
src/main/resources/application.properties
View file @
5592d335
...
@@ -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
=
my
time
spring.data.mongodb.database
=
my
TeamDB
quartz.enabled
=
true
quartz.enabled
=
true
cron.expression
=
0 45 10/3 1/1 * ? *
cron.expression
=
0 45 10/3 1/1 * ? *
...
...
src/main/webapp/WEB-INF/js/app.js
View file @
5592d335
...
@@ -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
,
...
...
src/main/webapp/WEB-INF/reports/MyTime.pdf
deleted
100644 → 0
View file @
a2f51444
File deleted
src/main/webapp/WEB-INF/templates/login.html
View file @
5592d335
...
@@ -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"
>
...
...
src/test/java/com/nisum/myteam/controllertest/AccountControllerTest.java
View file @
5592d335
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment