Package com.jcabi.urn

Examples of com.jcabi.urn.URNMocker


    /**
     * Public ctor.
     */
    public UserMocker() {
        this.withIdentity(
            new URNMocker()
                .withNid("facebook")
                .withNss(Long.toString(Math.abs(new Random().nextLong())))
                .mock()
        );
        Mockito.doReturn("John Doe").when(this.user).name();
View Full Code Here


    private Map<String, AttributeValue> item() {
        final ConcurrentMap<String, AttributeValue> item =
            new ConcurrentHashMap<String, AttributeValue>(0);
        item.put(
            DefaultDynamo.USER,
            new AttributeValue(new URNMocker().mock().toString())
        );
        item.put(
            DefaultDynamo.NAME,
            new AttributeValue(
                String.format(
View Full Code Here

TOP

Related Classes of com.jcabi.urn.URNMocker

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.