-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[rewrite] #1281 focused commit to show changes to [karate-demo] for m…
…ock server
- Loading branch information
Showing
19 changed files
with
154 additions
and
195 deletions.
There are no files selected for viewing
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
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
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
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
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
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
15 changes: 7 additions & 8 deletions
15
karate-demo/src/test/java/mock/contract/PaymentServiceMockMain.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
package mock.contract; | ||
|
||
import com.intuit.karate.FileUtils; | ||
import com.intuit.karate.netty.FeatureServer; | ||
import java.io.File; | ||
import java.util.Collections; | ||
import com.intuit.karate.runtime.MockServer; | ||
|
||
/** | ||
* | ||
* @author pthomas3 | ||
*/ | ||
public class PaymentServiceMockMain { | ||
|
||
public static void main(String[] args) { | ||
File file = FileUtils.getFileRelativeTo(PaymentServiceMockMain.class, "payment-service-mock.feature"); | ||
FeatureServer server = FeatureServer.start(file, 8080, false, Collections.singletonMap("queueName", "DEMO.MOCK.8080")); | ||
MockServer server = MockServer | ||
.feature("classpath:mock/contract/payment-service-mock.feature") | ||
.arg("queueName", "DEMO.MOCK.8080") | ||
.http(8080).build(); | ||
server.waitSync(); | ||
} | ||
|
||
} |
Oops, something went wrong.