<commit_before>package org.opf_labs.project.healthcheck;

import static org.junit.Assert.*;

import org.junit.Test;

/**
 * Unit tests for ProjectMetadata class.
 * 
 * @author  <a href="mailto:<EMAIL>"><NAME></a>.</p>
 *          <a href="https://github.com/carlwilson">carlwilson AT github</a>.</p>
 * @version 0.1
 * 
 * Created 10 Jul 2013:14:43:40
 */
public class ProjectMetadataTest {

	@Test
	public void testGetInstanceNullName() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public void testGetInstanceInputStream() {
		fail("Not yet implemented"); // TODO
	}

}<commit_msg>Implemented parameter tests for ProjectMetadata.<commit_after>package org.opf_labs.project.healthcheck;

import static org.junit.Assert.*;

import java.io.InputStream;

import org.junit.Test;

/**
 * Unit tests for ProjectMetadata class.
 * 
 * @author  <a href="mailto:<EMAIL>"><NAME></a>.</p>
 *          <a href="https://github.com/carlwilson">carlwilson AT github</a>.</p>
 * @version 0.1
 * 
 * Created 10 Jul 2013:14:43:40
 */
public class ProjectMetadataTest {

	/**
	 * Null name test for {@link org.opf_labs.project.healthcheck.ProjectMetadata#getInstance(String, String)}
	 */
	@Test(expected=NullPointerException.class)
	public void testGetInstanceNullName() {
		ProjectMetadata.getInstance(null, "vendor");
	}

	/**
	 * Null vendor test for {@link org.opf_labs.project.healthcheck.ProjectMetadata#getInstance(String, String)}
	 */
	@Test(expected=NullPointerException.class)
	public void testGetInstanceNullVendor() {
		ProjectMetadata.getInstance("name", null);
	}

	/**
	 * Empty name test for {@link org.opf_labs.project.healthcheck.ProjectMetadata#getInstance(String, String)}
	 */
	@Test(expected=IllegalArgumentException.class)
	public void testGetInstanceEmptyName() {
		ProjectMetadata.getInstance("", "vendor");
	}

	/**
	 * Empty vendor test for {@link org.opf_labs.project.healthcheck.ProjectMetadata#getInstance(String, String)}
	 */
	@Test(expected=IllegalArgumentException.class)
	public void testGetInstanceEmptyVendor() {
		ProjectMetadata.getInstance("name", "");
	}

	/**
	 * Null name test for {@link org.opf_labs.project.healthcheck.ProjectMetadata#getInstance(InputStream)}
	 */
	@Test(expected=NullPointerException.class)
	public void testGetInstanceInputStreamNull() {
		ProjectMetadata.getInstance(null);
	}

}
{'fraction_non_alphanumeric': 0.14249037227214378, 'fraction_numerical': 0.01198117244330338, 'mean_word_length': 4.845, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 2, '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': '7664551', 'n_tokens_mistral': 769, 'n_tokens_neox': 710, 'n_words': 140}