Click here to Skip to main content
15,867,488 members
Articles / Programming Languages / Java

Ajaxion - Standalone AJAX - Part 2 of 2 - C# and Java Example

Rate me:
Please Sign up or sign in to vote.
4.97/5 (34 votes)
22 Jan 2013CPOL5 min read 55K   1.4K   42  
An article about how to keep AJAX simple as it is and get the most out of it.
package test.pw.log;

import junit.framework.TestCase;

import junit.swingui.TestRunner;

import pw.log.FileLog;
import pw.log.FileLog;

public class FileLogTest
	extends TestCase
{
	FileLog fixture1 = new FileLog();

	public FileLogTest(String sTestName)
	{
		super(sTestName);
	}
	
	/**
	 * @see FileLog#getFileName()
	 */
	public void testGetFileName()
	{
		assertNotNull("getFileName() returned null", fixture1.getFileName());
	}

	/**
	 * @see FileLog#Write(String,String)
	 */
	public void testWrite()
	{
	   assertNotNull(FileLog.Write("", ""));
	}

	/**
	 * @see FileLog#WriteLn(String,String)
	 */
	public void testWriteLn()
	{
	   assertNotNull(FileLog.WriteLn("", ""));
	}

	/**
	 * @see FileLog#write(String,String)
	 */
	public void testWrite1()
	{
	   assertNull(fixture1.getFileName(), fixture1.write(fixture1.getFileName()));
	}

	/**
	 * @see FileLog#writeLn(String,String)
	 */
	public void testWriteLn1()
	{
	   assertNull(fixture1.getFileName(), fixture1.writeLn(fixture1.getFileName()));
	}

	/**
	 * @see FileLog#write(String)
	 */
	public void testWrite2()
	{
	   assertNull(fixture1.write(fixture1.getFileName()));
	}

	/**
	 * @see FileLog#writeLn(String)
	 */
	public void testWriteLn2()
	{
	   assertNull(fixture1.writeLn(fixture1.getFileName()));
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
New Zealand New Zealand
Coder

Comments and Discussions