Package org.springframework.beans.factory.parsing

Examples of org.springframework.beans.factory.parsing.ParseState.push()


  public void testSimple() throws Exception {
    MockEntry entry = new MockEntry();

    ParseState parseState = new ParseState();
    parseState.push(entry);
    assertEquals("Incorrect peek value.", entry, parseState.peek());
    parseState.pop();
    assertNull("Should get null on peek()", parseState.peek());
  }
View Full Code Here


    MockEntry one = new MockEntry();
    MockEntry two = new MockEntry();
    MockEntry three = new MockEntry();

    ParseState parseState = new ParseState();
    parseState.push(one);
    assertEquals(one, parseState.peek());
    parseState.push(two);
    assertEquals(two, parseState.peek());
    parseState.push(three);
    assertEquals(three, parseState.peek());
View Full Code Here

    MockEntry three = new MockEntry();

    ParseState parseState = new ParseState();
    parseState.push(one);
    assertEquals(one, parseState.peek());
    parseState.push(two);
    assertEquals(two, parseState.peek());
    parseState.push(three);
    assertEquals(three, parseState.peek());

    parseState.pop();
View Full Code Here

    ParseState parseState = new ParseState();
    parseState.push(one);
    assertEquals(one, parseState.peek());
    parseState.push(two);
    assertEquals(two, parseState.peek());
    parseState.push(three);
    assertEquals(three, parseState.peek());

    parseState.pop();
    assertEquals(two, parseState.peek());
    parseState.pop();
View Full Code Here

  public void testSnapshot() throws Exception {
    MockEntry entry = new MockEntry();

    ParseState original = new ParseState();
    original.push(entry);

    ParseState snapshot = original.snapshot();
    original.push(new MockEntry());
    assertEquals("Snapshot should not have been modified.", entry, snapshot.peek());
  }
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.