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

import static org.junit.Assert.*;

import java.util.Collection;

import javax.persistence.ElementCollection;
import javax.persistence.Embeddable;
import javax.persistence.Entity;

import org.junit.Test;

public class EmbeddableInterfaceTest {

    @Entity
    public class EntityClass {
        
        @ElementCollection(targetClass=EmbeddableClass.class)
        Collection<EmbeddableInterface> children;
        
    }
        
    @Embeddable
    public interface EmbeddableInterface {
        
    }
    
    @Embeddable
    public class EmbeddableClass implements EmbeddableInterface {
        
    }
    
    @Test
    public void test() {
        assertEquals(
            QEmbeddableInterfaceTest_EmbeddableInterface.class, 
            QEmbeddableInterfaceTest_EntityClass.entityClass.children.any().getClass());
    }
    
}<commit_msg>updated APT tests<commit_after>package com.mysema.query.domain;

import static org.junit.Assert.*;

import java.util.Collection;

import javax.persistence.ElementCollection;
import javax.persistence.Embeddable;
import javax.persistence.Entity;

import org.junit.Test;

public class EmbeddableInterfaceTest {

    @Entity
    public class EntityClass {
        
        @ElementCollection(targetClass=EmbeddableClass.class)
        Collection<EmbeddableInterface> children;
        
    }
        
    @Embeddable
    public interface EmbeddableInterface {
     
        String getName();
    }
    
    @Embeddable
    public class EmbeddableClass implements EmbeddableInterface {

        @Override
        public String getName() {
            return null;
        }
        
    }
    
    @Test
    public void Type() {
        assertEquals(
            QEmbeddableInterfaceTest_EmbeddableInterface.class, 
            QEmbeddableInterfaceTest_EntityClass.entityClass.children.any().getClass());
    }
    
    @Test
    public void Properties() {
        assertNotNull(QEmbeddableInterfaceTest_EmbeddableInterface.embeddableInterface.name);
        assertNotNull(QEmbeddableInterfaceTest_EmbeddableClass.embeddableClass.name);
    }
    
}
{'fraction_non_alphanumeric': 0.07099486221391874, 'fraction_numerical': 0.0, 'mean_word_length': 2.7447552447552446, 'pattern_counts': {'":': 0, '<': 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': '262068', 'n_tokens_mistral': 607, 'n_tokens_neox': 588, 'n_words': 100}