@Test public void testTrackContentInteraction_invalid_name_null() throws Exception { int errorCount = 0; try { track().interaction(null, "test").piece("test").target("test2").build(); } catch (IllegalArgumentException e) { errorCount++; } try { track().interaction("test", null).piece("test").target("test2").build(); } catch (IllegalArgumentException e) { errorCount++; } try { track().interaction(null, null).piece("test").target("test2").build(); } catch (IllegalArgumentException e) { errorCount++; } assertThat(errorCount, is(3)); }
@Test public void testTrackContentInteraction_invalid_name_empty() throws Exception { int errorCount = 0; try { track().interaction("", "test").piece("test").target("test2").build(); } catch (IllegalArgumentException e) { errorCount++; } try { track().interaction("test", "").piece("test").target("test2").build(); } catch (IllegalArgumentException e) { errorCount++; } try { track().interaction("", "").piece("test").target("test2").build(); } catch (IllegalArgumentException e) { errorCount++; } assertThat(errorCount, is(3)); }
@Test public void testTrackContentInteraction_invalid_name_null() throws Exception { int errorCount = 0; try { track().interaction(null, "test").piece("test").target("test2").build(); } catch (IllegalArgumentException e) { errorCount++; } try { track().interaction("test", null).piece("test").target("test2").build(); } catch (IllegalArgumentException e) { errorCount++; } try { track().interaction(null, null).piece("test").target("test2").build(); } catch (IllegalArgumentException e) { errorCount++; } assertThat(errorCount, is(3)); }
@Test public void testTrackContentInteraction_invalid_name_empty() throws Exception { int errorCount = 0; try { track().interaction("", "test").piece("test").target("test2").build(); } catch (IllegalArgumentException e) { errorCount++; } try { track().interaction("test", "").piece("test").target("test2").build(); } catch (IllegalArgumentException e) { errorCount++; } try { track().interaction("", "").piece("test").target("test2").build(); } catch (IllegalArgumentException e) { errorCount++; } assertThat(errorCount, is(3)); }