Package com.jcabi.http.mock

Examples of com.jcabi.http.mock.MkContainer.stop()


        );
        MatcherAssert.assertThat(
            hooks.iterate(),
            Matchers.<Hook>iterableWithSize(2)
        );
        container.stop();
    }

    /**
     * RtHooks can fetch single hook.
     * @throws Exception if some problem inside
View Full Code Here


        final Hook hook = hooks.get(1);
        MatcherAssert.assertThat(
            new Hook.Smart(hook).name(),
            Matchers.equalTo(name)
        );
        container.stop();
    }

    /**
     * RtHooks can create a hook.
     *
 
View Full Code Here

            MatcherAssert.assertThat(
                new Hook.Smart(hook).name(),
                Matchers.equalTo(name)
            );
        } finally {
            container.stop();
        }
    }

    /**
     * RtHooks can delete a hook.
View Full Code Here

            MatcherAssert.assertThat(
                query.body(),
                Matchers.isEmptyString()
            );
        } finally {
            container.stop();
        }
    }

    /**
     * Create and return JsonObject to test.
View Full Code Here

        );
        MatcherAssert.assertThat(
            users.iterate(identifier),
            Matchers.<User>iterableWithSize(2)
        );
        container.stop();
    }

    /**
     * RtUsers can get a single user.
     *
 
View Full Code Here

        );
        MatcherAssert.assertThat(
            users.get(login).login(),
            Matchers.equalTo(login)
        );
        container.stop();
    }

    /**
     * RtUsers can get a current  user.
     *
 
View Full Code Here

        );
        MatcherAssert.assertThat(
            users.self().login(),
            Matchers.equalTo(login)
        );
        container.stop();
    }

    /**
     * Create and return JsonObject to test.
     * @param login Username to login
View Full Code Here

            MatcherAssert.assertThat(
                container.take().method(),
                Matchers.equalTo(Request.POST)
            );
        } finally {
            container.stop();
        }
    }

    /**
     * RtReferences should be able to iterate over References.
View Full Code Here

            MatcherAssert.assertThat(
                refs.iterate(),
                Matchers.notNullValue()
            );
        } finally {
            container.stop();
        }
    }

    /**
     * RtReferences should be able to remove a Reference.
View Full Code Here

            MatcherAssert.assertThat(
                container.take().method(),
                Matchers.equalTo(Request.DELETE)
            );
        } finally {
            container.stop();
        }
    }

    /**
     * RtReferences should be able to iterate over tags.
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.