Package se.grunka.fortuna.accumulator

Examples of se.grunka.fortuna.accumulator.EventScheduler


    }

    @Test
    public void shouldUseTimeBetweenCallsToCreateEvents() throws Exception {
        target.event(
                new EventScheduler() {
                    @Override
                    public void schedule(long delay, TimeUnit timeUnit) {
                        assertEquals(10, timeUnit.toMillis(delay));
                        schedules++;
                    }
View Full Code Here


    }

    @Test
    public void shouldGetGarbageCollectionData() throws Exception {
        target.event(
                new EventScheduler() {
                    @Override
                    public void schedule(long delay, TimeUnit timeUnit) {
                        assertEquals(TimeUnit.SECONDS.toMillis(10), timeUnit.toMillis(delay));
                        schedules++;
                    }
View Full Code Here

    }

    @Test
    public void shouldAddUptime() throws Exception {
        target.event(
                new EventScheduler() {
                    @Override
                    public void schedule(long delay, TimeUnit timeUnit) {
                        assertEquals(100, timeUnit.toMillis(delay));
                        schedules++;
                    }
View Full Code Here

    }

    @Test
    public void shouldAddBytes() throws Exception {
        target.event(
                new EventScheduler() {
                    @Override
                    public void schedule(long delay, TimeUnit timeUnit) {
                        assertEquals(100, timeUnit.toMillis(delay));
                        schedules++;
                    }
View Full Code Here

    }

    @Test
    public void shouldAddUptime() throws Exception {
        target.event(
                new EventScheduler() {
                    @Override
                    public void schedule(long delay, TimeUnit timeUnit) {
                        assertEquals(1000, timeUnit.toMillis(delay));
                        schedules++;
                    }
View Full Code Here

    }

    @Test
    public void shouldAddTwoBytesAndSchedule() throws Exception {
        target.event(
                new EventScheduler() {
                    @Override
                    public void schedule(long delay, TimeUnit timeUnit) {
                        assertEquals(1000, timeUnit.toMillis(delay));
                        schedules++;
                    }
View Full Code Here

    }

    @Test
    public void shouldReadFreeMemory() throws Exception {
        target.event(
                new EventScheduler() {
                    @Override
                    public void schedule(long delay, TimeUnit timeUnit) {
                        assertEquals(100, timeUnit.toMillis(delay));
                        schedules++;
                    }
View Full Code Here

TOP

Related Classes of se.grunka.fortuna.accumulator.EventScheduler

Copyright © 2018 www.massapicom. 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.