Examples of contents()


Examples of com.google.gwt.gadgets.client.Gadget.Content.contents()

      JClassType gadgetSourceType, TypeOracle typeOracle)
      throws UnableToCompleteException {
    List<GadgetViewType> result = new ArrayList<GadgetViewType>();
    Content content = gadgetSourceType.getAnnotation(Content.class);
    if (content != null) {
      for (Class<? extends ContentSection<?>> contentSectionClass : content.contents()) {
        String viewTypeName = contentSectionClass.getName().replaceAll("\\$",
            ".");
        JClassType viewType = typeOracle.findType(viewTypeName);
        if (viewType != null) {
          ContentType contentType = viewType.getAnnotation(ContentType.class);
View Full Code Here

Examples of com.jcabi.github.Repo.contents()

        this.createFile(repo, path);
        final JsonObject json = MkContentsTest
            .content(path, "theDeleteMessage")
            .add("committer", MkContentsTest.committer())
            .build();
        final RepoCommit commit = repo.contents().remove(json);
        MatcherAssert.assertThat(commit, Matchers.notNullValue());
        MatcherAssert.assertThat(
            commit.json().getString("message"),
            Matchers.equalTo("theDeleteMessage")
        );
View Full Code Here

Examples of com.jcabi.github.Repo.contents()

        final JsonObject json = MkContentsTest
            .content(path, "theDeleteMessage")
            .add("ref", branch)
            .add("committer", MkContentsTest.committer())
            .build();
        final RepoCommit commit = repo.contents().remove(json);
        MatcherAssert.assertThat(commit, Matchers.notNullValue());
        MatcherAssert.assertThat(
            commit.json().getString("message"),
            Matchers.equalTo("theDeleteMessage")
        );
View Full Code Here

Examples of com.jcabi.github.Repo.contents()

        final Content[] correct = this.addContent(
            repo, "foo/bar/1", "foo/bar/2"
        );
        this.addContent(repo, "foo/baz", "foo/boo");
        MatcherAssert.assertThat(
            repo.contents().iterate("foo/bar", "ref-1"),
            Matchers.contains(correct)
        );
    }

    /**
 
View Full Code Here

Examples of com.jcabi.github.Repo.contents()

     * @throws Exception if some problem inside
     */
    @Test
    public void canGetOwnRepo() throws Exception {
        final Repo repo = MkContentTest.repo();
        final Contents contents = repo.contents();
        final Content content = contents.create(
            jsonContent("repo.txt", "for repo", "json repo")
        );
        MatcherAssert.assertThat(
            content.repo(),
View Full Code Here

Examples of com.sun.jini.outrigger.JavaSpaceAdmin.contents()

            JavaSpaceAdmin admin = (JavaSpaceAdmin) ((Administrable)
                space).getAdmin();
      admin = (JavaSpaceAdmin)
        getConfig().prepare("test.outriggerAdminPreparer",
          admin);
            final AdminIterator i = admin.contents(null, null, BLOCKING_FACTOR);

            while (i.next() != null) {
                i.delete();
            }
            i.close();
View Full Code Here

Examples of com.sun.jini.outrigger.JavaSpaceAdmin.contents()

        final List copyOfAllEntries = new LinkedList(allEntries);
        JavaSpaceAdmin admin = (JavaSpaceAdmin) ((Administrable)
                services[0]).getAdmin();
  admin = (JavaSpaceAdmin) getConfig().prepare("test.outriggerAdminPreparer",
                 admin);
        final AdminIterator i = admin.contents(null, null, 10);
        Entry weGot = i.next();

        while (weGot != null) {
            boolean accounted = false;
            final Template weGotTemplate = new Template(weGot);
View Full Code Here

Examples of com.sun.jini.outrigger.JavaSpaceAdmin.contents()

        JavaSpaceAdmin admin = (JavaSpaceAdmin) ((Administrable)
                services[0]).getAdmin();
        admin =
      (JavaSpaceAdmin) getConfig().prepare("test.outriggerAdminPreparer",
             admin);
  final AdminIterator i = admin.contents(nullTemplate, null, 10);
 
  Entry entry = i.next();
 
  if (entry != null) {
      logger.log(Level.INFO, "Space is not empty after removing"
View Full Code Here

Examples of com.sun.jini.outrigger.JavaSpaceAdmin.contents()

        final List copyOfAllEntries = new LinkedList(allEntries);
        JavaSpaceAdmin admin = (JavaSpaceAdmin) ((Administrable)
                services[0]).getAdmin();
  admin = (JavaSpaceAdmin) getConfig().prepare("test.outriggerAdminPreparer",
                 admin);
        final AdminIterator i = admin.contents(null, null, 10);
        Entry weGot = i.next();

        while (weGot != null) {
            boolean accounted = false;
            final Template weGotTemplate = new Template(weGot);
View Full Code Here

Examples of com.sun.jini.outrigger.JavaSpaceAdmin.contents()

        JavaSpaceAdmin admin = (JavaSpaceAdmin) ((Administrable)
                services[0]).getAdmin();
        admin =
      (JavaSpaceAdmin) getConfig().prepare("test.outriggerAdminPreparer",
             admin);
  final AdminIterator i = admin.contents(nullTemplate, null, 10);
 
  Entry entry = i.next();
 
  if (entry != null) {
      logger.log(Level.INFO, "Space is not empty after removing"
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.