<commit_before>package app.tests;

import app.product.ProductDao;
import app.product.Products;
import app.shoppingcart.shoppingcartDAO;
import org.junit.Assert;
import org.junit.Test;

/**
 * Created by Samuel on 02-02-17.
 */
public class IntegrationTests {

    @Test
    public void loginPost() {
        String name1="1";
        String name2="Pieter";
        ProductDao.products.add(new Products(name1, name2, name2, name2, name2, name2));
        Products result2 = ProductDao.getProductByID("1");
        Assert.assertEquals(new Products(name1, name2, name2, name2, name2, name2), result2);

    }

    @Test
    public void shoppingCartTest() {
        String name5="onno";
        String result3 = shoppingcartDAO.addProductToCart(name5);
        Assert.assertEquals(name5, result3);

    }
}<commit_msg>Testen<commit_after>package app.tests;

import app.product.ProductDao;
import app.product.Products;
import org.junit.Assert;
import org.junit.Test;

import static app.shoppingcart.shoppingcartDAO.addProductToCart;

/**
 * Created by Samuel on 02-02-17.
 */
public class IntegrationTests {

    @Test
    public void loginPost() {
        String name1="1";
        String name2="Pieter";
        ProductDao.products.add(new Products(name1, name2, name2, name2, name2, name2));
        Products result2 = ProductDao.getProductByID("1");
        Assert.assertEquals(new Products(name1, name2, name2, name2, name2, name2), result2);

    }

    @Test
    public void shoppingCartTest() {
        String name5="onno";
        String result3 = addProductToCart(name5);
        Assert.assertEquals(name5, result3);

    }
}
{'fraction_non_alphanumeric': 0.11533742331288344, 'fraction_numerical': 0.03558282208588957, 'mean_word_length': 3.3726541554959786, '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': '1360940', 'n_tokens_mistral': 526, 'n_tokens_neox': 512, 'n_words': 115}