This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| // file: num-store.js | |
| // plain JS "store" - one of many possible! | |
| //----------- | |
| export const numberStore = { | |
| count: 0; | |
| } | |
| //----------- | |
| // file: incrementor.js |
This file contains hidden or 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 hidden or 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; |
OlderNewer