Package samples.argumentmatcher

Examples of samples.argumentmatcher.ArgumentMatcherDemo


    @Test
    public void worksWithArgumentMatchers() throws Exception {
        final ArrayList<String> strings = new ArrayList<String>();

        final ArgumentMatcherDemo tested = mock(ArgumentMatcherDemo.class);
        doReturn(strings).when(tested, "findByNamedQuery", eq("AbstractPTVTicket.ticketSeatIds"), anyList());

        final List<String> stringList = tested.findByNamedQuery("something", strings);
        assertTrue(stringList.isEmpty());
    }
View Full Code Here

TOP

Related Classes of samples.argumentmatcher.ArgumentMatcherDemo

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.