Examples of contents()


Examples of org.apache.aurora.scheduler.log.Log.Entry.contents()

    Entry snapshotEntry = createMock(Entry.class);
    expect(stream.append(entryEq(deflatedSnapshotEntry))).andReturn(position1);
    stream.truncateBefore(position1);

    expect(snapshotEntry.contents()).andReturn(encode(deflatedSnapshotEntry));

    expect(stream.readAll()).andReturn(ImmutableList.of(snapshotEntry).iterator());

    Closure<LogEntry> reader = createMock(new Clazz<Closure<LogEntry>>() { });
    reader.execute(snapshotLogEntry);
View Full Code Here

Examples of org.apache.aurora.scheduler.log.Log.Entry.contents()

        createTransaction(Op.saveFrameworkId(new SaveFrameworkId(frameworkId1)));
    String frameworkId2 = "jim";
    LogEntry recoveredEntry2 =
        createTransaction(Op.saveFrameworkId(new SaveFrameworkId(frameworkId2)));
    expect(entry1.contents()).andReturn(ThriftBinaryCodec.encodeNonNull(recoveredEntry1));
    expect(entry2.contents()).andReturn(ThriftBinaryCodec.encodeNonNull(recoveredEntry2));
    expect(stream.readAll()).andReturn(Iterators.forArray(entry1, entry2));

    final Capture<MutateWork<Void, RuntimeException>> recoveryWork = createCapture();
    expect(storageUtil.storage.write(capture(recoveryWork))).andAnswer(
        new IAnswer<Void>() {
View Full Code Here

Examples of org.fest.swing.fixture.JComboBoxFixture.contents()

    @Test
    public void showOpenFileDisplaysSupportedFormats() throws Exception {
        showOpenDialog(null, null);

        JComboBoxFixture comboBox = getFileFormatComboBox();
        final int N = comboBox.contents().length;
        for (int i = 0; i < N; i++) {
            JFileImageChooser.FormatFilter filter =
                    (JFileImageChooser.FormatFilter) comboBox.component().getItemAt(i);
           
            String suffix = filter.getDefaultSuffix();
View Full Code Here

Examples of org.fest.swing.fixture.JComboBoxFixture.contents()

    @Test
    public void showSaveFileDisplaysSupportedFormats() throws Exception {
        showSaveDialog(null, null);

        JComboBoxFixture comboBox = getFileFormatComboBox();
        final int N = comboBox.contents().length;
        for (int i = 0; i < N; i++) {
            JFileImageChooser.FormatFilter filter =
                    (JFileImageChooser.FormatFilter) comboBox.component().getItemAt(i);
           
            String suffix = filter.getDefaultSuffix();
View Full Code Here

Examples of org.fest.swing.fixture.JListFixture.contents()

  @Test
  public void testRemoveColli() {
    dialogFixture.requireVisible();
    dialogFixture.button("ButtonRemoveColli").requireDisabled();
    JListFixture listFixture = dialogFixture.list("ListCollies");
    String[] content = listFixture.contents();
    int size = content.length;
    newColliName = "kolli_" + (size + 1);
    dialogFixture.button("ButtonAddColli").click();

    DialogFixture optionDialog = WindowFinder.findDialog("Kollioppsett")
View Full Code Here

Examples of org.fest.swing.fixture.JListFixture.contents()

        windowFixture.robot.waitForIdle();

        // Note: there may be more than one list item if the code
        // we just typed is also the start of longer codes or if the
        // code string happens to appear in descriptive text
        String[] items = list.contents();
        for (String item : items) {
            assertTrue(item.toLowerCase().contains(code));
        }
    }
View Full Code Here

Examples of org.fest.swing.fixture.JListFixture.contents()

        // Filter on the first few characters
        windowFixture.textBox().enterText(filterStr);
        windowFixture.robot.waitForIdle();

        // Check list contents
        for (String item : list.contents()) {
            assertTrue(item.toLowerCase().contains(filterStr));
        }
    }

    @Test
View Full Code Here

Examples of org.fest.swing.fixture.JTableFixture.contents()

        FrameWrapper library2 = guiHandler.openLibrary();
        JTableFixture table2 = library2.table();

        assertEquals(2, table.contents().length);
        assertEquals(0, table2.contents().length);

        guiHandler.cutCopyPastePatch(library, 0, 0, library2, false);

        assertEquals(1, table.contents().length);
        assertEquals(1, table2.contents().length);
View Full Code Here

Examples of org.omg.CORBA.Container.contents()

    public org.jacorb.ir.gui.typesystem.ModelParticipant[] contents ()
    {
    Container container =
            ContainerHelper.narrow((org.omg.CORBA.Object)this.irObject);
    Contained[] contents =
            container.contents(DefinitionKind.dk_all, true);

    org.jacorb.ir.gui.typesystem.TypeSystemNode[] result =
            new org.jacorb.ir.gui.typesystem.TypeSystemNode[contents.length];

    for (int i=0; i<contents.length; i++)
View Full Code Here

Examples of org.omg.CORBA.Container.contents()

    public org.jacorb.ir.gui.typesystem.ModelParticipant[] contents ()
    {
    Container container =
            ContainerHelper.narrow((org.omg.CORBA.Object)this.irObject);
    Contained[] contents =
            container.contents(DefinitionKind.dk_all, true);

    org.jacorb.ir.gui.typesystem.TypeSystemNode[] result =
            new org.jacorb.ir.gui.typesystem.TypeSystemNode[contents.length];

    for (int i=0; i<contents.length; i++)
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.