EMMA Coverage Report (generated Tue Dec 18 20:38:46 CET 2007)
[all classes][picoContainer.test2]

## COVERAGE SUMMARY FOR SOURCE FILE [Main.java]

name | class, % | method, % | block, % | line, %
--- | --- | --- | --- | ---
Main.java | 0% (0/1) | 0% (0/2) | 0% (0/50) | 0% (0/12)

### COVERAGE BREAKDOWN BY CLASS AND METHOD

name | class, % | method, % | block, % | line, %
--- | --- | --- | --- | ---
class Main | 0% (0/1) | 0% (0/2) | 0% (0/50) | 0% (0/12)
Main (): void |  | 0% (0/1) | 0% (0/3) | 0% (0/1)
main (String []): void |  | 0% (0/1) | 0% (0/47) | 0% (0/11)

1 | package picoContainer.test2;
2 |
3 | import org.picocontainer.DefaultPicoContainer;
4 | import org.picocontainer.MutablePicoContainer;
5 | import org.picocontainer.behaviors.Caching;
6 |
7 | public class Main {
8 | public static void main(String[] args) throws InterruptedException {
9 | MutablePicoContainer pico = new DefaultPicoContainer(new Caching());
10 | pico.addComponent("boy", Boy.class);
11 | pico.addComponent("girl1", Girl.class);
12 | pico.addComponent("girl2", Girl.class);
13 |
14 | System.out.println(pico.getComponent("girl1"));
15 | System.out.println(pico.getComponent("girl2"));
16 |
17 | pico.start();
18 | Thread.sleep(1000);
19 | pico.stop();
20 | pico.dispose();
21 |
22 | // Girl girl = (Girl) pico.getComponent(Girl.class);
23 | // girl.kissSomeone();
24 | //
25 | // Girl girl2 = (Girl) pico.getComponent(Girl.class);
26 | // girl.kissSomeone();
27 | }
28 | }

[all classes][picoContainer.test2]
EMMA 2.0.5312 EclEmma Fix 1 (C) Vladimir Roubtsov