<commit_before>package ca.mcgill.mymcgill.test;

import java.util.List;

import org.junit.Test;

import android.test.ActivityInstrumentationTestCase2;
import ca.mcgill.mymcgill.activity.ScheduleActivity;
import ca.mcgill.mymcgill.activity.LoginActivity;
//import widget.
import android.widget.TextView;
import ca.mcgill.mymcgill.object.CourseSched;
import ca.mcgill.mymcgill.object.Day;

public class ScheduleTest extends ActivityInstrumentationTestCase2<ScheduleActivity> {
	public ScheduleActivity schedActivityClass;
	public TextView usernameView;
	public TextView passwordView;
		
	@SuppressWarnings("deprecation")
	public ScheduleTest() {
		super("ca.mcgill.mymcgill.activity", ScheduleActivity.class);
	}
		
	@Override
	protected void setUp() throws Exception{
		super.setUp();
		schedActivityClass = this.getActivity();
		
		String username = "";
		String password = "";
		
		usernameView.setText(username);
		passwordView.setText(password);
	}
		
	@Test
	public void testGetCoursesForDay(){
		List<CourseSched> courses = schedActivityClass.getCoursesForDay(Day.TUESDAY);
		CourseSched course = new CourseSched(738, "COMP 421", "001", 'T', 11, 30, 13, 0, "Rutherford Physics Building 112", "<NAME>", "Database Systems", "3.000", "Lecture");
		System.out.println(courses.get(0));
		System.out.println(course);
		assertEquals(courses.get(0), course);
		assertTrue(true);
	}
		
	@Override
	protected void tearDown() throws Exception {
		super.tearDown();
	}<commit_msg>added unit tests to ScheduleTest class<commit_after>package ca.mcgill.mymcgill.test;

import java.util.List;

import org.junit.Test;

import android.test.ActivityInstrumentationTestCase2;
import ca.mcgill.mymcgill.activity.ScheduleActivity;
import ca.mcgill.mymcgill.object.CourseSched;
import ca.mcgill.mymcgill.object.Day;

public class ScheduleTest extends ActivityInstrumentationTestCase2<ScheduleActivity> {
	public ScheduleActivity schedActivityClass;
	public CourseSched course;
	public List<CourseSched> courses;
		
	@SuppressWarnings("deprecation")
	public ScheduleTest() {
		super("ca.mcgill.mymcgill.activity", ScheduleActivity.class);
	}
		
	@Override
	protected void setUp() throws Exception{
		super.setUp();
		schedActivityClass = this.getActivity();
	}
		
	@Test
	public void testGetCoursesForDay(){
		courses = schedActivityClass.getCoursesForDay(Day.TUESDAY);
		assertNotNull(courses);
	}
	
	@Test
	public void testCourseSched() throws Exception {
		course = new CourseSched(738, "COMP 421", "001", 'T', 11, 30, 13, 0, "Rutherford Physics Building 112", "<NAME>", "Database Systems", "3.000", "Lecture");
		assertNotNull(course);
	}
		
	@Override
	protected void tearDown() throws Exception {
		super.tearDown();
	}
{'fraction_non_alphanumeric': 0.1164079822616408, 'fraction_numerical': 0.019216555801921657, 'mean_word_length': 5.71712158808933, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5830858', 'n_tokens_mistral': 947, 'n_tokens_neox': 853, 'n_words': 182}