* Test the User link
* @throws Exception
*/
public void testGroupPage2() throws Exception
{
JetspeedLink jetspeedLink = null;
// Create the RunData object to be used during testing.
RunData rundata = RunDataFactory.getRunData( request, response, config );
assertNotNull( "Got rundata", rundata);
TurbineTestUtilities.setupRunData(rundata);
// Get and populate the context
Context context = TurbineVelocity.getContext(rundata);
assertNotNull( "Got context", context);
TurbinePull.populateContext( context, rundata);
// Verify tool are in the context
JetspeedLink jsLink = (JetspeedLink) context.get("jslink");
assertNotNull( "Got jslink from context", jsLink);
// Generate the link
String link = jsLink.toString();
System.out.println("Group/Page Link = " + link);
// Generate the link from JetspeedLink
jetspeedLink = JetspeedLinkFactory.getInstance(rundata);
System.out.println("Group/Page jetspeedLink = " + jetspeedLink.toString());