Examples of References


Examples of com.dyuproject.ioc.config.References

    {
        if(key==null)
            return false;
       
        if(_refs==null)
            _refs = new References(new HashMap<String,Object>());
       
        _refs.put(key, value);       
        return true;
    }
View Full Code Here

Examples of com.jcabi.github.References

     * MkReferences can create a MkReference.
     * @throws Exception - If something goes wrong.
     */
    @Test
    public void createsMkReference() throws Exception {
        final References refs = this.repo().git().references();
        MatcherAssert.assertThat(
            refs.create("refs/heads/branch1", "abcderf122"),
            Matchers.notNullValue()
        );
    }
View Full Code Here

Examples of com.jcabi.github.References

     * MkReference can return its owner.
     * @throws Exception - If something goes wrong.
     */
    @Test
    public void returnsRepo() throws Exception {
        final References refs = this.repo().git().references();
        MatcherAssert.assertThat(
            refs.repo(),
            Matchers.notNullValue()
        );
    }
View Full Code Here

Examples of com.jcabi.github.References

     * @throws Exception - If something goes wrong.
     */
    @Test
    public void iteratesReferences() throws Exception {
        final Repo owner = this.repo();
        final References refs = owner.git().references();
        refs.create("refs/heads/br", "qweqwe");
        refs.create("refs/tags/t1", "111t222");
        MatcherAssert.assertThat(
            refs.iterate(),
            Matchers.<Reference>iterableWithSize(2)
        );
    }
View Full Code Here

Examples of com.jcabi.github.References

     * @throws Exception - If something goes wrong.
     */
    @Test
    public void iteratesReferencesInSubNamespace() throws Exception {
        final Repo owner = this.repo();
        final References refs = owner.git().references();
        refs.create("refs/heads/br", "qweqwe");
        refs.create("refs/tags/t1", "111t222");
        MatcherAssert.assertThat(
            refs.iterate("heads"),
            Matchers.<Reference>iterableWithSize(1)
        );
        MatcherAssert.assertThat(
            refs.iterate("tags"),
            Matchers.<Reference>iterableWithSize(1)
        );
    }
View Full Code Here

Examples of com.jcabi.github.References

     * @throws Exception - If something goes wrong.
     */
    @Test
    public void iteratesTags() throws Exception {
        final Repo owner = this.repo();
        final References refs = owner.git().references();
        refs.create("refs/tags/t2", "2322f34");
        MatcherAssert.assertThat(
            refs.tags(),
            Matchers.<Reference>iterableWithSize(1)
        );
    }
View Full Code Here

Examples of com.jcabi.github.References

     * @throws Exception - If something goes wrong.
     */
    @Test
    public void iteratesHeads() throws Exception {
        final Repo owner = this.repo();
        final References refs = owner.git().references();
        refs.create("refs/heads/branch2", "blahblah");
        MatcherAssert.assertThat(
            refs.heads(),
            Matchers.<Reference>iterableWithSize(1)
        );
    }
View Full Code Here

Examples of com.jcabi.github.References

     * @throws Exception - If something goes wrong.
     */
    @Test
    public void removesReference() throws Exception {
        final Repo owner = this.repo();
        final References refs = owner.git().references();
        refs.create("refs/heads/testbr", "qweqwe22");
        refs.create("refs/tags/t2", "111teee");
        MatcherAssert.assertThat(
            refs.iterate(),
            Matchers.<Reference>iterableWithSize(2)
        );
        refs.remove("refs/tags/t2");
        MatcherAssert.assertThat(
            refs.iterate(),
            Matchers.<Reference>iterableWithSize(1)
        );
    }
View Full Code Here

Examples of gov.nist.javax.sip.header.extensions.References

        if (debug)
            dbg_enter("ReasonParser.parse");

        try {
            headerName(TokenTypes.REFERENCES);
            References references= new References();
            this.lexer.SPorHT();
              
            String callId = lexer.byteStringNoSemicolon();
          
            references.setCallId(callId);
            super.parse(references);
            return references;
       } finally {
            if (debug)
                dbg_leave("ReferencesParser.parse");
View Full Code Here

Examples of org.moxie.References

    doc.structure = struct;
    return struct;
  }
 
  public References createReferences() {
    References references = new References();
    doc.references = references;
    return references;
  }
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.