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:
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 }) |
@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 |
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` |
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" |
I hereby claim:
To claim this, I am signing this object:
#! /bin/bash | |
# Author: Alexander Sparkowsky | |
# Email: info@roamingthings.de | |
# 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"} |
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 |
@Entity | |
public class MyEntity { | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
@Column(name = "id", updatable = false, nullable = false) | |
private Long id; | |
@Column | |
private LocalDate date; |
# | |
# Basic .gitignore file for Java projects using eclise, IntelliJ and maven | |
# | |
# Eclipse | |
.classpath | |
.project | |
.settings/ | |
# Intellij |