Ignore:
Timestamp:
10/01/13 15:34:32 (11 years ago)
Author:
stoda
Message:

TODO: unbind object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/supervisor/src/test/java/omq/test/supervisor/SleepTest.java

    r92 r93  
    1515
    1616        @BeforeClass
    17         public static void Server() throws Exception {System.out.println("hola");
     17        public static void Server() throws Exception {
     18                System.out.println("hola");
    1819                Properties env1 = new Properties();
    1920                env1.setProperty(ParameterQueue.USER_NAME, "guest");
     
    5960                Supervisor supervisor = broker.lookup("supervisor", Supervisor.class);
    6061
    61                 OmqSettings settings = new OmqSettings("sleep", SleepImpl.class.getName(), env, 1, 70, 2);
     62                OmqSettings settings = new OmqSettings("sleep", SleepImpl.class.getName(), env, 20, 20, 2);
    6263                supervisor.spawnObject(settings);
    6364
    6465                Sleep sleep = broker.lookup("sleep", Sleep.class);
    6566
    66                 for (int i = 0; i < 50; i++) {
     67                for (int i = 0; i < 10; i++) {
    6768                        sleep.sleep();
    6869                }
    6970                Thread.sleep(5000);
    70                 for (int i = 0; i < 50; i++) {
     71                for (int i = 0; i < 20; i++) {
    7172                        sleep.sleep();
    7273                }
    73                
     74
    7475                Thread.sleep(100000);
    7576        }
Note: See TracChangeset for help on using the changeset viewer.