Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove embeeded db from main app scope #10

Merged
merged 8 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1

# Dockerfile for running test
FROM eclipse-temurin:17-jdk-jammy as base
WORKDIR /build
COPY --chmod=0755 mvnw mvnw
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,17 @@ Use Cloud logging to inspect the logs and health of the machine.
### Tests 🧪
#### Unit test
#### Integration test
The goal is to achieve clos to production behaviour as possible. Database and Repositories are powered by
an [Embedded DB](https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo) that only runs in `test` profile.

1. `Mockito` is used for Mocking external services
2. `MockMvc` is used for the Integration test

While ``mvn clean test`` is good for running the tests during development, we advise you use the following command to run the `Dockerfile` to verify that the test can run in an
isolated environment without any preconfiguration on your local machine.
```shell
docker build -t java-docker-image-test --progress=plain --no-cache --target=test
```

---

Expand Down
154 changes: 154 additions & 0 deletions htmlReport/css/coverage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
/*
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

* {
margin: 0;
padding: 0;
}

body {
background-color: #fff;
font-family: helvetica neue, tahoma, arial, sans-serif;
font-size: 82%;
color: #151515;
}

h1 {
margin: 0.5em 0;
color: #010101;
font-weight: normal;
font-size: 18px;
}

h2 {
margin: 0.5em 0;
color: #010101;
font-weight: normal;
font-size: 16px;
}

a {
color: #1564C2;
text-decoration: none;
}

a:hover {
text-decoration: underline;
}

span.separator {
color: #9BA9BA;
padding-left: 5px;
padding-right: 5px;
}

div.content {
width: 99%;
}

table.coverageStats {
width: 100%;
border-collapse: collapse;
}

table.overallStats {
width: 20%;
}

table.coverageStats td, table.coverageStats th {
padding: 4px 2px;
border-bottom: 1px solid #ccc;
}

table.coverageStats th {
background-color: #959BA4;
border: none;
font-weight: bold;
text-align: left;
color: #FFF;
}

table.coverageStats th.coverageStat {
width: 15%;
}

table.coverageStats th a {
color: #FFF;
}

table.coverageStats th a:hover {
text-decoration: none;
}

table.coverageStats th.sortedDesc a {
background: url(../img/arrowDown.gif) no-repeat 100% 2px;
padding-right: 20px;
}

table.coverageStats th.sortedAsc a {
background: url(../img/arrowUp.gif) no-repeat 100% 2px;
padding-right: 20px;
}

div.footer {
margin: 2em .5em;
font-size: 85%;
text-align: left;
line-height: 140%;
}

code.sourceCode {
width: 100%;
border: 1px solid #ccc;
font: normal 12px 'Menlo', 'Bitstream Vera Sans Mono', 'Courier New', 'Courier', monospace;
white-space: pre;
}

code.sourceCode b {
font-weight: normal;
}

code.sourceCode span.number {
color: #151515;
}

code.sourceCode .fc {
background-color: #cfc;
}

code.sourceCode .pc {
background-color: #ffc;
}

code.sourceCode .nc {
background-color: #fcc;
}

.percent, .absValue {
font-size: 90%;
}

.percent .green, .absValue .green {
color: #32cc32;
}

.percent .red, .absValue .red {
color: #f00;
}

.percent .totalDiff {
color: #3f3f3f;
}
118 changes: 118 additions & 0 deletions htmlReport/css/idea.min.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
/*
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/*
Intellij Idea-like styling (c) Vasily Polovnyov <[email protected]>
*/

.hljs {
color: #000;
background: #fff;
}

.hljs-subst,
.hljs-title {
font-weight: normal;
color: #000;
}

.hljs-comment,
.hljs-quote {
color: #808080;
font-style: italic;
}

.hljs-meta {
color: #808000;
}

.hljs-tag {
background: #efefef;
}

.hljs-section,
.hljs-name,
.hljs-literal,
.hljs-keyword,
.hljs-selector-tag,
.hljs-type,
.hljs-selector-id,
.hljs-selector-class {
font-weight: bold;
color: #000080;
}

.hljs-attribute,
.hljs-number,
.hljs-regexp,
.hljs-link {
font-weight: bold;
color: #0000ff;
}

.hljs-number,
.hljs-regexp,
.hljs-link {
font-weight: normal;
}

.hljs-string {
color: #008000;
font-weight: bold;
}

.hljs-symbol,
.hljs-bullet,
.hljs-formula {
color: #000;
background: #d0eded;
font-style: italic;
}

.hljs-doctag {
text-decoration: underline;
}

.hljs-variable,
.hljs-template-variable {
color: #660e7a;
}

.hljs-addition {
background: #baeeba;
}

.hljs-deletion {
background: #ffc8bd;
}

.hljs-emphasis {
font-style: italic;
}

.hljs-strong {
font-weight: bold;
}

.hljs-ln-numbers {
display: block;
float: left;
width: 3em;
border-right: 1px solid #ccc;
font-style: normal;
text-align: right;
background-color: #eee;
}
Binary file added htmlReport/img/arrowDown.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added htmlReport/img/arrowUp.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading