Friday, October 5, 2018

Spring Boot: How to disable @Scheduled in unit tests

Spring Boot: How to disable @Scheduled in unit tests


Spring framework exposes a nice feature to schedule some task: @Scheduled annotation. But this features makes very difficult unit test process – all scheduled tasks start work in any unit test where Spring scanning is used.

https://ysden123.wordpress.com/2018/10/05/spring-boot-how-to-disable-scheduled-in-unit-tests/#more-2459

Monday, September 24, 2018

Vertx: Difference between io.vertx.reactivex and io.vertx.rxjava

Each time, when I return to development with Vertx, I have to decide what package to use: io.vertx.rxjava or io.vertx.reactivex? This is a reason, why I created this post.
io.vertx.rxjava package uses RxJava 1. io.vertx.reactivex package uses current RX extension – RxJava 2.

Sunday, February 26, 2017

npm Package Analyzer

Sometimes You need to check if You really use all modules specified in package.json. I wrote simple application with UI to do this work: npm-package-analyzer.
The application was wrote on Scala with usage of ScalaFX.
You may download JAR file from here Source code on Git
To run analyzer execute command:
java -jar npm-package-analyzer-assembly-0.1.1.jar
Last version may be different!
Prerequisites: Java 8 (JRE is enough)

Tuesday, February 7, 2017

Java: Stream and Classic Loop - Benchmark

Java 8 has rich possibilities to process the collections. One of them is stream. The main goal of stream, as I see it, is changing of programming paradigm: from “how to do” to “what to do”. Focusing on functionality instead of writing the control operators.
See continue on https://ysden123.wordpress.com/2017/02/07/java-stream-and-classic-loop-benchmark/

Sunday, February 5, 2017

Scala - type bounds notation for beginners

For beginners in Scala (like me) type bounds notation causes difficulty. I tried to write  short cheat sheet with Scala type bounds notation: