<commit_before>package com.mysema.query.lucene;

import static org.junit.Assert.*;

import org.apache.lucene.index.Term;
import org.apache.lucene.search.TermQuery;
import org.junit.Test;


public class QueryElementTest {

    @Test
    public void test(){
        QueryElement element = new QueryElement(new TermQuery(new Term("str","text")));
        assertEquals("str:text",element.toString());
        assertEquals(element.getQuery().hashCode(), element.hashCode());
    }<commit_msg>improved tests<commit_after>package com.mysema.query.lucene;

import static org.junit.Assert.*;

import org.apache.lucene.index.Term;
import org.apache.lucene.search.TermQuery;
import org.junit.Test;


public class QueryElementTest {

    @Test
    public void test(){
        QueryElement element = new QueryElement(new TermQuery(new Term("str","text")));        
        assertEquals("str:text",element.toString());
        assertEquals(element.getQuery().hashCode(), element.hashCode());
        
        QueryElement element2 = new QueryElement(new TermQuery(new Term("str","text")));
        assertEquals(element2, element);
    }
{'fraction_non_alphanumeric': 0.13458110516934046, 'fraction_numerical': 0.0017825311942959, 'mean_word_length': 4.013392857142857, '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': '6027625', 'n_tokens_mistral': 322, 'n_tokens_neox': 312, 'n_words': 63}