<commit_before>package edu.cmu.sv.ws.ssnoc.test;

import static com.eclipsesource.restfuse.Assert.*;

import edu.cmu.sv.ws.ssnoc.common.logging.Log;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.runner.RunWith;

import com.eclipsesource.restfuse.Destination;
import com.eclipsesource.restfuse.HttpJUnitRunner;
import com.eclipsesource.restfuse.MediaType;
import com.eclipsesource.restfuse.Method;
import com.eclipsesource.restfuse.Response;
import com.eclipsesource.restfuse.annotation.Context;
import com.eclipsesource.restfuse.annotation.HttpTest;


@RunWith(HttpJUnitRunner.class)
public class UserServiceIT {
	@Rule
	public Destination destination = new Destination(this,
			"http://localhost:8080/ssnoc");

	@Context
    public Response response;
    //List Users
	@HttpTest(method = Method.GET, path = "/users")
	public void testUsersFound() {
		assertOk(response);
	}
    //Failed Authenticate
	@HttpTest(method = Method.POST, path = "/user/IAManInvalidUser/authenticate", type = MediaType.APPLICATION_JSON,
			content = "{\"userName\":\"IAManInvalidUser\",\"password\":\"<PASSWORD>\"}")<commit_msg>Update UserServiceIT.java<commit_after>package edu.cmu.sv.ws.ssnoc.test;

import static com.eclipsesource.restfuse.Assert.*;

import edu.cmu.sv.ws.ssnoc.common.logging.Log;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.runner.RunWith;

import com.eclipsesource.restfuse.Destination;
import com.eclipsesource.restfuse.HttpJUnitRunner;
import com.eclipsesource.restfuse.MediaType;
import com.eclipsesource.restfuse.Method;
import com.eclipsesource.restfuse.Response;
import com.eclipsesource.restfuse.annotation.Context;
import com.eclipsesource.restfuse.annotation.HttpTest;


@RunWith(HttpJUnitRunner.class)
public class UserServiceIT {
	@Rule
	public Destination destination = new Destination(this,
			"http://localhost:1234/ssnoc");

	@Context
    public Response response;
    //List Users
	@HttpTest(method = Method.GET, path = "/users")
	public void testUsersFound() {
		assertOk(response);
	}
    //Failed Authenticate
	@HttpTest(method = Method.POST, path = "/user/IAManInvalidUser/authenticate", type = MediaType.APPLICATION_JSON,
			content = "{\"userName\":\"IAManInvalidUser\",\"password\":\"<PASSWORD>\"}")
{'fraction_non_alphanumeric': 0.12953138815207782, 'fraction_numerical': 0.0035366931918656055, 'mean_word_length': 5.484240687679083, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 5, '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': '10618', 'n_tokens_mistral': 792, 'n_tokens_neox': 759, 'n_words': 124}