Package org.eclipse.sapphire.tests

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


            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 = aa.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

            // Remove item from the list.
           
            list.remove( 0 );
           
            assertEquals( 1, log.size() );
            log.clear();
           
            // Change an indexed value.
           
            list.get( 10 ).setStringValue( "aa" );
           
View Full Code Here

            // Change an indexed value.
           
            list.get( 10 ).setStringValue( "aa" );
           
            assertEquals( 1, log.size() );
            log.clear();
           
            // Change an unrelated value.
           
            list.get( 10 ).setIntegerValue( 9999 );
           
View Full Code Here

        observable.putAll( MapFactory.<String,String>start().add( "c", "3" ).add( "d", "4" ).result() );

        assertEquals( MapFactory.start().add( "a", "1" ).add( "b", "2" ).add( "c", "3" ).add( "d", "4" ).result(), base );
        assertEquals( 1, log.size() );

        log.clear();
        observable.putAll( MapFactory.<String,String>start().add( "a", "11" ).add( "b", "22" ).result() );

        assertEquals( MapFactory.start().add( "a", "11" ).add( "b", "22" ).add( "c", "3" ).add( "d", "4" ).result(), base );
        assertEquals( 1, log.size() );
       
View Full Code Here

        observable.putAll( MapFactory.<String,String>start().add( "a", "11" ).add( "b", "22" ).result() );

        assertEquals( MapFactory.start().add( "a", "11" ).add( "b", "22" ).add( "c", "3" ).add( "d", "4" ).result(), base );
        assertEquals( 1, log.size() );
       
        log.clear();
        observable.putAll( MapFactory.<String,String>start().add( "c", "3" ).add( "d", "4" ).result() );

        assertEquals( MapFactory.start().add( "a", "11" ).add( "b", "22" ).add( "c", "3" ).add( "d", "4" ).result(), base );
        assertEquals( 0, log.size() );
    }
View Full Code Here

        observable.remove( "b" );

        assertEquals( MapFactory.start().add( "a", "1" ).add( "c", "3" ).result(), base );
        assertEquals( 1, log.size() );

        log.clear();
        observable.remove( "d" );
       
        assertEquals( MapFactory.start().add( "a", "1" ).add( "c", "3" ).result(), 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.add( "c" );

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

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

        observable.addAll( SetFactory.unmodifiable( "a", "c", "d" ) );

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

        log.clear();
        observable.addAll( SetFactory.unmodifiable( "a", "b" ) );
       
        assertEquals( SetFactory.unmodifiable( "a", "b", "c", "d" ), 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.