Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Karakas
SWP_SS24_Wetterdaten_sammeln
Commits
1a63fcaa
Commit
1a63fcaa
authored
May 09, 2024
by
EnesKarakas
Browse files
Updated Framework
parent
a3537977
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/SWP/SS24/Wetterdaten_sammeln/Application.java
View file @
1a63fcaa
package
com.SWP.SS24.Wetterdaten
.
sammeln
;
package
com.SWP.SS24.Wetterdaten
_
sammeln
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
...
...
src/test/java/com/SWP/SS24/Weterdaten_sammeln/DemoApplicationTests.java
deleted
100644 → 0
View file @
a3537977
package
com.example.demo
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.boot.test.context.SpringBootTest.WebEnvironment
;
import
org.springframework.boot.test.web.client.TestRestTemplate
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
(
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
)
public
class
DemoApplicationTests
{
@Test
public
void
contextLoads
()
{
}
@Autowired
private
TestRestTemplate
restTemplate
;
@Test
public
void
homeResponse
()
{
String
body
=
this
.
restTemplate
.
getForObject
(
"/"
,
String
.
class
);
assertThat
(
body
).
isEqualTo
(
"Spring is here!"
);
}
}
src/test/java/com/SWP/SS24/Weterdaten_sammeln/ApplicationTests.java
→
src/test/java/com/SWP/SS24/Wet
t
erdaten_sammeln/ApplicationTests.java
View file @
1a63fcaa
package
com.SWP.SS24.Wetterdaten
.
sammeln
;
package
com.SWP.SS24.Wetterdaten
_
sammeln
;
import
org.junit.jupiter.api.Test
;
import
org.springframework.boot.test.context.SpringBootTest
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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