Mingtao's Java World

Tuesday, 10 September 2019

Penalty shootout rules

›
The team kicking first in penalty shootout enjoys a huge advantage, winning roughly 60% of the time. A recent paper ( A comparison of penalt...
Monday, 9 September 2019

Python Sonarqube with unit test coverage

›
Prerequisite Sonarqube is installed (Create a new project named 'shootout') Sonar scanner is installed Anaconda is installed I...
3 comments:
Sunday, 1 September 2019

JMockit incompatible with JDK 10/11

›
Running Unit tests under JDK 10/11 produces error below. It was OK under JDK 8. [ ERROR ] Errors: [ ERROR ] BusinessRepositoryTes...
Sunday, 25 August 2019

Static method MockUp effect is global

›
Use mockit.MockUp.MockUp() to mock public static methods. One caveat is that the mocked behaviour applies to other test methods as well. (te...

Junit 5 temp directory quick start

›
The tempDirectory extension makes it quite handy to test file reading/writing functions. Maven dependency <dependency> <gr...
Thursday, 22 August 2019

Double-checked locking should not be used

›
Extracted from sonarqube Double-checked locking is the practice of checking a lazy-initialized object's state both before and after a ...
Wednesday, 21 August 2019

Swift non-optional, optional (?), and optional(!)

›
class Country { let name : String var capitalCity : City ! init(name : String , capitalName : String ) { self...
›
Home
View web version

About Me

Mingtao's Java Blog
View my complete profile
Powered by Blogger.