Package org.eclipse.sapphire

Examples of org.eclipse.sapphire.Counter.reset()


        final Counter counter = resource.getReadUnderlyingListCounter();
        final TestElement element = TestElement.TYPE.instantiate( resource );
        final ElementList<Element> list = element.getList();
       
        list.iterator(); // prime
        counter.reset();
       
        list.refresh();
        assertEquals( 1, counter.read() );
        counter.reset();
       
View Full Code Here


        list.iterator(); // prime
        counter.reset();
       
        list.refresh();
        assertEquals( 1, counter.read() );
        counter.reset();
       
        list.insert();
        assertEquals( 1, counter.read() );
        counter.reset();
View Full Code Here

        assertEquals( 1, counter.read() );
        counter.reset();
       
        list.insert();
        assertEquals( 1, counter.read() );
        counter.reset();

        list.remove( 0 );
        assertEquals( 1, counter.read() );
        counter.reset();
       
View Full Code Here

        assertEquals( 1, counter.read() );
        counter.reset();

        list.remove( 0 );
        assertEquals( 1, counter.read() );
        counter.reset();
       
        final Element a = list.insert();
        final Element b = list.insert();
        assertEquals( 2, counter.read() );
        counter.reset();
View Full Code Here

        counter.reset();
       
        final Element a = list.insert();
        final Element b = list.insert();
        assertEquals( 2, counter.read() );
        counter.reset();
       
        list.moveDown( a );
        assertEquals( 1, counter.read() );
        counter.reset();
       
View Full Code Here

        assertEquals( 2, counter.read() );
        counter.reset();
       
        list.moveDown( a );
        assertEquals( 1, counter.read() );
        counter.reset();
       
        list.moveUp( a );
        assertEquals( 1, counter.read() );
        counter.reset();
       
View Full Code Here

        assertEquals( 1, counter.read() );
        counter.reset();
       
        list.moveUp( a );
        assertEquals( 1, counter.read() );
        counter.reset();
       
        list.move( b, 0 );
        assertEquals( 1, counter.read() );
        counter.reset();
    }
View Full Code Here

        assertEquals( 1, counter.read() );
        counter.reset();
       
        list.move( b, 0 );
        assertEquals( 1, counter.read() );
        counter.reset();
    }

}
View Full Code Here

        final Counter counter = Counter.find( UniqueValueValidationService.class );
       
        final ByteArrayResourceStore byteArrayResourceStore = new ByteArrayResourceStore( generateTestData( entries ) );
        final XmlResourceStore xmlResourceStore = new XmlResourceStore( byteArrayResourceStore );
       
        counter.reset();
       
        final TestElement element = TestElement.TYPE.instantiate( new RootXmlResource( xmlResourceStore ) );
        element.validation();
        assertEquals( entries, counter.read() );
       
View Full Code Here

       
        final TestElement element = TestElement.TYPE.instantiate( new RootXmlResource( xmlResourceStore ) );
        element.validation();
        assertEquals( entries, counter.read() );
       
        counter.reset();
       
        element.getList().get( 0 ).setValue( "a" );
        element.validation();
        assertEquals( entries + 1, counter.read() );
       
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.