@@ -0,0 +1,910 @@
+package com.yuzhouwan.hacker.effective;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0A/**%0A * Copyright @ 2017 yuzhouwan.com%0A * All right reserved.%0A * Function%EF%BC%9AString Stuff Test%0A *%0A * @author Benedict Jin%0A * @since 2017/6/30%0A */%0Apublic class StringStuffTest %7B%0A%0A    @Test%0A    public void equalsNullPointException() throws Exception %7B%0A        String normal = %22yuzhouwan.com%22, unmoral = null;%0A        try %7B%0A            if (normal.equals(%22yuzhouwan.com%22) && unmoral.equals(%22%22)) %7B     // bad habit%0A            %7D%0A        %7D catch (Exception e) %7B%0A            System.out.println(%22Will throw NullPointException!%22);%0A            assertEquals(true, e instanceof NullPointerException);%0A        %7D%0A%0A        boolean equals = false;%0A        if (%22yuzhouwan.com%22.equals(normal) %7C%7C %22%22.equals(unmoral)) %7B         // good habit%0A            equals = true;%0A        %7D%0A        assertEquals(true, equals);%0A    %7D%0A%7D%0A

Add equalsNullPointException() testcase