Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frascati
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
114
Issues
114
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
frascati
frascati
Commits
4f97e444
Commit
4f97e444
authored
Nov 10, 2017
by
Lionel Seinturier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove no longer supported execution with recent versions of the JDK.
parent
41716aad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
89 deletions
+0
-89
tinfi/extension/osgi/examples/helloworld/assembly/src/test/java/example/hw/HelloWorldTestCase.java
...assembly/src/test/java/example/hw/HelloWorldTestCase.java
+0
-89
No files found.
tinfi/extension/osgi/examples/helloworld/assembly/src/test/java/example/hw/HelloWorldTestCase.java
deleted
100755 → 0
View file @
41716aad
/***
* OW2 FraSCAti Tinfi
* Copyright (C) 2009-2017 Inria, Univ. Lille 1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Contact: frascati@ow2.org
*
* Author: Lionel Seinturier
*/
package
example
.
hw
;
import
org.junit.After
;
import
org.junit.Before
;
import
org.junit.Test
;
import
org.objectweb.fractal.api.Component
;
import
org.objectweb.fractal.api.NoSuchInterfaceException
;
import
org.objectweb.fractal.api.control.IllegalLifeCycleException
;
import
org.objectweb.fractal.api.factory.InstantiationException
;
import
org.objectweb.fractal.juliac.osgi.OSGiHelper
;
import
org.ow2.frascati.tinfi.TinfiDomain
;
import
example.hw.itf.Console
;
/**
* Automate the launching of the HelloWorld example and check that the example
* runs as expected.
*
* @author Lionel Seinturier <Lionel.Seinturier@univ-lille1.fr>
* @since 0.4.5
*/
public
class
HelloWorldTestCase
{
private
Component
root
;
@Before
public
void
setUp
()
throws
ClassNotFoundException
,
InstantiationException
,
IllegalAccessException
,
IllegalLifeCycleException
,
NoSuchInterfaceException
,
java
.
lang
.
InstantiationException
{
// Instanciate the HelloWorld composite
root
=
TinfiDomain
.
getComponent
(
"example.hw.HelloWorld"
);
}
@After
public
void
tearDown
()
throws
org
.
objectweb
.
fractal
.
juliac
.
osgi
.
revision
.
OSGiRevisionException
{
OSGiHelper
.
getPlatform
().
stop
();
}
@Test
public
void
serverHelloWorld
()
throws
NoSuchInterfaceException
{
/*
* Use the Console class to direct the output of the example to a
* temporary file.
*/
Console
.
init
(
System
.
err
,
new
String
[]{
"Server: begin printing..."
,
"->hello world"
,
"Server: print done."
,
});
/*
* Run the test.
*/
Runnable
r
=
(
Runnable
)
root
.
getFcInterface
(
"r"
);
r
.
run
();
}
}
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