<commit_before>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package test;

import Login.LoginController;
import foodmood.controller.NavigationCntl;

/**
 *
 * @author HannahGarthwaite
 */
public class LoginTest {
    public LoginTest() {
        LoginController theLoginController = new LoginController();
        if(theLoginController != null) {
            System.out.println("The Login Controller was created.");
        }
        if(theLoginController.authenticateUserCredentials("correct", new char[5])){
            System.out.println("The Login Controller successfully authenticated user.");
        }else{
            System.out.println("The Login Controller failed to authenticate user.");
        }
        if(theLoginController.authenticateUserCredentials("incorrect", new char[5])){
            System.out.println("The Login Controller successfully denied access.");
        }else{
            System.out.println("The Login Controller incorrectly logged a user in.");
        }
        
        theLoginController.login();
        System.out.println("The Navigation Controller was created by Login Control.");
        
        NavigationTest theNavigationTest = new NavigationTest();
        
    }
}<commit_msg>Implemented some stubs<commit_after>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package test;

import Login.LoginController;
import Login.LoginView;
import foodmood.controller.NavigationCntl;

/**
 *
 * @author HannahGarthwaite
 */
public class LoginTest {
    public LoginTest() {
        LoginController theLoginController = new LoginController();
        if(theLoginController != null) {
            System.out.println("The Login Controller was created.");
        }
        
        String username = "correct";
        char[] password = "password".toCharArray();
        char[] incorrectPassword = "<PASSWORD>".toCharArray();
        
                
        LoginView theLoginView = new LoginView(theLoginController);
        theLoginView.enterCredentialsFromSavedValues(username, incorrectPassword);
        System.out.println("Incorrect user credentials entered in LoginView");
        theLoginView.submitUserCredentials();
        System.out.println("Incorrect user credentials sent for login");
        
        theLoginView.enterCredentialsFromSavedValues(username, incorrectPassword);
        System.out.println("Correct user credentials entered in LoginView");
        theLoginView.submitUserCredentials();
        System.out.println("Correct user credentials sent for login");
        
        if(theLoginController.authenticateUserCredentials(username, password)){
            System.out.println("The Login Controller successfully authenticated user.");
        }else{
            System.out.println("The Login Controller failed to authenticate user.");
        }
        if(theLoginController.authenticateUserCredentials(username, incorrectPassword)){
            System.out.println("The Login Controller successfully denied access.");
        }else{
            System.out.println("The Login Controller incorrectly logged a user in.");
        }
        
        theLoginController.login();
        System.out.println("The Navigation Controller was created by Login Control.");
        
        NavigationTest theNavigationTest = new NavigationTest();
        
    }
}
{'fraction_non_alphanumeric': 0.09078251183514341, 'fraction_numerical': 0.000556947925368978, 'mean_word_length': 2.9472527472527474, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2324532', 'n_tokens_mistral': 837, 'n_tokens_neox': 826, 'n_words': 243}