Code Search for Developers
 
 
  

SimpleCachinePage.java from MASE: Agile Software Engineering at Krugle


Show SimpleCachinePage.java syntax highlighted

// Copyright (C) 2003,2004,2005 by Object Mentor, Inc. All rights reserved.
// Released under the terms of the GNU General Public License version 2 or later.
package ca.ucalgary.cpsc.ebe.fitClipse.render.testutil;


import java.util.Date;

import ca.ucalgary.cpsc.ebe.fitClipse.render.wiki.*;

public class SimpleCachinePage extends CachingPage
{
	private PageData data;

	public SimpleCachinePage(String name, WikiPage parent) throws Exception
	{
		super(name, parent);
	}

	public boolean hasChildPage(String pageName) throws Exception
	{
		return hasCachedSubpage(pageName);
	}

	protected WikiPage createChildPage(String name) throws Exception
	{
		return new SimpleCachinePage(name, this);
	}

	protected void loadChildren() throws Exception
	{
	}

	protected PageData makePageData() throws Exception
	{
		if(data == null)
			return new PageData(this, "some content");
		else
			return new PageData(data);
	}

	protected VersionInfo makeVersion() throws Exception
	{
		return new VersionInfo("abc", "Jon", new Date());
	}

	protected void doCommit(PageData data) throws Exception
	{
		this.data = data;
	}

	public PageData getDataVersion(String versionName) throws Exception
	{
		return new PageData(this, "content from version " + versionName);
	}
}




See more files for this project here

MASE: Agile Software Engineering

The MASE project investigates methods to support the coordination and executable acceptance testing of software projects. Keywords: Agile methods, distributed teams, Extreme Programming. See http://ebe.cpsc.ucalgary.ca/ebe for more information.

Project homepage: http://sourceforge.net/projects/mase
Programming language(s): Java,XML
License: other

  AllTestSuite.java
  CartesianVector.java
  CartesianVectorTest.java
  ClassNotFoundThrownInConstructor.java
  CrashFixture.java
  DummyClassForWizardTest.java
  Echo.java
  EchoFixture.java
  ErrorFixture.java
  ErrorWritingFixture.java
  FailFixture.java
  IgnoreFixture.java
  MockExtendableWikiPage.java
  MockSocket.java
  OutputWritingFixture.java
  PassFixture.java
  RegexTest.java
  SimpleCachinePage.java
  SimpleExtension.java
  TestSuiteMaker.java
  VectorSum.java