shivadorepally / junitparams

Automatically exported from code.google.com/p/junitparams
0 stars 0 forks source link

JunitParams does not present test results in eclipse when tested objects have toString implemented with reflection #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Having a test

import junitparams.JUnitParamsRunner;
import junitparams.Parameters;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.junit.Test;
import org.junit.runner.RunWith;

@RunWith(JUnitParamsRunner.class)
public class JunitParamsToStringTest {

    @Test
    @Parameters(method = "getObjects")
    public void shouldExecuteThisTest(Object object) {

    }

    public Object[] getObjects() {
        return new Object[] { new Object() {
            @Override
            public String toString() {
                return ToStringBuilder.reflectionToString(this);
            }
        } };
    }

}

It doesn't show any outcome in eclipse - no status bar.
It just says finished after **seconds, Runs 0/1

I would expect this test to be executed normally :)

Original issue reported on code.google.com by tomasz.b...@pragmatists.pl on 4 Jan 2012 at 10:58

GoogleCodeExporter commented 8 years ago
observed in JUnitParams 0.3.7

Original comment by tomasz.b...@pragmatists.pl on 4 Jan 2012 at 10:59

GoogleCodeExporter commented 8 years ago

Original comment by lipinski...@gmail.com on 7 Jan 2012 at 5:35