Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit e4a0b7d

Browse files
committed
CodeSV 1.2.0
1 parent 5e03051 commit e4a0b7d

29 files changed

+2323
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
1-
# Service Virtualization as Code
1+
# CodeSV
22

3-
CA Service Virtualization as Code (SV as Code) is a new, lightweight way to define virtual services and save valuable time.
3+
CA CodeSV is a new, lightweight way to define virtual services and save valuable time.
44

5-
At the core, SV as Code delivers a simple yet powerful Java library that provides an easy to use API so you can create and run virtual services as a part of jUnit testing.
5+
At the core, CodeSV delivers a simple yet powerful Java library that provides an easy to use API so you can create and run virtual services as a part of jUnit testing.
66

77
You can create and run HTTP virtual service definitions directly in your unit testing code.
88

9-
Even better, the HTTP virtual services are completely transparent to an application under test and so you don't need to make any configuration tweaks.
9+
Even better, the HTTP virtual services are completely transparent to an application under test. This means you don't have to make any other configuration tweaks.
1010

11-
[How to use SV as Code](https://github.com/CA-DevTest/SV-as-Code/wiki/Quick-Start-Guide)
11+
[How to use CodeSV](https://github.com/CA-DevTest/CodeSV/wiki/Quick-Start-Guide)
1212

1313
[Share ideas and raise issues](https://communities.ca.com/community/ca-devtest-community/content?filterID=contentstatus%5Bpublished%5D~category%5Bsv-as-code%5D)
1414

1515

1616
## Code Example
17+
Here is a simple example of a jUnit test running an embedded virtual service using CodeSV.
18+
1719
```java
18-
import static com.ca.svcode.protocols.http.fluent.HttpFluentInterface.*;
20+
import static com.ca.codesv.protocols.http.fluent.HttpFluentInterface.*;
1921
import static org.junit.Assert.*;
2022

21-
import com.ca.svcode.engine.junit4.VirtualServerRule;
23+
import com.ca.codesv.engine.junit4.VirtualServerRule;
2224
import org.junit.*;
2325

2426
public class ExampleTest {

codesv-examples/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### SV as Code Code Examples
2+
3+
This is a sample gradle project containing tests showing capabilities of SV as Code. All examples are virtualizing HTTP services using HTTP fluent API.
4+
5+
This project is runnable only with Java 8 and Gradle.

codesv-examples/build.gradle

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
group 'com.ca.codesv'
2+
version '1.2.0'
3+
4+
apply plugin: 'java'
5+
6+
sourceCompatibility = 1.8
7+
targetCompatibility = 1.8
8+
ext.moduleDepVersion = "1.2.0"
9+
repositories {
10+
mavenLocal()
11+
maven { url "http://ca.bintray.com/sv" }
12+
mavenCentral()
13+
}
14+
15+
16+
dependencies {
17+
// Logging
18+
compile 'org.slf4j:slf4j-api:1.7.21'
19+
compile 'com.ca.codesv:codesv-dist-jar:1.2.0'
20+
21+
compile 'org.apache.httpcomponents:httpclient:4.5.3'
22+
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.0'
23+
}
53.5 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Thu Aug 17 14:54:26 CEST 2017
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-rc-2-bin.zip

codesv-examples/gradlew

Lines changed: 172 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codesv-examples/gradlew.bat

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codesv-examples/settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rootProject.name = 'svcode-examples'
2+

0 commit comments

Comments
 (0)