SelectDeploymentTargetsDialogTable extends JBTable { @Override public void setModel(@NotNull TableModel model) { super.setModel(model); if (tableHeader == null) { return; } setSelectedAndIconColumnMaxWidthsToFit(); } SelectDeploymentTargetsDialogTable(); @Override void setModel(@NotNull TableModel model); @Override void createDefaultColumnsFromModel();  }
@Test public void setModel() { Device device = new PhysicalDevice.Builder() .setName("LGE Nexus 5X") .setKey(new Key("00fff9d2279fa601")) .setAndroidDevice(Mockito.mock(AndroidDevice.class)) .build(); TableModel model = new SelectDeploymentTargetsDialogTableModel(Collections.singletonList(device), table); table.setModel(model); Object data = Arrays.asList( Arrays.asList("", "Type", "Device"), Arrays.asList(false, device.getIcon(), "LGE Nexus 5X")); assertEquals(data, table.getData()); }