<commit_before>package com.boundary.sdk;

import static org.junit.Assert.*;

import org.junit.Test;

import com.boundary.sdk.RawEvent;
import com.boundary.sdk.RawEvent.Severity;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;

public class TestRawEvent {
	
	private RawEvent event;
	
	public void setup() {
		
	}
	
	

	/**
	 * Test default constructor
	 */
	@Test
	public void testNullEvent() {
		RawEvent event = new RawEvent();
		assertNotNull(event);
	}

	@Test
	public void testTitle() {
		String expectedTitle = "My Message";
		event = new RawEvent();
		event.setTitle(expectedTitle);
		assertEquals(event.getTitle(),expectedTitle);
		
	}
	
	@Test
	public void testSource() {
		Source source = new Source();
		String aRef = "stimpy.nick.com";
		String aType = "host";
		String aName = "ren";
		source.setRef(aRef);
		source.setType(aType);
		source.setName(aName);
		
		assertEquals(aRef,source.getRef());
	}
	
	/**
	 * Test default values of Events
	 */
	@Test
	public void testDefaultConstructor() {
		RawEvent event = new RawEvent();
		
		assertNull(event.getTitle());
		assertNull(event.getFingerprintFields());
		assertNull(event.getSource());
	}
	
	@Test
	public void testNoArgConstructor() {
		RawEvent event = new RawEvent();<commit_msg>Make correct calls in test<commit_after>package com.boundary.sdk;

import static org.junit.Assert.*;

import org.junit.Test;

import com.boundary.sdk.RawEvent;
import com.boundary.sdk.RawEvent.Severity;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;

public class TestRawEvent {
	
	private RawEvent event;
	
	public void setup() {
		
	}
	
	

	/**
	 * Test default constructor
	 */
	@Test
	public void testNullEvent() {
		RawEvent event = new RawEvent();
		assertNotNull(event);
	}

	@Test
	public void testTitle() {
		String expectedTitle = "My Message";
		event = new RawEvent();
		event.setTitle(expectedTitle);
		assertEquals(event.getTitle(),expectedTitle);
		
	}
	
	@Test
	public void testSource() {
		RawEvent e = new RawEvent();
		RawEvent.Source source = e.new Source();
		String aRef = "stimpy.nick.com";
		String aType = "host";
		String aName = "ren";
		source.setRef(aRef);
		source.setType(aType);
		source.setName(aName);
		
		assertEquals(aRef,source.getRef());
	}
	
	/**
	 * Test default values of Events
	 */
	@Test
	public void testDefaultConstructor() {
		RawEvent event = new RawEvent();
		
		assertNull(event.getTitle());
		assertNull(event.getFingerprintFields());
		assertNull(event.getSource());
	}
	
	@Test
	public void testNoArgConstructor() {
		RawEvent event = new RawEvent();
{'fraction_non_alphanumeric': 0.126862820022927, 'fraction_numerical': 0.0, 'mean_word_length': 3.99618320610687, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4619890', 'n_tokens_mistral': 933, 'n_tokens_neox': 829, 'n_words': 199}