{"[2]", "[{ \"tagName\" : \"pouet\" }, { \"tagName\" : \"paf\" }]"}}); editionTreeTable.selectCell(TableCell.row(3).column(1)); mongoEditionPanel.addValue("refactor"); editionTreeTable.requireContents(new String[][]{
@Test public void addKeyWithSomeValue() { mongoEditionPanel.updateEditionTree( new Document("_id", new ObjectId("50b8d63414f85401b9268b99")) .append("label", "toto") .append("visible", false) .append("image", null)); frameFixture = Containers.showInFrame(mongoEditionPanel); JTableFixture editionTreeTable = frameFixture.table("editionTreeTable"); editionTreeTable.replaceCellReader(new JsonTableCellReader()); editionTreeTable.selectCell(TableCell.row(1).column(1)); mongoEditionPanel.addKey("stringKey", "pouet"); editionTreeTable.selectCell(TableCell.row(1).column(1)); mongoEditionPanel.addKey("numberKey", "1.1"); editionTreeTable.requireContents(new String[][]{ {"_id", "50b8d63414f85401b9268b99"}, {"label", "toto"}, {"visible", "false"}, {"image", "null"}, {"stringKey", "pouet"}, {"numberKey", "1.1"}, }); }
/** * Simulates a user selecting this fixture's table cell. * * @return this fixture. * @throws IllegalStateException if this fixture's {@code JTable} is disabled. * @throws IllegalStateException if this fixture's {@code JTable} is not showing on the screen. */ @Override @Nonnull public JTableCellFixture select() { table.selectCell(cell()); return this; }