Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Include Page
apache-felix-ipojo-header
apache-felix-ipojo-header

...

Wiki Markup
{html}
<div class="content">
{html}

...

junit4osgi

...

framework

...

architecture

...

This

...

page

...

describes

...

the

...

architecture

...

of

...

the

...

junit4osgi

...

framework.

...

This

...

does

...

not

...

include

...

the

...

maven-junit4osgi-plugin.

Wiki Markup
_

{div:class=toc}
{toc:maxLevel=4|minLevel=2}
{div}

h2. 

Global

...

architecture

Image Added

A system tested with junit4OSGi is divide in three parts:

  1. The tested system composed by bundles/services/...

...

  1. composing

...

  1. the

...

  1. system

...

  1. under

...

  1. tests.

...

  1. This

...

  1. can

...

  1. be

...

  1. the

...

  1. true

...

  1. application.

...

  1. Tests

...

  1. bundles

...

  1. containing

...

  1. tests

...

  1. stressing/checking

...

  1. the

...

  1. system

...

  1. under

...

  1. tests.

...

  1. The

...

  1. junit4OSGi

...

  1. framework

...

  1. composed

...

  1. by

...

  1. a

...

  1. runtime

...

  1. bundle

...

  1. (executing

...

  1. tests)

...

  1. and

...

  1. a

...

  1. runner

...

  1. bundle

...

  1. (launching

...

  1. test).

...

junit4OSGi

...

does

...

not

...

impacts

...

anything

...

on

...

the

...

system

...

under

...

test.

...

Test

...

bundles

...

interact

...

with

...

the

...

system

...

under

...

test

...

via

...

services/events

...

...

...

Bundle

...

containing

...

tests

...

declared

...

contained

...

test

...

suites

...

in

...

there

...

manifest

...

such

...

as:

{
Code Block
}
Test-Suite: org.apache.felix.ipojo.test.scenarios.ps.ProvidedServiceTestSuite, org.apache.felix.ipojo.scenarios.ps.StrategyTestSuite
{code}

Thanks

...

to

...

this

...

manifest

...

header,

...

the

...

junit4OSGi

...

runtime

...

bundle

...

collects

...

tests.

...

This

...

bundle

...

is

...

the

...

core

...

of

...

the

...

test

...

framework,

...

and

...

manage

...

both

...

collection

...

and

...

execution

...

of

...

tests.

...

The

...

runner

...

bundle

...

just

...

launch

...

tests.

...

According

...

to

...

the

...

runner

...

implementation,

...

test

...

selection

...

can

...

also

...

be

...

done.

...

Several

...

runner

...

have

...

been

...

developped:

...

  • junit Felix command:

...

  • executing

...

  • test

...

  • from

...

  • the

...

  • Felix

...

  • shell

...

  • (only

...

  • for

...

  • Felix)

...

  • Swing

...

  • runner:

...

  • executing

...

  • test

...

  • from

...

  • a

...

  • Swing

...

  • application

...

  • (works

...

  • for

...

  • Felix,

...

  • Equinox

...

  • and

...

  • Knopflerfish)

...

  • Immediate

...

  • runner:

...

  • executing

...

  • test

...

  • as

...

  • soon

...

  • the

...

  • runner

...

  • arrives

...

  • in

...

  • the

...

  • framework

...

  • (works

...

  • for

...

  • Felix,

...

  • Equinox

...

  • and

...

  • Knopflerfish)

...

  • Maven

...

  • runner:

...

  • launching

...

  • an

...

  • embedded

...

  • Felix

...

  • with

...

  • required

...

  • bundle

...

  • and

...

  • launching

...

  • test

...

  • automatically

...

  • during

...

  • the

...

  • Maven

...

  • build

...

  • process.

...

Why

...

junit

...

3

...

?

...

The

...

junit4OSGi

...

framework

...

use

...

junit

...

3

...

because

...

it

...

was

...

design

...

and

...

developed

...

to

...

test

...

embedded

...

systems.

...

So,

...

the

...

junit4OSGi

...

framework

...

runs

...

on

...

a

...

J2ME

...

Foundation

...

Profile

...

1.1

...

virtual

...

machine

...

(such

...

as

...

Mika).

...

However,

...

soon,

...

junit4OSGi

...

will

...

evolve

...

to

...

support

...

Junit4

...

and

...

TestNG.

...



Include Page
apache-felix-ipojo-footer
apache-felix-ipojo-footer

...