Source stringclasses 1
value | Date int32 2.01k 2.01k | Text stringlengths 3 15.9M | Token_count int32 1 2.44M |
|---|---|---|---|
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.category;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
public class CategoryKeyEqualsTest
extends AbstractEqualsTest
{
@Test
public void testEquals()
{
assert... | 178 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.category;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import junit.framework.TestCase;
import static org.junit.Assert.assertArrayEquals;
public class Ca... | 1,627 |
github-java-corpus | 2,012 | package com.enonic.cms.core.content.image;
/*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.InputStream;
import javax.imageio.ImageIO;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
impo... | 677 |
github-java-corpus | 2,012 | package com.enonic.cms.core.content.image;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import javax.imageio.ImageIO;
import org.junit.Before;
import org.junit.Test;
import org.springframework.core.io.ClassPathResource;
import junit.framework.Te... | 1,019 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.imports;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;
import org.jdom.Document;
import org.jdom.xpa... | 4,226 |
github-java-corpus | 2,012 | package com.enonic.cms.core.content.imports;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import junit.framework.Assert;
import com.enonic.cms.core.content.ContentEntity;
import com.enonic.cms.core.content.ContentKey;
import com.enon... | 1,324 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.imports;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.util.Map;
import org.junit.Before;
import org.junit.Test;
import com.enonic.c... | 3,505 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content;
import java.util.List;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* May 8, 2009
*/
public class ContentNativeLinkCollectorTest
{
@Test
public void testCollectContentLinks()
... | 797 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
public class ContentVersionKeyEqualsTest
extends AbstractEqualsTest
{
@Test
public void testEquals()
{
assertEq... | 182 |
github-java-corpus | 2,012 | package com.enonic.cms.core.content;
import org.mockito.Mockito;
import junit.framework.TestCase;
import com.enonic.cms.core.content.category.CategoryEntity;
import com.enonic.cms.store.dao.ContentDao;
public class ContentNameForCopiesResolverTest
extends TestCase
{
private final CategoryEntity category = n... | 844 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom.stringbased;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
import com.enonic.cms.core.content.contenttype.dataentryconfig.HtmlAreaDataEntryConfig;
import com.enonic.c... | 522 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom.stringbased;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
import com.enonic.cms.core.content.contenttype.dataentryconfig.TextDataEntryConfig;
import com.enonic.cms.c... | 513 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom.stringbased;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
import com.enonic.cms.core.content.contenttype.dataentryconfig.HtmlAreaDataEntryConfig;
import com.enonic.c... | 506 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom.stringbased;
import org.junit.Test;
import com.enonic.cms.core.content.contenttype.dataentryconfig.DataEntryConfig;
import com.enonic.cms.core.content.contenttype.dataentryconfig.TextDataEnt... | 417 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom.stringbased;
import java.util.Set;
import org.junit.Test;
import com.enonic.cms.core.content.ContentKey;
import com.enonic.cms.core.content.contentdata.InvalidContentDataException;
import c... | 1,658 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom.stringbased;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
import com.enonic.cms.core.content.contenttype.dataentryconfig.TextAreaDataEntryConfig;
import com.enonic.c... | 502 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom.stringbased;
import java.util.LinkedHashMap;
import org.junit.Test;
import com.enonic.cms.core.content.contenttype.dataentryconfig.DataEntryConfig;
import com.enonic.cms.core.content.conten... | 1,240 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom.stringbased;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
import com.enonic.cms.core.content.contenttype.dataentryconfig.TextAreaDataEntryConfig;
import com.enonic.c... | 502 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom.stringbased;
import org.junit.Test;
import com.enonic.cms.core.content.contenttype.dataentryconfig.DataEntryConfig;
import com.enonic.cms.core.content.contenttype.dataentryconfig.UrlDataEntr... | 437 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom.xmlbased;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
import com.enonic.cms.core.content.contentdata.custom.stringbased.HtmlAreaDataEntry;
import com.enonic.cms.cor... | 550 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom.xmlbased;
import org.jdom.Element;
import org.junit.Test;
import com.enonic.cms.core.content.contentdata.InvalidContentDataException;
import com.enonic.cms.core.content.contenttype.dataentry... | 948 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom;
import org.jdom.Document;
import org.joda.time.DateMidnight;
import org.junit.Before;
import org.junit.Test;
import com.enonic.cms.framework.xml.XMLDocumentFactory;
import com.enonic.cms.c... | 5,726 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom;
import org.junit.Test;
import com.enonic.esl.containers.ExtendedMap;
import static org.junit.Assert.*;
public class FormItemEntriesGroupTest
{
@Test
public void testOrder()
{... | 503 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom;
import java.io.IOException;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.joda.time.DateTime;
import org.junit.Before;
import org.junit.Test;
import com.enonic.cms.fra... | 1,462 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom;
import java.util.Iterator;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Apr 22, 2010
*/
public class BlockGroupDataEntriesTest
{
@Test
public void numberOfEntr... | 498 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom;
import org.jdom.Document;
import org.joda.time.DateMidnight;
import org.junit.Before;
import org.junit.Test;
import com.enonic.cms.framework.xml.XMLDocumentFactory;
import com.enonic.cms.c... | 5,884 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom.relationdataentrylistbased;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
import com.enonic.cms.core.content.ContentKey;
import com.enonic.cms.core.content.contentdat... | 374 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom;
import java.util.ArrayList;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
import com.enonic.cms.core.content.content... | 1,225 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import org.jdom.JDOMException;
import org.junit.Before;
import org.junit.Test;
import com.enonic.cms.core.conte... | 3,856 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom.contentkeybased;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
import com.enonic.cms.core.content.ContentKey;
import com.enonic.cms.core.content.contenttype.dataentry... | 304 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom;
import java.io.IOException;
import java.util.LinkedList;
import java.util.List;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.junit.Before;
import org.junit.Test;
imp... | 3,818 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom;
import org.junit.Before;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
import com.enonic.cms.core.content.contentdata.custom.stringbased.HtmlAreaDataEntry;
import co... | 1,235 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom.support;
import java.io.IOException;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.joda.time.DateTime;
import org.junit.Assert;
import org.juni... | 6,255 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom.support;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.UnsupportedEncodingExcep... | 6,334 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom;
import java.io.IOException;
import java.util.Date;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.joda.time.DateTime;
import org.junit.Before;
... | 7,453 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.custom;
import java.io.IOException;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.junit.Before;
import org.junit.Test;
import com.enonic.cms.framework.util.JDOMUtil;
import c... | 1,640 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.support;
import java.io.IOException;
import java.util.Collection;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.joda.time.DateTime;
import org.junit.A... | 8,652 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.support;
import java.util.List;
import org.jdom.Element;
import org.junit.Test;
import com.enonic.cms.core.content.contentdata.ContentDataXPathCreator;
import static org.junit.Assert.*;
public ... | 831 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contentdata.support;
import java.io.IOException;
import org.jdom.Document;
import org.jdom.JDOMException;
import org.junit.Test;
import com.enonic.cms.framework.util.JDOMUtil;
import com.enonic.cms.core.cont... | 545 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.access;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
public class ContentAccessEntityEqualsTest
extends AbstractEqualsTest
{
@Test
public void testEquals()
{
... | 268 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
public class RelatedContentEntityEqualsTest
extends AbstractEqualsTest
{
@Test
public void testEquals()
{
assert... | 355 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content;
import java.util.Iterator;
import org.junit.Test;
import com.enonic.cms.core.SiteKey;
import com.enonic.cms.core.structure.SiteEntity;
import com.enonic.cms.core.structure.menuitem.ContentHomeEntity;
import ... | 2,527 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
public class ContentEntityEqualsTest
extends AbstractEqualsTest
{
@Test
public void testEquals()
{
assertEqualsC... | 244 |
github-java-corpus | 2,012 | package com.enonic.cms.core.content;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import com.enonic.cms.core.content.access.ContentAccessEntity;
import com.enonic.cms.core.content.access.ContentAccessType;
import com.enonic.cms.core.security.group.GroupEntity;
import com.enonic.cms.core... | 1,503 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.junit.Test;
impo... | 3,252 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.junit.Test;
import com.google.common.collect.Lists;
import com.enonic.cms.core.content.resultset.ContentResultSet;
... | 917 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.index.util;
import org.joda.time.DateMidnight;
import org.joda.time.DateTime;
import org.joda.time.ReadableDateTime;
import junit.framework.TestCase;
public class QueryFunctionsTest
extends TestCase
{
... | 856 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.index;
import org.joda.time.ReadableDateTime;
import org.junit.Test;
import com.enonic.cms.core.content.contenttype.ContentTypeEntity;
import com.enonic.cms.core.content.index.queryexpression.CompareExpr;
impo... | 2,112 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.index;
import junit.framework.TestCase;
public class FieldHelperTest
extends TestCase
{
public void testTranslateFieldName()
{
assertEquals( "a", FieldHelper.translateFieldName( "a" ) );
... | 523 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.index;
import java.util.GregorianCalendar;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.joda.time.MutableDateTime;
import org.joda.time.ReadableDateTime;
import org.junit.Test;
... | 1,494 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.index;
import junit.framework.TestCase;
public class ContentIndexQueryTest
extends TestCase
{
public void testFullTextValidation()
{
// one char illegal
try
{
... | 198 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.index;
import java.util.Collection;
import org.junit.Test;
import junit.framework.TestCase;
import static org.junit.Assert.*;
public class BigTextTest
extends TestCase
{
@Test
public void testF... | 777 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.index.queryexpression;
import org.junit.Test;
import static org.junit.Assert.*;
public class FunctionEvaluatorTest
{
@Test
public void testFunctionInCompareExpr()
{
QueryExpr expr = QueryP... | 289 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.index.queryexpression;
import org.apache.commons.lang.StringUtils;
import org.junit.Test;
import com.enonic.cms.core.content.index.optimizer.LogicalOrOptimizer;
import static org.junit.Assert.*;
public class... | 909 |
github-java-corpus | 2,012 | package com.enonic.cms.core.content.index.queryexpression;
import org.junit.Test;
import static org.junit.Assert.*;
public class IntegerFieldEvaluatorTest
{
@Test
public void evaluate_turns_integer_as_string_into_double_when_left_is_integer_field()
{
IntegerFieldEvaluator evaluator = new IntegerF... | 634 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.index.queryexpression;
import java.util.List;
import org.codehaus.jparsec.Tokens;
import org.codehaus.jparsec.functors.Binary;
import org.codehaus.jparsec.functors.Map;
import org.codehaus.jparsec.functors.Map... | 1,503 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.index.queryexpression;
import org.joda.time.ReadableDateTime;
import org.junit.Test;
import com.enonic.cms.core.content.index.ContentIndexConstants;
import static org.junit.Assert.*;
public class DateCompare... | 2,234 |
github-java-corpus | 2,012 | package com.enonic.cms.core.content.index.queryexpression;
import org.junit.Before;
import org.junit.Test;
import junit.framework.Assert;
import com.enonic.cms.core.content.contenttype.ContentTypeEntity;
import com.enonic.cms.core.content.index.ContentIndexConstants;
import com.enonic.cms.store.dao.ContentTypeDao;
... | 3,114 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.index.config;
import java.util.List;
import org.jdom.Document;
import org.jdom.input.SAXBuilder;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class IndexPathEvaluatorTest
{
... | 452 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.index.config;
import java.util.List;
import org.jdom.Document;
import org.jdom.input.SAXBuilder;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class IndexDefinitionBuilderTes... | 449 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content;
import java.util.Calendar;
import java.util.Date;
import org.junit.Before;
import org.junit.Test;
import com.enonic.cms.core.security.user.UserEntity;
import com.enonic.cms.core.security.user.UserKey;
impor... | 2,094 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content;
import java.util.ArrayList;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import com.enonic.cms.core.content.contenttype.ContentTypeEntity;
import static... | 1,074 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
public class ContentKeyEqualsTest
extends AbstractEqualsTest
{
@Test
public void testEquals()
{
assertEqualsCon... | 177 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.mail;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import com.enonic.cms.core.content.ContentEntity;
import com.enonic.cms.core.mail.MailRecipient;
import... | 1,628 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.binary;
import java.util.Date;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.enonic.cms.core.Path;
import com.enonic.cms.core.PathAndParams;
import com.enonic.cms.core.Re... | 615 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.binary;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
public class ContentBinaryDataKeyEqualsTest
extends AbstractEqualsTest
{
@Test
public void testEquals()
{
... | 188 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.binary;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
public class BinaryDataKeyEqualsTest
extends AbstractEqualsTest
{
@Test
public void testEquals()
{
asser... | 183 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.binary;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
public class BinaryDataEntityEqualsTest
extends AbstractEqualsTest
{
@Test
public void testEquals()
{
ass... | 262 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.binary;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
import com.enonic.cms.core.content.ContentVersionEntity;
import com.enonic.cms.core.content.ContentVersionKey;
public class Conte... | 593 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.binary;
import org.junit.Test;
import com.enonic.cms.core.Path;
import com.enonic.cms.core.content.ContentKey;
import static org.junit.Assert.*;
public class AttachmentNativeLinkKeyInPathParserTest
{
@T... | 980 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.binary;
import org.junit.Test;
import com.enonic.cms.core.Path;
import com.enonic.cms.core.content.ContentKey;
import static org.junit.Assert.*;
/**
* Feb 15, 2010
*/
public class AttachmentNativeLinkKeyPa... | 1,261 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contenttype;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
public class ContentHandlerKeyEqualsTest
extends AbstractEqualsTest
{
@Test
public void testEquals()
{
... | 213 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contenttype;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
public class ContentTypeEntityEqualsTest
extends AbstractEqualsTest
{
@Test
public void testEquals()
{
... | 238 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contenttype;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
public class ContentTypeKeyEqualsTest
extends AbstractEqualsTest
{
@Test
public void testEquals()
{
... | 179 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contenttype;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
public class ContentHandlerEntityEqualsTest
extends AbstractEqualsTest
{
@Test
public void testEquals()
{
... | 259 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contenttype;
import java.io.IOException;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.junit.Test;
import com.enonic.cms.framework.util.JDOMUtil;
import com.enonic.cms.core.content.conte... | 4,057 |
github-java-corpus | 2,012 | package com.enonic.cms.core.content.contenttype;
import java.io.IOException;
import org.jdom.Document;
import org.jdom.JDOMException;
import org.junit.Before;
import org.junit.Test;
import com.enonic.cms.framework.util.JDOMUtil;
import com.enonic.cms.core.content.contenttype.dataentryconfig.DataEntryConfig;
import... | 2,485 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contenttype;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Jun 9, 2010
*/
public class ContentTypeNameValidatorTest
{
@Test
public void isValid()
{
assertTrue( ContentTy... | 181 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content.contenttype;
import java.util.List;
import org.jdom.Element;
import org.junit.Before;
import org.junit.Test;
import com.enonic.cms.framework.xml.XMLDocument;
import com.enonic.cms.framework.xml.XMLDocumentFac... | 4,123 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Dec 15, 2009
*/
public class ContentStatusTest
{
@Test
public void test()
{
assertTrue( ContentStatus.APPROVED == ContentS... | 138 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.content;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.junit.Before;
import org.junit.Test;
impo... | 1,911 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.vhost;
import org.springframework.mock.web.MockHttpServletRequest;
import junit.framework.TestCase;
public class VirtualHostTest
extends TestCase
{
private MockHttpServletRequest request;
protected void... | 428 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import org.junit.Test;
import com.google.common.collect.Lists;
import static org.junit.Assert.*;
public class PathTest
{
@Test
publi... | 3,250 |
github-java-corpus | 2,012 | package com.enonic.cms.core.webdav;
import org.apache.jackrabbit.webdav.DavResourceLocator;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.springframework.mock.web.MockHttpServletRequest;
import com.enonic.cms.core.servlet.ServletRequestAccessor;
import com.enonic.cms.core.vhost.V... | 463 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core;
import java.util.Map;
import java.util.TreeMap;
import org.junit.Test;
import static org.junit.Assert.*;
public class RequestParametersTest
{
@Test
public void testGetAsString1()
{
Map<String,... | 590 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import org.springframework.core.io.FileSystemResourceLoader;
import org.springfram... | 1,485 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.structure;
import java.util.LinkedHashMap;
import java.util.Map;
import junit.framework.TestCase;
import com.enonic.cms.core.CaseInsensitiveString;
import com.enonic.cms.core.Path;
import com.enonic.cms.core.language... | 625 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.structure;
import org.mockito.Mockito;
import junit.framework.TestCase;
import com.enonic.cms.core.MockSitePropertiesService;
import com.enonic.cms.core.SiteKey;
import com.enonic.cms.core.portal.SiteNotFoundExceptio... | 698 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.structure.page;
import java.util.Date;
import org.junit.Test;
import com.enonic.cms.core.structure.menuitem.MenuItemEntity;
import com.enonic.cms.core.structure.menuitem.MenuItemKey;
import com.enonic.cms.core.struct... | 2,461 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.structure.page.template;
import org.jdom.Document;
import org.jdom.Element;
import org.junit.Test;
import com.enonic.cms.core.portal.datasource.Datasources;
import static org.junit.Assert.*;
/**
* Nov 26, 2010
*/
... | 209 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.structure.page.template;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
/**
* Aug 26, 2010
*/
public class PageTemplateEntityEqualsTest
extends AbstractEqualsTest
{
@Test
public ... | 235 |
github-java-corpus | 2,012 | package com.enonic.cms.core.structure.page.template;
import org.junit.Test;
import static org.junit.Assert.*;
public class PageTemplateSpecificationTest
{
@Test
public void satisfies_returns_true_when_nothing_specified()
{
PageTemplateEntity pageTemplate = new PageTemplateEntity();
Pag... | 621 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.structure.page;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
/**
* Aug 26, 2010
*/
public class PageEntityEqualsTest
extends AbstractEqualsTest
{
@Test
public void testEquals()... | 222 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.structure;
import java.io.IOException;
import java.util.LinkedHashSet;
import java.util.Set;
import org.jdom.JDOMException;
import com.enonic.cms.framework.xml.XMLDocument;
import com.enonic.cms.framework.xml.XMLDocu... | 2,907 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.structure;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.web.util.UrlPathHelper;
import junit.framework.TestCase;
import com.enonic.cms.core.MockSitePropertiesService;
import ... | 1,627 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.structure;
import java.io.IOException;
import org.jdom.Document;
import org.jdom.JDOMException;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import junit.framewor... | 371 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.structure;
import java.io.IOException;
import java.util.LinkedHashMap;
import java.util.Map;
import org.jdom.JDOMException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.enonic.cms.core.CaseInse... | 5,843 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.structure.menuitem;
import org.junit.Before;
import org.junit.Test;
import junit.framework.TestCase;
import com.enonic.cms.core.security.user.User;
import com.enonic.cms.core.security.user.UserEntity;
import com.enon... | 1,742 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.structure.menuitem;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.jdom.JD... | 3,374 |
github-java-corpus | 2,012 | package com.enonic.cms.core.structure.menuitem.section;
import org.junit.Test;
import com.enonic.cms.core.AbstractEqualsTest;
public class SectionContentKeyEqualsTest
extends AbstractEqualsTest
{
@Test
public void testEquals()
{
assertEqualsContract();
}
public Object getObjectX()
... | 162 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.