Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laboratorio1 SSDD
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jonathan Cavia
laboratorio1 SSDD
Commits
eab0cb56
Commit
eab0cb56
authored
Aug 25, 2022
by
Jonathan Cavia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests
parent
4de34ff6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
src/test/java/com/example/test1/ApplicationTest1Test2.java
src/test/java/com/example/test1/ApplicationTest1Test2.java
+0
-3
src/test/java/com/example/test1/ApplicationTest1Tests.java
src/test/java/com/example/test1/ApplicationTest1Tests.java
+0
-2
No files found.
src/test/java/com/example/test1/ApplicationTest1Test2.java
View file @
eab0cb56
...
@@ -35,7 +35,6 @@ class ApplicationTest1Test2 {
...
@@ -35,7 +35,6 @@ class ApplicationTest1Test2 {
@BeforeEach
@BeforeEach
void
setUp
()
{
void
setUp
()
{
System
.
out
.
println
(
"antes de la prueba"
);
this
.
mvc
=
MockMvcBuilders
.
webAppContextSetup
(
this
.
webApplicationContext
).
build
();
this
.
mvc
=
MockMvcBuilders
.
webAppContextSetup
(
this
.
webApplicationContext
).
build
();
}
}
...
@@ -92,12 +91,10 @@ class ApplicationTest1Test2 {
...
@@ -92,12 +91,10 @@ class ApplicationTest1Test2 {
.
andExpect
(
MockMvcResultMatchers
.
content
().
contentType
(
org
.
springframework
.
http
.
MediaType
.
APPLICATION_JSON
))
.
andExpect
(
MockMvcResultMatchers
.
content
().
contentType
(
org
.
springframework
.
http
.
MediaType
.
APPLICATION_JSON
))
.
andExpect
(
MockMvcResultMatchers
.
jsonPath
(
"$.saldo"
).
value
(
2100
));
.
andExpect
(
MockMvcResultMatchers
.
jsonPath
(
"$.saldo"
).
value
(
2100
));
System
.
out
.
println
(
"durante la prueba"
);
}
}
@AfterEach
@AfterEach
void
tearDown
()
{
void
tearDown
()
{
System
.
out
.
println
(
"prueba terminada"
);
}
}
...
...
src/test/java/com/example/test1/ApplicationTest1Tests.java
View file @
eab0cb56
...
@@ -35,7 +35,6 @@ class ApplicationTest1Tests {
...
@@ -35,7 +35,6 @@ class ApplicationTest1Tests {
@BeforeEach
@BeforeEach
void
setUp
()
{
void
setUp
()
{
System
.
out
.
println
(
"antes de la prueba"
);
this
.
mvc
=
MockMvcBuilders
.
webAppContextSetup
(
this
.
webApplicationContext
).
build
();
this
.
mvc
=
MockMvcBuilders
.
webAppContextSetup
(
this
.
webApplicationContext
).
build
();
}
}
...
@@ -96,7 +95,6 @@ class ApplicationTest1Tests {
...
@@ -96,7 +95,6 @@ class ApplicationTest1Tests {
@AfterEach
@AfterEach
void
tearDown
()
{
void
tearDown
()
{
System
.
out
.
println
(
"prueba terminada"
);
}
}
...
...
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