Package org.eclipse.sapphire.tests

Examples of org.eclipse.sapphire.tests.EventLog.clear()


        observable.remove( "b" );

        assertEquals( SetFactory.unmodifiable( "a", "c" ), base );
        assertEquals( 1, log.size() );

        log.clear();
        observable.remove( "d" );
       
        assertEquals( SetFactory.unmodifiable( "a", "c" ), base );
        assertEquals( 0, log.size() );
    }
View Full Code Here


        observable.removeAll( SetFactory.unmodifiable( "b", "c", "d" ) );

        assertEquals( SetFactory.unmodifiable( "a" ), base );
        assertEquals( 1, log.size() );

        log.clear();
        observable.removeAll( SetFactory.unmodifiable( "d", "e" ) );
       
        assertEquals( SetFactory.unmodifiable( "a" ), base );
        assertEquals( 0, log.size() );
    }
View Full Code Here

            assertEquals( 3, log.size() );
            assertPropertyContentEvent( log.event( 0 ), a.getElement() );
            assertPropertyContentEvent( log.event( 1 ), aa.getValue() );
            assertPropertyContentEvent( log.event( 2 ), aa.getList() );
           
            log.clear();
           
            final Disposable suspension = a.getElement().suspend();
           
            try
            {
View Full Code Here

                a.setValue( "nop" );
               
                assertEquals( 1, log.size() );
                assertPropertyContentEvent( log.event( 0 ), a.getValue() );
               
                log.clear();
            }
            finally
            {
                suspension.dispose();
            }
View Full Code Here

        observable.retainAll( SetFactory.unmodifiable( "a", "c" ) );

        assertEquals( SetFactory.unmodifiable( "a", "c" ), base );
        assertEquals( 1, log.size() );

        log.clear();
        observable.retainAll( SetFactory.unmodifiable( "a", "c" ) );
       
        assertEquals( SetFactory.unmodifiable( "a", "c" ), base );
        assertEquals( 0, log.size() );
    }
View Full Code Here

        observable.clear();

        assertTrue( base.isEmpty() );
        assertEquals( 1, log.size() );

        log.clear();
        observable.clear();
       
        assertTrue( base.isEmpty() );
        assertEquals( 0, log.size() );
    }
View Full Code Here

        observable.set( 1, "c" );

        assertEquals( ListFactory.unmodifiable( "a", "c" ), base );
        assertEquals( 1, log.size() );

        log.clear();
        observable.set( 1, "c" );
       
        assertEquals( ListFactory.unmodifiable( "a", "c" ), base );
        assertEquals( 0, log.size() );
    }
View Full Code Here

        observable.remove( "b" );

        assertEquals( ListFactory.unmodifiable( "a", "c" ), base );
        assertEquals( 1, log.size() );

        log.clear();
        observable.remove( "d" );
       
        assertEquals( ListFactory.unmodifiable( "a", "c" ), base );
        assertEquals( 0, log.size() );
    }
View Full Code Here

        observable.removeAll( ListFactory.unmodifiable( "b", "c", "d" ) );

        assertEquals( ListFactory.unmodifiable( "a" ), base );
        assertEquals( 1, log.size() );

        log.clear();
        observable.removeAll( ListFactory.unmodifiable( "d", "e" ) );
       
        assertEquals( ListFactory.unmodifiable( "a" ), base );
        assertEquals( 0, log.size() );
    }
View Full Code Here

        observable.retainAll( ListFactory.unmodifiable( "a", "c" ) );

        assertEquals( ListFactory.unmodifiable( "a", "c" ), base );
        assertEquals( 1, log.size() );

        log.clear();
        observable.retainAll( ListFactory.unmodifiable( "a", "c" ) );
       
        assertEquals( ListFactory.unmodifiable( "a", "c" ), base );
        assertEquals( 0, log.size() );
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.