This file contains 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.junit.Test; | |
import java.lang.annotation.Annotation; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.reflect.Method; | |
import static org.junit.Assert.assertFalse; | |
import static org.junit.Assert.assertTrue; |
This file contains 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.apache.http.client.fluent.Request; | |
import org.junit.Test; | |
import org.mockserver.client.server.MockServerClient; | |
import java.io.IOException; | |
public class MockServerTroubleshootingTest { | |
private static final String HOST = "192.168.0.196"; |
This file contains 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 lombok.NonNull; | |
import lombok.Value; | |
import lombok.val; | |
import org.junit.Test; | |
import static org.junit.Assert.fail; | |
public class LombokNonNullTest { |
This file contains 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
version: '3.3' | |
services: | |
concourse-db: | |
image: postgres:9.5 | |
volumes: ["/srv/docker/containers/concourse-db/data:/database"] | |
restart: unless-stopped | |
logging: | |
driver: json-file | |
options: |
This file contains 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.apache.http.client.fluent.Request; | |
import org.junit.Before; | |
import org.junit.Test; | |
import org.mockserver.client.netty.NettyHttpClient; | |
import org.mockserver.client.server.MockServerClient; | |
import org.mockserver.model.HttpRequest; | |
import org.mockserver.model.OutboundHttpRequest; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; |
This file contains 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.apache.http.client.fluent.Request; | |
import org.junit.Before; | |
import org.junit.Test; | |
import org.mockserver.client.netty.NettyHttpClient; | |
import org.mockserver.client.server.MockServerClient; | |
import org.mockserver.model.HttpRequest; | |
import org.mockserver.model.OutboundHttpRequest; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; |
This file contains 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
const a = { foo: undefined, bar: 1 }; | |
const b = { bar: 2 }; | |
test('toEqual wrongly reports undefined properties', () => { | |
expect(a).toEqual(b); | |
}); | |
test('toStrictEqual wrongly reports undefined properties', () => { |
This file contains 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
function launch() { | |
// calculate trajectory | |
x = 6; | |
y = 7; | |
traj = x * y; | |
// use traj... | |
} |
This file contains 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
function launch() { | |
trajectory = calculateTrajectory(); | |
// use trajectory... | |
} | |
function calculateTrajectory() { | |
x = 6; |
This file contains 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
/* | |
a recipe for carrot soup: | |
1. buy carrots & onions at the market (make sure they are fresh!) | |
2. slice carrots | |
3. slice onions | |
4. put carrots, onions & some salt in a pot | |
5. fill pot with water | |
6. heat it up |
OlderNewer