Skip to content

Instantly share code, notes, and snippets.

View nikhilkumar80's full-sized avatar

Nikhil Kumar nikhilkumar80

View GitHub Profile
@nikhilkumar80
nikhilkumar80 / junit_4_to_5_migration.md
Last active October 1, 2019 18:22
JUnit4 to JUnit5 Migration

Diferences

JUnit 5 = JUnit Platform + JUnit Jupiter + JUnit Vintage

  • JUnit Platform serves as a foundation for launching testing frameworks on the JVM.
  • JUnit Jupiter is the combination of the new programming model and extension model for writing tests and extensions in JUnit 5.
  • JUnit Vintage provides a TestEngine for running JUnit 3 and JUnit 4 based tests on the platform.

Annotations

JUnit 5 comes with important changes within its annotations. The most important one is that we can no longer use @Test annotation for specifying expectations.

.container {
  display: flex;
  justify-content: flex-start; /* flex-start | flex-end | center | space-between | space-around */
  align-items: flex-start; /* flex-start | flex-end | center | baseline | stretch */
}

.item {
  align-self: flex-end;
}
@nikhilkumar80
nikhilkumar80 / .block
Last active April 15, 2016 23:35
d3-chap01
license: gpl-3.0
height: 960
var url = '';
var oReq = new XMLHttpRequest();
oReq.onload = function (e) {
results.innerHTML = e.target.response.message;
};
oReq.open('GET', url + '?' + new Date().getTime(), true);
oReq.responseType = 'json';
oReq.send();
@nikhilkumar80
nikhilkumar80 / README.md
Last active December 21, 2015 00:39
Custom Cartesian Projection

This example demonstrates how to create a custom Cartesian projection by implementing a geometry stream on top of two linear scales; the geometry stream is then used instead of a geographic projection, which are intended for spherical coordinates.