Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
danggl
OpenCFD-SCU
Commits
eaa5a408
Commit
eaa5a408
authored
Jul 21, 2022
by
ccfd
Browse files
...
parents
c0b0318b
da57456b
Changes
46
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
97 additions
and
0 deletions
+97
-0
opencfd-scu.out
opencfd-scu.out
+0
-0
opencfd.o
opencfd.o
+0
-0
pom.xml
pom.xml
+50
-0
src/main/java/com/example/demo/DemoApplication.java
src/main/java/com/example/demo/DemoApplication.java
+19
-0
src/main/resources/application.properties
src/main/resources/application.properties
+0
-0
src/test/java/com/example/demo/DemoApplicationTests.java
src/test/java/com/example/demo/DemoApplicationTests.java
+28
-0
No files found.
opencfd-scu.out
0 → 100755
View file @
eaa5a408
File added
opencfd.o
0 → 100644
View file @
eaa5a408
File added
pom.xml
0 → 100644
View file @
eaa5a408
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.example
</groupId>
<artifactId>
demo
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
<packaging>
jar
</packaging>
<name>
demo
</name>
<description>
Demo project for Spring Boot
</description>
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
2.0.1.RELEASE
</version>
<relativePath/>
<!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<java.version>
1.8
</java.version>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
</project>
src/main/java/com/example/demo/DemoApplication.java
0 → 100644
View file @
eaa5a408
package
com.example.demo
;
import
org.springframework.boot.*
;
import
org.springframework.boot.autoconfigure.*
;
import
org.springframework.web.bind.annotation.*
;
@SpringBootApplication
@RestController
public
class
DemoApplication
{
@GetMapping
(
"/"
)
String
home
()
{
return
"Spring is here!"
;
}
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
DemoApplication
.
class
,
args
);
}
}
\ No newline at end of file
src/main/resources/application.properties
0 → 100644
View file @
eaa5a408
src/test/java/com/example/demo/DemoApplicationTests.java
0 → 100644
View file @
eaa5a408
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!"
);
}
}
Prev
1
2
3
Next
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