All pastes #10081 Raw Edit

dong

public java v1 · immutable
#10081 ·published 2005-04-22 14:29 UTC
rendered paste body
* TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */package edu.wpi.pm.db.dbapi;import java.sql.*;import junit.framework.Test;import junit.framework.TestCase;import junit.framework.TestSuite;/** * @author Olga Petrova	and Vinny Papia * * TODO To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */public class dbreportsTest extends TestCase{		public static Test suite() 	{	    return new TestSuite(dbreportsTest.class);    }		public static void main(String[] args) {	}		dbreports thing;	Statement stmt;		protected void setUp()    {        try {			super.setUp();		} catch (Exception e) {			// TODO Auto-generated catch block			e.printStackTrace();		}        thing = new dbreports();    }		public void testgetAverageNumber(){				int a = thing.getAverageNumber(new Timestamp(10000000), new Timestamp(310000000), 60);		assertEquals(a, 2);	}		public void testgetAverageCapacity(){				int b = thing.getAverageCapacity(new Timestamp(10000000), new Timestamp(310000000), 60);		assertEquals(b, 0);			}	}