@Test public void addBlockTypeNull() { NullPointerException npe = assertThrows(NullPointerException.class, () -> builder.add((BlockType) null)); assertTrue(npe.getMessage().contains("Must provide a blockType")); }
public HtmlLanguageBuilder add(BlockType blockType) { blockTypes.add(requireNonNull(blockType, "Must provide a blockType")); return this; }
HtmlLanguageBuilder { public HtmlLanguageBuilder add(BlockType blockType) { blockTypes.add(requireNonNull(blockType, "Must provide a blockType")); return this; } }
HtmlLanguageBuilder { public HtmlLanguageBuilder add(BlockType blockType) { blockTypes.add(requireNonNull(blockType, "Must provide a blockType")); return this; } HtmlLanguageBuilder(); }
HtmlLanguageBuilder { public HtmlLanguageBuilder add(BlockType blockType) { blockTypes.add(requireNonNull(blockType, "Must provide a blockType")); return this; } HtmlLanguageBuilder(); HtmlLanguageBuilder name(String name); HtmlLanguageBuilder add(BlockType blockType); HtmlLanguageBuilder add(SpanType spanType); HtmlLanguageBuilder addSubstitution(SpanType spanType, String alternativeTagName); HtmlLanguageBuilder addHeadings(int level); HtmlLanguageBuilder addSpanFont(); HtmlLanguageBuilder setXhtmlStrict(boolean xhtmlStrict); HtmlLanguageBuilder document(String prefix, String suffix); HtmlLanguageBuilder setSupportsImages(boolean supportsImages); HtmlLanguage create(); }
HtmlLanguageBuilder { public HtmlLanguageBuilder add(BlockType blockType) { blockTypes.add(requireNonNull(blockType, "Must provide a blockType")); return this; } HtmlLanguageBuilder(); HtmlLanguageBuilder name(String name); HtmlLanguageBuilder add(BlockType blockType); HtmlLanguageBuilder add(SpanType spanType); HtmlLanguageBuilder addSubstitution(SpanType spanType, String alternativeTagName); HtmlLanguageBuilder addHeadings(int level); HtmlLanguageBuilder addSpanFont(); HtmlLanguageBuilder setXhtmlStrict(boolean xhtmlStrict); HtmlLanguageBuilder document(String prefix, String suffix); HtmlLanguageBuilder setSupportsImages(boolean supportsImages); HtmlLanguage create();  }