@Test
	public void addmemtest() throws ClassNotFoundException, IOException{
		Member newmem2 = new Member("1234123","1234123","Ұ","ǻͰа");

		membercollectm.addmem(newmem2);
		int endnum =0;
		try{
			@SuppressWarnings("resource")
			ObjectInputStream osin = new ObjectInputStream(new FileInputStream("membercollection.txt"));
			endnum = osin.readInt(); 
			for(int i=0; i< osin.readInt();i++){
				Member ms = (Member)osin.readObject();
				if((endnum-1) == i){
					if( ms.ID.equals("1234123")&& ms.password.equals("1234123") && ms.name.equals("Ұ")&& ms.major.equals("ǻͰа"))
						assertTrue(true);
				}
			}
			assertTrue(false);
		}catch(Exception e){
		}
		assertEquals(endnum, membercollectm.memberCount); 
		assertEquals("1234123", membercollectm.collectionm.elementAt(endnum-1).ID);
	}