<commit_before>package seedu.address.commons.util;

import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;

import seedu.task.commons.util.NotificationUtil;

//@@author A0141928B
/**
  * Tests for NotificationUtil
 */
public class NotificationUtilTest {

    @Rule
    public ExpectedException thrown = ExpectedException.none();

    @Test
    public void displayNotification_withDescription() {
        //Will fail on non-Windows OS
        if (!System.getProperty("os.name").startsWith("Windows")) {
            thrown.expect(UnsupportedOperationException.class);
        }
        NotificationUtil.displayNotification("description");
    }

    @Test
    public void displayNotification_noDescription_assertionError() {
        //Will fail on non-Windows OS
        if (!System.getProperty("os.name").startsWith("Windows")) {
            thrown.expect(UnsupportedOperationException.class);
        }
        thrown.expect(AssertionError.class);
        NotificationUtil.displayNotification("");
    }

}
<commit_msg>Only let NotificationUtilTest.java run on Windows<commit_after>package seedu.address.commons.util;

import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;

import seedu.task.commons.util.NotificationUtil;

//@@author A0141928B
/**
  * Tests for NotificationUtil
 */
public class NotificationUtilTest {

    @Rule
    public ExpectedException thrown = ExpectedException.none();

    @Test
    public void displayNotification_withDescription() {
        //Only works on Windows OS
        if (System.getProperty("os.name").startsWith("Windows")) {
            NotificationUtil.displayNotification("description");
        }
    }

    @Test
    public void displayNotification_noDescription_assertionError() {
        //Only works on Windows OS
        if (System.getProperty("os.name").startsWith("Windows")) {
            thrown.expect(AssertionError.class);
            NotificationUtil.displayNotification("");
        }
    }

}

{'fraction_non_alphanumeric': 0.1076388888888889, 'fraction_numerical': 0.006944444444444444, 'mean_word_length': 3.300639658848614, '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': '5629111', 'n_tokens_mistral': 541, 'n_tokens_neox': 533, 'n_words': 103}