Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
enactment-engine
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CHOReVOLUTION
enactment-engine
Commits
463344dc
Commit
463344dc
authored
Jan 09, 2017
by
Alessio Carenini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deleted
parent
521582bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
98 deletions
+0
-98
chorspec/src/test/java/eu/chorevolution/datamodel/ServiceConfigurationTest.java
.../eu/chorevolution/datamodel/ServiceConfigurationTest.java
+0
-98
No files found.
chorspec/src/test/java/eu/chorevolution/datamodel/ServiceConfigurationTest.java
deleted
100644 → 0
View file @
521582bc
/*
* Copyright 2016 The CHOReVOLUTION project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
<<<<<<< HEAD:chorspec/src/test/java/chorspec/ServiceConfigurationTest.java
*/
package
eu.chorevolution.datamodel
;
import
java.io.IOException
;
import
java.net.MalformedURLException
;
import
java.util.ArrayList
;
import
java.util.List
;
import
javax.net.ssl.HttpsURLConnection
;
import
org.junit.Test
;
import
eu.chorevolution.chors.Base
;
import
eu.chorevolution.chors.BaseService
;
public
class
ServiceConfigurationTest
{
static
{
HttpsURLConnection
.
setDefaultHostnameVerifier
((
hostname
,
session
)
->
hostname
.
equals
(
"127.0.0.1"
));
}
@Test
public
void
cd_test
()
{
BaseService
service
;
String
cd_wsdl
=
"https://192.168.150.108:8443/ode/deployment/bundles/cdTripPlanner/BaseService.wsdl"
;
String
source_url
=
"https://192.168.150.108:8443/ode/processes/cdTripPlanner"
;
String
srv_name
=
"cdTripPlannerBase"
;
List
<
String
>
urls
=
new
ArrayList
<
String
>();
System
.
setProperty
(
"com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump"
,
"true"
);
System
.
setProperty
(
"com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump"
,
"true"
);
System
.
setProperty
(
"com.sun.xml.ws.transport.http.HttpAdapter.dump"
,
"true"
);
System
.
setProperty
(
"com.sun.xml.internal.ws.transport.http.HttpAdapter.dump"
,
"true"
);
try
{
service
=
(
BaseService
)
(
Base
.
getPort
(
srv_name
,
cd_wsdl
,
source_url
,
BaseService
.
class
));
urls
.
add
(
"http://localhost/prova"
);
service
.
setInvocationAddress
(
"dest_role"
,
"dest_name"
,
urls
);
}
catch
(
MalformedURLException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
catch
(
IOException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
catch
(
InterruptedException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
}
@Test
public
void
sf_test
()
{
String
source_wsdl
=
"https://192.168.150.108:8443/sfJourneyPlanner/sfJourneyPlanner?wsdl"
;
String
source_url
=
"https://192.168.150.108:8443/sfJourneyPlanner/SecurityFilterManagement/setInvocationAddress"
;
System
.
setProperty
(
"com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump"
,
"true"
);
System
.
setProperty
(
"com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump"
,
"true"
);
System
.
setProperty
(
"com.sun.xml.ws.transport.http.HttpAdapter.dump"
,
"true"
);
System
.
setProperty
(
"com.sun.xml.internal.ws.transport.http.HttpAdapter.dump"
,
"true"
);
List
<
String
>
urls
=
new
ArrayList
<
String
>();
BaseService
service
;
try
{
service
=
(
BaseService
)
(
Base
.
getPort
(
"Base"
,
source_wsdl
,
source_url
,
BaseService
.
class
));
urls
.
add
(
"http://localhost/prova"
);
service
.
setInvocationAddress
(
"dest_role"
,
"dest_name"
,
urls
);
}
catch
(
MalformedURLException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
catch
(
IOException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
catch
(
InterruptedException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment