use of com.twosigma.beakerx.widget.Accordion in project beakerx by twosigma.
the class AccordionTest method setTitle_shouldSendCommMessage.
@Test
public void setTitle_shouldSendCommMessage() throws Exception {
int index = 1;
// given
Accordion accordion = new Accordion(children);
// when
accordion.set_title(index, "first");
// then
Message titlesMessage = SearchMessages.getListMessagesByType(kernel.getPublishedMessages(), JupyterMessages.COMM_MSG).get(0);
Map titles = (Map) getValueForProperty(titlesMessage, Accordion.TITLES, Object.class);
Assertions.assertThat(titles.get(index)).isEqualTo("first");
}
use of com.twosigma.beakerx.widget.Accordion in project beakerx by twosigma.
the class AccordionTest method setTitle_hasThatTitle.
@Test
public void setTitle_hasThatTitle() throws Exception {
int index = 1;
// given
Accordion accordion = new Accordion(children);
// when
accordion.set_title(index, "first");
// then
Assertions.assertThat(accordion.get_title(index)).isEqualTo("first");
}
Aggregations