- Install Ballerina using windows installer.
- Open cmd or powershell.
- Clone this scripts.
git clone https://gist.github.com/e606661be03d7045be973868b9e9ed67.git wintests
. cd
towintests
.- run
test
command.
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 ballerina/io; | |
// Type Nodes | |
type Node record { | |
string kind; | |
string value; | |
}; | |
type NodeA record { |
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 ballerina/io; | |
public type Element object { | |
public function accept(Visitor visitor); | |
}; | |
public class ConcreteElementA { | |
*Element; | |
public function accept(Visitor visitor) { |
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 ballerina.net.http; | |
public struct Initiator2pcClientConfig { | |
string coordinatorProtocolAt; | |
} | |
public struct Initiator2pcClientEP { | |
http:ClientEndpoint httpClient; | |
} |
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 ballerina.net.http; | |
import ballerina.io; | |
import ballerina.runtime; | |
// This is the service endpoint | |
endpoint<http:Service> ep1 { | |
port:9090 | |
} | |
// This service is not bound to an endpoint. |
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 ballerina.net.http; | |
import ballerina.io; | |
// This is the client endpoint. | |
endpoint<http:ClientEndpoint> clientEP { | |
serviceUri: "http://www.mocky.io" | |
} | |
function main(string[] args) { | |
http:Request req2 = {}; |
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 ballerina.net.http; | |
// This is the service endpoint | |
endpoint<http:Service> ep1 { | |
port:9090 | |
} | |
// This is the client endpoint. | |
endpoint<http:ClientEndpoint> ep2 { | |
serviceUri: "http://www.mocky.io" |
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 ballerina.net.http; | |
endpoint<http:service> helloServiceEP { | |
port : 8080 | |
} | |
@http:serviceConfig { | |
endpoints : [helloServiceEP], // This service is bound to helloServiceEP | |
basePath : "/helloService" | |
} |
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
package org.wso2.bpmn.helloworld.v2; | |
import org.activiti.engine.delegate.DelegateExecution; | |
import org.activiti.engine.delegate.JavaDelegate; | |
/** | |
* Hello World Service Task - Version 2. | |
*/ | |
public class HelloWorldServiceTaskV2 implements JavaDelegate { |
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
package org.wso2.bpmn.helloworld.v1; | |
import org.activiti.engine.delegate.DelegateExecution; | |
import org.activiti.engine.delegate.JavaDelegate; | |
/** | |
* Hello World Service Task- V1. | |
*/ | |
public class HelloWorldServiceTaskV1 implements JavaDelegate { | |
@Override |
NewerOlder