Java Code Examples for org.sonatype.goodies.httpfixture.server.fluent.Behaviours#file()
The following examples show how to use
org.sonatype.goodies.httpfixture.server.fluent.Behaviours#file() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: P2RoutingRuleIT.java From nexus-repository-p2 with Eclipse Public License 1.0 | 4 votes |
private void configureProxyBehaviour(final String proxyPath, final String fileName) { File file = resolveTestFile(fileName); BehaviourSpy spy = new BehaviourSpy(Behaviours.file(file)); proxyServer.serve("/" + proxyPath).withBehaviours(spy); serverPaths.put(proxyPath, spy); }
Example 2
Source File: HelmRoutingRuleIT.java From nexus-repository-helm with Eclipse Public License 1.0 | 4 votes |
private void configureProxyBehaviour(final String proxyPath, final String fileName) { File file = resolveTestFile(fileName); BehaviourSpy spy = new BehaviourSpy(Behaviours.file(file)); proxyServer.serve("/" + proxyPath).withBehaviours(spy); serverPaths.put(proxyPath, spy); }
Example 3
Source File: RRoutingRuleIT.java From nexus-repository-r with Eclipse Public License 1.0 | 4 votes |
private void configureProxyBehaviour(final String proxyPath, final String fileName) { File file = resolveTestFile(fileName); BehaviourSpy spy = new BehaviourSpy(Behaviours.file(file)); proxyServer.serve("/" + proxyPath).withBehaviours(spy); serverPaths.put(proxyPath, spy); }
Example 4
Source File: RawRestoreBlobIT.java From nexus-public with Eclipse Public License 1.0 | 4 votes |
private Content resolveFile(final String filename) { return Behaviours.file(testData.resolveFile(filename)); }