This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ObjectMapper objectMapper = new ObjectMapper() | |
// Find and register modules e.g. for serialization or JAXB annotation processing | |
.findAndRegisterModules() | |
// Order map entries by key | |
.enable(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS) | |
// Don't fail on empty beans | |
.disable(SerializationFeature.FAIL_ON_EMPTY_BEANS) | |
// Write date values as timestamp instead of ms since epoch | |
.enable(SerializationFeature.WRITE_DATE_KEYS_AS_TIMESTAMPS) | |
// Don't include default view / non @JsonView annotaded values |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Author: Alexander Sparkowsky | |
# Email: [email protected] | |
# License: MIT | |
# Usage: ./init_postgres.sh _project_name_ _db_password_ _[host_path_db_data]_ _[pg_docker_image_name]_ | |
PROJECT_NAME=$1 | |
DB_NAME="$PROJECT_NAME" | |
HOST_PATH_DB_DATA=${3:-"/tmp/postgres/data/$DB_NAME"} |
I hereby claim:
- I am roamingthings on github.
- I am roamingthings (https://keybase.io/roamingthings) on keybase.
- I have a public key ASAawKM2O7ow_3ehmmspBsxnGw84HsRPZr73UaUSVwRCYwo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | |
plugins { | |
id("org.springframework.boot") version "2.1.8.RELEASE" | |
id("io.spring.dependency-management") version "1.0.8.RELEASE" | |
kotlin("jvm") version "1.3.50" | |
kotlin("plugin.spring") version "1.3.50" | |
} | |
group = "de.roamingthings" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.gradle.api.JavaVersion.VERSION_1_8 | |
import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL | |
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | |
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType | |
import java.time.Year | |
import kotlin.properties.ReadOnlyProperty | |
import kotlin.reflect.KProperty | |
plugins { | |
`java-library` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Chain calls to an api', () => { | |
it('should perform all requests subsequentially', done => { | |
request(app) | |
.get('/api/first') | |
.expect(200) | |
.end((err: any, res: Response) => { | |
if (err) return done(err); | |
const action = res.text | |
request(app).get('/api/second') | |
.query({ action }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SpringBootTest | |
@TestPropertySource(properties = ["logging.config=classpath:logback-other.xml"]) | |
@ContextConfiguration(initializers = [LoggingSystemReinitializer::class]) | |
class LoggingMaskingDecoratorTest { | |
private val standardOut = System.out | |
private val outputStreamCaptor: ByteArrayOutputStream = ByteArrayOutputStream() | |
companion object { | |
@AfterAll |
OlderNewer