Examples of iterate()


Examples of com.jcabi.github.ReleaseAssets.iterate()

        final ReleaseAssets assets = release().assets();
        final ReleaseAsset asset = assets.upload(
            "testRemove".getBytes(), "text/plain", "remove.txt"
        );
        MatcherAssert.assertThat(
            assets.iterate(),
            Matchers.<ReleaseAsset>iterableWithSize(1)
        );
        asset.remove();
        MatcherAssert.assertThat(
            assets.iterate(),
View Full Code Here

Examples of com.jcabi.github.Releases.iterate()

     */
    @Test
    public void canFetchEmptyListOfReleases() throws Exception {
        final Releases releases = MkReleasesTest.repo().releases();
        MatcherAssert.assertThat(
            releases.iterate(),
            Matchers.emptyIterable()
        );
    }

    /**
 
View Full Code Here

Examples of com.jcabi.github.Repos.iterate()

        final String since = "1";
        final Repos repos = new MkRepos(new MkStorage.InFile(), "tom");
        MkReposTest.repo(repos, since, "repo 1");
        MkReposTest.repo(repos, "2", "repo 2");
        MatcherAssert.assertThat(
            repos.iterate(since),
            Matchers.<Repo>iterableWithSize(2)
        );
    }

    /**
 
View Full Code Here

Examples of com.jcabi.github.UserEmails.iterate()

                new String[]{removed, retained}
            )
        );
        emails.remove(Collections.singleton(removed));
        MatcherAssert.assertThat(
            emails.iterate(),
            Matchers.allOf(
                Matchers.<String>iterableWithSize(1),
                Matchers.hasItems(retained),
                Matchers.not(Matchers.hasItems(removed))
            )
View Full Code Here

Examples of com.mysema.query.Projectable.iterate()

                              assetThreat.id,
                              set(Projections.bean(Threat.class, threat.id)).as("threats")))
                          .as("assetThreats")));

        Projectable projectable = createMock(Projectable.class);
        expect(projectable.iterate(new QTuple(
                riskAnalysis.id,
                riskAnalysis.id,
                assetThreat.id,
                Projections.bean(Threat.class, threat.id))))
            .andReturn(new EmptyCloseableIterator());
View Full Code Here

Examples of com.mysema.query.jpa.impl.JPAQuery.iterate()

        query.count();
        assertProjectionEmpty(query);
        query.distinct().count();
        assertProjectionEmpty(query);

        query.iterate(cat);
        assertProjectionEmpty(query);
        query.iterate(cat,cat);
        assertProjectionEmpty(query);
        query.distinct().iterate(cat);
        assertProjectionEmpty(query);
View Full Code Here

Examples of com.tulskiy.musique.library.MappedTreeNode.iterate()

        ArrayList<Track> tracks = new ArrayList<Track>();
        TreePath[] selectionPaths = getSelectionPaths();
        if (selectionPaths != null)
            for (TreePath path : selectionPaths) {
                MappedTreeNode node = (MappedTreeNode) path.getLastPathComponent();
                List<MappedTreeNode> nodes = node.iterate();
                for (MappedTreeNode treeNode : nodes) {
                    if (treeNode instanceof TrackNode) {
                        Track track = ((TrackNode) treeNode).getTrack();

                        if (createNew) {
View Full Code Here

Examples of com.volantis.mcs.dom2theme.impl.generator.rule.type.TypeSelectorSequenceList.iterate()

        TypeSelectorSequenceList actualOutputSelectorList =
                sequenceExtractor.extractSequences(outputElementList);

        // translate output selectors to theme selectors
        final List actualSelectorList = new ArrayList();
        actualOutputSelectorList.iterate(new TypeSelectorSequenceIteratee() {
            public void next(TypeSelectorSequence sequence) {
                final SimpleSelectorSequenceBuilder builder =
                        new SimpleSelectorSequenceBuilder(
                                StyleSheetFactory.getDefaultInstance());
                if (sequence.getType() != null) {
View Full Code Here

Examples of com.volantis.mcs.dom2theme.impl.model.OutputStyledElementList.iterate()

    public void testNullIteratee() {

        OutputStyledElementList elementList = new OutputStyledElementList();

        try {
            elementList.iterate(null);
            fail("iteratee may not be null");
        } catch (IllegalArgumentException e) {
            // expected
        }
    }
View Full Code Here

Examples of com.volantis.mcs.dom2theme.impl.model.OutputStyles.iterate()

        buffer.append("[");
        buffer.append(element.getName());
        buffer.append(",");
        final OutputStyles styles = element.getStyles();
        if (styles != null) {
            styles.iterate(new PseudoStylePathIteratee() {
                public void next(PseudoStylePath pseudoPath) {
                    buffer.append(pseudoPath);
                    buffer.append("{");
                    StyleProperties properties =
                            styles.getPathProperties(pseudoPath);
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.