Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Styling for the article list and detail views (bootstrap-based)*/ | |
.articleList article:not(:first-child), .articleList .pager { | |
border-top: 4px solid #f5f5f5; | |
} | |
.articleList .pagination li { | |
border: none; | |
padding: 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package example.wcm.vpscopedaction; | |
import com.ibm.workplace.wcm.api.Category; | |
import com.ibm.workplace.wcm.api.Repository; | |
import com.ibm.workplace.wcm.api.VirtualPortalContext; | |
import com.ibm.workplace.wcm.api.exceptions.WCMException; | |
/** | |
* Hypothetical Portlet that runs the query against a VP to fetch Categories. | |
* This can be a servlet or REST service as well. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sample.wcm.query.portlet; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import javax.portlet.GenericPortlet; | |
import javax.portlet.PortletException; | |
import javax.portlet.PortletRequestDispatcher; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package thecodingglass.testing.postloginsamples; | |
import static org.unitils.reflectionassert.ReflectionAssert.assertLenientEquals; | |
import java.util.HashMap; | |
import java.util.Map; | |
import org.junit.Test; | |
/** | |
* Shows how you can grab/verify that your stuff is populated on the Subject. In the real world the unit tests will test some unit of code |