<commit_before>/*

Copyright 2015 Team3ScandalouStopwatch

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

*/

package ca.ualberta.cs.scandaloutraveltracker.test;

import java.util.Arrays;
import java.util.Date;
import java.util.List;

import ca.ualberta.cs.scandaloutraveltracker.Claim;
import ca.ualberta.cs.scandaloutraveltracker.Expense;

import junit.framework.TestCase;

//JUnit tests for User Cases 4
public class ExpenseOverallTests extends TestCase {
	
	// Test UC 04.01.01
	// Test if expenses can be added to a claim successfully
	public void testCreateExpense() {
		//can change date type later since Date is deprecated
		Date date = new Date(2014,01,01);
		String category = "Air Fare";
		String description = "Flight to YEG";
		String description2 = "Flight from YEG";
		//can change type of amount later 
		double cost = 566;
		String currencyType = "CAD";
		
		Claim testClaim = new Claim();
		Expense testExpense = new Expense(date, category, description, cost, currencyType);
		Expense testExpense2 = new Expense(date, category, description2, cost, currencyType);<commit_msg>changed test value<commit_after>/*

Copyright 2015 Team3ScandalouStopwatch

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

*/

package ca.ualberta.cs.scandaloutraveltracker.test;

import java.util.Arrays;
import java.util.Date;
import java.util.List;

import ca.ualberta.cs.scandaloutraveltracker.Claim;
import ca.ualberta.cs.scandaloutraveltracker.Expense;

import junit.framework.TestCase;

//JUnit tests for User Cases 4
public class ExpenseOverallTests extends TestCase {
	
	// Test UC 04.01.01
	// Test if expenses can be added to a claim successfully
	public void testCreateExpense() {
		//can change date type later since Date is deprecated
		Date date = new Date(2014,01,01);
		String category = "Air Fare";
		String description = "Flight to YEG";
		String description2 = "Flight from YEG";
		//can change type of amount later 
		double cost = 56;
		String currencyType = "CAD";
		
		Claim testClaim = new Claim();
		Expense testExpense = new Expense(date, category, description, cost, currencyType);
		Expense testExpense2 = new Expense(date, category, description2, cost, currencyType);
{'fraction_non_alphanumeric': 0.07520713830465264, 'fraction_numerical': 0.01880178457616316, 'mean_word_length': 4.516695957820738, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '989505', 'n_tokens_mistral': 974, 'n_tokens_neox': 875, 'n_words': 365}