input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testGetDesignSchema ( ) { org . apache . avro . Schema designSchema = org . apache . avro . SchemaBuilder . builder ( ) . record ( "Record" ) . fields ( ) . name ( "intField" ) . type ( ) . intType ( ) . noDefault ( ) . name ( "stringField" ) . type ( ) . stringType ( ) . noDefault ( ) . name ( "booleanField" ) . type ...
org . junit . Assert . assertEquals ( designSchema , actualDesignSchema )
checkTime6 ( ) { com . alibaba . fastjson . parser . JSONScanner objectUnderTest = ( ( com . alibaba . fastjson . parser . JSONScanner ) ( com . diffblue . deeptestutils . Reflector . getInstance ( "com.alibaba.fastjson.parser.JSONScanner" ) ) ) ; objectUnderTest . hasSpecial = false ; objectUnderTest . token = 0 ; obj...
org . junit . Assert . assertEquals ( false , retval )
asIntsUpdatedAfterNullReassess ( ) { org . tessell . model . values . SetValue < java . util . List < java . lang . String > > qValue = new org . tessell . model . values . SetValue < java . util . List < java . lang . String > > ( "q" , null ) ; org . tessell . tests . model . properties . ListProperty < java . lang ....
org . junit . Assert . assertThat ( ints . get ( ) , org . hamcrest . Matchers . contains ( 3 ) )
testParseExactlyErr ( ) { actions = new java . util . HashMap < java . lang . String , java . lang . String > ( ) { { put ( "type" , "aaa" ) ; put ( "experimenter" , "12" ) ; } } ; target = new org . o3project . odenos . core . component . network . flow . query . OFPFlowActionExperimenterQuery ( actions ) ; "<AssertPl...
org . junit . Assert . assertThat ( target . parse ( ) , org . hamcrest . CoreMatchers . is ( false ) )
shouldNotFindSpaceToPutMoreGroupsThanSpecifiedForANode ( ) { int nodeCount = 10 ; org . neo4j . unsafe . impl . batchimport . RelationshipGroupCache cache = new org . neo4j . unsafe . impl . batchimport . RelationshipGroupCache ( HEAP , org . neo4j . io . ByteUnit . kibiBytes ( 4 ) , nodeCount ) ; setCount ( cache , 1 ...
org . junit . Assert . assertEquals ( nodeCount , cache . prepare ( 0 ) )
emptyTableHasEmptyHeaderMetaData ( ) { "<AssertPlaceHolder>" ; } getHeaderMetaData ( ) { int columnIndex = 0 ; final java . util . Map < java . lang . Integer , org . drools . workbench . services . verifier . plugin . client . api . ModelMetaData > map = new java . util . HashMap ( ) ; for ( final org . drools . workb...
org . junit . Assert . assertTrue ( new org . drools . workbench . services . verifier . plugin . client . builders . ModelMetaDataEnhancer ( model ) . getHeaderMetaData ( ) . isEmpty ( ) )
testExecuteRetrieveControllerSlaveStatus ( ) { _method = mock ( org . apache . commons . httpclient . methods . GetMethod . class ) ; when ( _method . getStatusCode ( ) ) . thenReturn ( HttpStatus . SC_SEE_OTHER ) ; when ( ( ( org . apache . commons . httpclient . HttpMethodBase ) ( _method ) ) . getResponseBodyAsStrin...
org . junit . Assert . assertEquals ( _api . getControllerData ( ) . isMaster ( ) , false )
testContext ( ) { org . pb . x12 . Context ctxt = new org . pb . x12 . Context ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( ctxt )
testResolvePackageWithRootPath ( ) { final javax . enterprise . inject . spi . Bean moduleServiceBean = ( ( javax . enterprise . inject . spi . Bean ) ( beanManager . getBeans ( org . kie . workbench . common . services . shared . project . KieModuleService . class ) . iterator ( ) . next ( ) ) ) ; final javax . enterp...
org . junit . Assert . assertNull ( result )
testAutoDeployment ( ) { long count = repositoryService . createProcessDefinitionQuery ( ) . count ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 1 , count )
testMethodsOfGeneratedTransferObjectImpl ( ) { final org . opendaylight . mdsal . binding . model . util . generated . type . builder . CodegenGeneratedTOBuilder genTOBuilder = new org . opendaylight . mdsal . binding . model . util . generated . type . builder . CodegenGeneratedTOBuilder ( org . opendaylight . mdsal ....
org . junit . Assert . assertNotNull ( genTO . toString ( ) )
testIndependentSpdySynStreamFrame ( ) { short type = 1 ; byte flags = 0 ; int length = 10 ; int streamId = ( ( io . netty . handler . codec . spdy . SpdyFrameDecoderTest . RANDOM . nextInt ( ) ) & 2147483647 ) | 1 ; int associatedToStreamId = 0 ; byte priority = ( ( byte ) ( ( io . netty . handler . codec . spdy . Spdy...
org . junit . Assert . assertFalse ( buf . isReadable ( ) )
testOAuth2MultipleBatchesResourceOwnerClientId ( ) { com . streamsets . pipeline . stage . origin . http . HttpClientSourceIT . tokenGetCount = 0 ; try { com . streamsets . pipeline . config . DataFormat dataFormat = com . streamsets . pipeline . config . DataFormat . JSON ; com . streamsets . pipeline . stage . origin...
org . junit . Assert . assertEquals ( 2 , com . streamsets . pipeline . stage . origin . http . HttpClientSourceIT . tokenGetCount )
testGetDraftDatasetVersionFromRoleAssignmentLastestIsNotDraft ( ) { edu . harvard . iq . dataverse . authorization . DataverseRole aRole = null ; edu . harvard . iq . dataverse . authorization . users . PrivateUrlUser privateUrlUser = new edu . harvard . iq . dataverse . authorization . users . PrivateUrlUser ( 42 ) ; ...
org . junit . Assert . assertNull ( datasetVersionOut )
testEvaluator ( ) { try { net . logstash . logback . stacktrace . ShortenedThrowableConverterTest . StackTraceElementGenerator . generateCausedBy ( ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . RuntimeException e ) { net . logstash . logback . stacktrace . ShortenedThrowableConverter converter = new net...
org . junit . Assert . assertEquals ( "" , formatted )
applyMustNotCallFunctionIfTimeoutElapses ( ) { createPool ( ) ; stormpot . GenericPoolable obj = pool . claim ( stormpot . PoolTest . longTimeout ) ; try { java . util . concurrent . atomic . AtomicInteger counter = new java . util . concurrent . atomic . AtomicInteger ( ) ; pool . apply ( stormpot . PoolTest . shortTi...
org . junit . Assert . assertThat ( counter . get ( ) , is ( 0 ) )
testExercise14reduce ( ) { System . out . println ( "-----------<sp>testExercise14<sp>reduce<sp>----------------" ) ; learnrxjava . types . ComposableList < java . lang . Integer > slr = learnrxjava . ComposableListExercises . of ( 1 , 2 , 3 ) . reduce ( ( s , i ) -> s + i ) ; slr . forEach ( System . out :: println ) ...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( 6 ) , slr )
testMatches_PresentForbidden ( ) { de . persosim . simulator . apdumatching . TlvSpecificationContainer containerSpec = new de . persosim . simulator . apdumatching . TlvSpecificationContainer ( DO_NOT_ALLOW_FURTHER_TAGS , STRICT_ORDER ) ; containerSpec . add ( new de . persosim . simulator . apdumatching . TlvSpecific...
org . junit . Assert . assertFalse ( containerSpec . matches ( containerTlv ) )
manageModificationVDiskDeletion_VSDISK_DETACHED ( ) { org . oscm . app . iaas . data . FlowState flowState = org . oscm . app . iaas . data . FlowState . VSDISK_DETACHED ; org . oscm . app . iaas . data . FlowState newState = null ; paramHandler . getIaasContext ( ) . setVSystemStatus ( "NORMAL" ) ; newState = vServerP...
org . junit . Assert . assertEquals ( FlowState . VSDISK_DELETING , newState )
countGeneratedPermutations ( ) { int size = 4 ; org . openscience . cdk . graph . Permutor permutor = new org . openscience . cdk . graph . Permutor ( size ) ; int count = 1 ; while ( permutor . hasNext ( ) ) { permutor . getNextPermutation ( ) ; count ++ ; } "<AssertPlaceHolder>" ; } factorial ( int ) { if ( i > 0 ) {...
org . junit . Assert . assertEquals ( factorial ( size ) , count )
testSizeByEdge ( ) { final java . lang . String type = java . util . UUID . randomUUID ( ) . toString ( ) ; org . apache . usergrid . persistence . model . entity . Id ownerId = new org . apache . usergrid . persistence . model . entity . SimpleId ( "owner" ) ; final org . apache . usergrid . persistence . model . enti...
org . junit . Assert . assertTrue ( ( size == 100 ) )
onMonths ( ) { net . time4j . range . CalendarPeriod < net . time4j . range . CalendarMonth > expected = net . time4j . range . CalendarPeriod . between ( net . time4j . range . CalendarMonth . of ( 2017 , 11 ) , net . time4j . range . CalendarMonth . of ( 2020 , 2 ) ) ; net . time4j . format . expert . ChronoFormatter...
org . junit . Assert . assertThat ( net . time4j . range . CalendarPeriod . onMonths ( ) . parse ( "11/2017<sp><sp>02/2020" , f ) , org . hamcrest . CoreMatchers . is ( expected ) )
verifyValidateClusterStartupDoNotSuggestsUpdateToConfiguredClusterIfReplicasTooHigh ( ) { oracle . kubernetes . operator . wlsconfig . WlsClusterConfig wlsClusterConfig = new oracle . kubernetes . operator . wlsconfig . WlsClusterConfig ( "cluster1" ) ; wlsClusterConfig . addServerConfig ( createWlsServerConfig ( "ms-0...
org . junit . Assert . assertEquals ( 0 , suggestedConfigUpdates . size ( ) )
pathParsingNoOperatorSpacesNoExceptionTest ( ) { com . itextpdf . svg . renderers . impl . PathSvgNodeRenderer path = new com . itextpdf . svg . renderers . impl . PathSvgNodeRenderer ( ) ; path . setAttribute ( SvgConstants . Attributes . D , "m200,100L50,50L200,100" ) ; java . util . Collection < java . lang . String...
org . junit . Assert . assertEquals ( 3 , ops . size ( ) )
shouldResourceBeIncluded_shouldReturnFalseIfFileMatchesButOpenmrsVersionDoesNot ( ) { org . openmrs . module . ModuleConditionalResource resource = new org . openmrs . module . ModuleConditionalResource ( ) ; resource . setPath ( "lib/mockmodule-api-1.10.jar" ) ; resource . setOpenmrsPlatformVersion ( "1.7-1.8,<sp>1.10...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( false ) )
checkListCustomers ( ) { managedBeanCustomerManager . addCustomer ( ( "Test" + ( java . lang . System . currentTimeMillis ( ) ) ) ) ; java . util . List < org . jboss . narayana . quickstarts . jpa . Customer > firstList = managedBeanCustomerManager . getCustomers ( ) ; managedBeanCustomerManager . addCustomer ( ( "Tes...
org . junit . Assert . assertTrue ( ( ( firstList . size ( ) ) < ( secondList . size ( ) ) ) )
testGetStartUrlwAppendableRowSetRequest ( ) { org . sagebionetworks . repo . model . table . AppendableRowSetRequest request = new org . sagebionetworks . repo . model . table . AppendableRowSetRequest ( ) ; request . setEntityId ( tableId ) ; org . sagebionetworks . client . AsynchJobType type = AsynchJobType . TableA...
org . junit . Assert . assertEquals ( actual , expected )
containsScript ( ) { org . jenkinsci . plugins . postbuildscript . model . Script script = new org . jenkinsci . plugins . postbuildscript . model . Script ( java . util . Collections . singleton ( org . jenkinsci . plugins . postbuildscript . model . ScriptTest . RESULT ) , org . jenkinsci . plugins . postbuildscript ...
org . junit . Assert . assertThat ( script . getContent ( ) , org . hamcrest . CoreMatchers . is ( org . jenkinsci . plugins . postbuildscript . model . ScriptTest . CONTENT ) )
sqlQueryTestWithId ( ) { java . util . Map < java . lang . String , java . lang . Object > params = new java . util . HashMap ( ) ; params . put ( "id" , 1 ) ; java . util . List < java . util . Map < java . lang . String , java . lang . Object > > actual = jp . co . future . uroborosql . sample . SqlAgentSampleTest . ...
org . junit . Assert . assertEquals ( toString ( expected ) , toString ( actual ) )
shouldNotStartEndpoint_backupEndpoint ( ) { io . gravitee . definition . model . Endpoint endpoint = mock ( io . gravitee . gateway . api . endpoint . Endpoint . class ) ; when ( endpoint . isBackup ( ) ) . thenReturn ( true ) ; when ( group . getEndpoints ( ) ) . thenReturn ( java . util . Collections . singleton ( en...
org . junit . Assert . assertTrue ( endpointLifecycleManager . endpoints ( ) . isEmpty ( ) )
testShouldBeAbleToSubmitFormsByCausingTheOnClickEventToFire ( ) { driver . get ( pages . javascriptPage ) ; org . openqa . selenium . WebElement element = driver . findElement ( org . openqa . selenium . By . id ( "jsSubmitButton" ) ) ; element . click ( ) ; waitForTitleChange ( "We<sp>Arrive<sp>Here" ) ; "<AssertPlace...
org . junit . Assert . assertThat ( driver . getTitle ( ) , org . hamcrest . Matchers . is ( "We<sp>Arrive<sp>Here" ) )
selfInheritanceTest ( ) { java . lang . String code = "class<sp>A{isA<sp>T;}<sp>trait<sp>T<sp>{<sp>isA<sp>T;}" ; cruise . umple . compiler . UmpleModel model = getModel ( code ) ; boolean result = false ; try { model . run ( ) ; } catch ( java . lang . Exception e ) { result = e . getMessage ( ) . contains ( "204" ) ; ...
org . junit . Assert . assertTrue ( result )
equalsTest4 ( ) { org . opendaylight . openflowjava . nx . api . NiciraActionDeserializerKey obj = new org . opendaylight . openflowjava . nx . api . NiciraActionDeserializerKey ( ( ( short ) ( 5 ) ) , 10 ) ; niciraActionDeserializerKey = new org . opendaylight . openflowjava . nx . api . NiciraActionDeserializerKey ( ...
org . junit . Assert . assertFalse ( niciraActionDeserializerKey . equals ( obj ) )
testAddXsdImport ( ) { java . lang . String testName = "testAddXsdImport" ; java . io . File f = copyPddToTestCaseFile ( testName ) ; net . bpelunit . framework . control . deploy . activevos9 . ActiveVOSDeploymentDescriptor pdd = new net . bpelunit . framework . control . deploy . activevos9 . ActiveVOSDeploymentDescr...
org . junit . Assert . assertEquals ( expected , actual )
arrayType ( ) { com . squareup . javapoet . ArrayTypeName type = com . squareup . javapoet . ArrayTypeName . of ( java . lang . String . class ) ; "<AssertPlaceHolder>" . isEqualTo ( "java.lang.String[]" ) ; } toString ( ) { java . lang . StringBuilder out = new java . lang . StringBuilder ( ) ; try { com . squareup . ...
org . junit . Assert . assertThat ( type . toString ( ) )
testChoosePartSizeFileSizeOver50GB ( ) { long fileSize = ( ( org . sagebionetworks . repo . model . file . PartUtils . MIN_PART_SIZE_BYTES ) * ( org . sagebionetworks . repo . model . file . PartUtils . MAX_NUMBER_OF_PARTS ) ) + 1 ; long partSize = org . sagebionetworks . repo . model . file . PartUtils . choosePartSiz...
org . junit . Assert . assertTrue ( ( partSize > ( org . sagebionetworks . repo . model . file . PartUtils . MIN_PART_SIZE_BYTES ) ) )
ConstructorWithExtensionListTest ( ) { org . pentaho . platform . core . mimetype . MimeTypeTest . mimeType = new org . pentaho . platform . core . mimetype . MimeType ( org . pentaho . platform . core . mimetype . MimeTypeTest . MIME_NAME , org . pentaho . platform . core . mimetype . MimeTypeTest . EXTENSIONS1 ) ; or...
org . junit . Assert . assertEquals ( org . pentaho . platform . core . mimetype . MimeTypeTest . MIME_NAME , org . pentaho . platform . core . mimetype . MimeTypeTest . mimeType . getName ( ) )
testInsert1000Rows ( ) { if ( ( ( platform ) != null ) && ( ( platform ) instanceof org . jumpmind . db . platform . oracle . OracleDatabasePlatform ) ) { platform . getSqlTemplate ( ) . update ( "truncate<sp>table<sp>test_bulkload_table_1" ) ; java . util . List < org . jumpmind . symmetric . io . data . CsvData > dat...
org . junit . Assert . assertEquals ( count , countRows ( "test_bulkload_table_1" ) )
testGetValue ( ) { final java . lang . String expectedValue = "value" ; when ( view . getValue ( ) ) . thenReturn ( expectedValue ) ; final java . lang . String actualValue = dateSelector . getValue ( ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return rootPath ; }
org . junit . Assert . assertEquals ( expectedValue , actualValue )
testShouldAllowRegistrationOfArrayAsInstance ( ) { com . picocontainer . MutablePicoContainer pico = new com . picocontainer . DefaultPicoContainer ( ) ; com . picocontainer . defaults . issues . Issue0196TestCase . Descriptor . DescriptorData [ ] datas = new com . picocontainer . defaults . issues . Issue0196TestCase ...
org . junit . Assert . assertNotNull ( descriptorDep )
testDeregisterElement ( ) { tested . init ( canvasHandler ) ; tested . register ( element ) ; tested . deregister ( element ) ; "<AssertPlaceHolder>" ; } isRegistered ( org . kie . workbench . common . stunner . core . client . shape . ImageStrip ) { return registered . contains ( org . kie . workbench . common . stunn...
org . junit . Assert . assertFalse ( isRegistered ( element ) )
testIgnoreForNonEvents ( ) { final com . logsniffer . fields . FieldsMap fields = new com . logsniffer . fields . FieldsMap ( ) ; final com . logsniffer . model . LogEntry entry = new com . logsniffer . model . LogEntry ( ) ; entry . put ( "abc" , 1 ) ; fields . put ( Event . FIELD_ENTRIES , java . util . Collections ....
org . junit . Assert . assertFalse ( fields . containsKey ( "abc" ) )
checkIfEngineExecutionContextIsPutOnParametersWhenExecuteMutipleEvaluation ( ) { final long processDefinitionId = 6L ; final java . lang . String connectorDefinitionId = "connectorDefinitionId" ; final java . lang . String connectorDefinitionVersion = "connectorDefinitionVersion" ; final java . util . Map < java . lang...
org . junit . Assert . assertEquals ( toBeReturned , connectorResult )
testLinkedList ( ) { final java . util . LinkedList < java . lang . Integer > queue = new java . util . LinkedList < java . lang . Integer > ( ) ; final long start = java . lang . System . currentTimeMillis ( ) ; final long run = start + ( org . csstudio . archive . engine . model . QueueDemo . RUNTIME ) ; int i = 0 ; ...
org . junit . Assert . assertEquals ( i , val . intValue ( ) )
testReloadNull ( ) { initializeExpectedJob ( 1 ) ; expect ( bigquery . getOptions ( ) ) . andReturn ( mockOptions ) ; expect ( bigquery . getJob ( com . google . cloud . bigquery . JobTest . JOB_INFO . getJobId ( ) ) ) . andReturn ( null ) ; replay ( bigquery ) ; initializeJob ( ) ; "<AssertPlaceHolder>" ; } reload ( )...
org . junit . Assert . assertNull ( job . reload ( ) )
graph_dft_3q ( ) { java . util . List < org . apache . jena . sparql . engine . binding . Binding > results = exec ( ( ( "(graph<sp><" + ( Quad . defaultGraphIRI . getURI ( ) ) ) + "><sp>(bgp<sp>(?x<sp>?p<sp>?z)<sp>(?z<sp>?q<sp>?y)<sp>))" ) , org . apache . jena . sparql . core . TestSpecialGraphNames . Mode . QUADS ) ...
org . junit . Assert . assertEquals ( 1 , results . size ( ) )
testSingleZeroWidthTokenWithoutValue ( ) { org . apache . uima . jcas . JCas cas = makeJCasOneSentence ( "This<sp>is<sp>a<sp>test<sp>." ) ; addNamedEntity ( cas , 0 , 0 , null ) ; de . tudarmstadt . ukp . clarin . webanno . tsv . internal . tsv3x . model . TsvSchema schema = new de . tudarmstadt . ukp . clarin . webann...
org . junit . Assert . assertEquals ( expectedSentence , doc . getSentences ( ) . get ( 0 ) . toString ( ) )
testUpsamplingConvnetJson ( ) { final int numRows = 76 ; final int numColumns = 76 ; int nChannels = 3 ; int outputNum = 6 ; int seed = 123 ; org . deeplearning4j . nn . conf . MultiLayerConfiguration . Builder builder = new org . deeplearning4j . nn . conf . NeuralNetConfiguration . Builder ( ) . seed ( seed ) . l1 ( ...
org . junit . Assert . assertEquals ( conf , conf2 )
loginNoUser ( ) { javax . security . auth . callback . CallbackHandler callbackHandler = new com . ibm . ws . security . authentication . jaas . modules . UsernameAndPasswordLoginModuleTest . CallbackHandlerDouble ( null , com . ibm . ws . security . authentication . jaas . modules . UsernameAndPasswordLoginModuleTest ...
org . junit . Assert . assertFalse ( module . login ( ) )
generationOfSimilarKeys ( ) { System . out . println ( getFactory ( ) . createSearchRequestLookupKey ( "" ) . hashCode ( ) ) ; System . out . println ( getFactory ( ) . createSearchRequestLookupKey ( "
org . junit . Assert . assertTrue ( "AdFAceAceBEFBDeAceAdFAdF" 0 , ( worse < 11 ) )
testGetChildrenIteratorRoot ( ) { org . nuxeo . ecm . core . api . DocumentModel root = session . getRootDocument ( ) ; org . nuxeo . ecm . core . api . DocumentModelIterator docs = session . getChildrenIterator ( root . getRef ( ) ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { return iterator . hasNext ( ) ; }
org . junit . Assert . assertFalse ( docs . hasNext ( ) )
test4 ( ) { org . apache . uima . fit . testing . util . HideOutput hider = new org . apache . uima . fit . testing . util . HideOutput ( ) ; org . apache . uima . analysis_engine . AnalysisEngine dataWriterAnnotator = org . apache . uima . fit . factory . AnalysisEngineFactory . createEngine ( org . cleartk . ml . mal...
org . junit . Assert . assertNotNull ( aepe )
test_recursive_struct ( ) { org . jacorb . test . orb . Recursive testValue = new org . jacorb . test . orb . Recursive ( new org . jacorb . test . orb . Recursive [ ] { new org . jacorb . test . orb . Recursive ( new org . jacorb . test . orb . Recursive [ 0 ] ) , new org . jacorb . test . orb . Recursive ( new org . ...
org . junit . Assert . assertTrue ( outAny . equal ( inAny ) )
testGetAsyncEventQueueDiskStoreNameUsingDefaultDiskStore ( ) { final com . gemstone . gemfire . cache . asyncqueue . AsyncEventQueue mockQueue = mockContext . mock ( com . gemstone . gemfire . cache . asyncqueue . AsyncEventQueue . class , "AsyncEventQueue" ) ; mockContext . checking ( new org . jmock . Expectations ( ...
org . junit . Assert . assertEquals ( DiskStoreDetails . DEFAULT_DISK_STORE_NAME , function . getDiskStoreName ( mockQueue ) )
cantGetEntry ( ) { dummyLogin . login ( "aUser" ) ; try ( org . nuxeo . ecm . directory . Session userDirSession = getSession ( DirectoryFeature . USER_DIRECTORY_NAME ) ) { org . nuxeo . ecm . core . api . DocumentModel entry = userDirSession . getEntry ( "user_1" ) ; "<AssertPlaceHolder>" ; } finally { dummyLogin . lo...
org . junit . Assert . assertNull ( entry )
testMultipleWordsQueryUsingScan ( ) { java . util . ArrayList < java . lang . String > names = new java . util . ArrayList < java . lang . String > ( java . util . Arrays . asList ( "george<sp>lin<sp>lin" ) ) ; edu . uci . ics . texera . dataflow . dictionarymatcher . Dictionary dictionary = new edu . uci . ics . texer...
org . junit . Assert . assertTrue ( contains )
testForUpdateIssue10 ( ) { co . jirm . spring . TestBean t = new co . jirm . spring . TestBean ( co . jirm . spring . JirmDaoIntegrationTest . randomId ( ) , 2L , java . util . Calendar . getInstance ( ) ) ; dao . insert ( t ) ; java . util . List < co . jirm . spring . TestBean > list = dao . select ( ) . where ( ) . ...
org . junit . Assert . assertNotNull ( list )
testListGames ( ) { java . util . List < org . lazydevs . api . gog . model . GogGame > games = api . listGames ( ) ; "<AssertPlaceHolder>" ; } listGames ( ) { java . lang . String responseBody = org . lazydevs . api . gog . util . HttpClientUtil . getBody ( client , context , org . lazydevs . api . gog . GogApi . URL_...
org . junit . Assert . assertTrue ( ( ( games . size ( ) ) > 0 ) )
searchUncategorizedProcessDeploymentInfosCanBeStartedBy ( ) { final org . bonitasoft . engine . persistence . QueryOptions options = new org . bonitasoft . engine . persistence . QueryOptions ( 0 , 10 ) ; final long userId = 9 ; when ( persistenceService . searchEntity ( org . bonitasoft . engine . core . process . def...
org . junit . Assert . assertNotNull ( result )
testGetCacheEntryReturnsNullIfNoVariantInCache ( ) { final org . apache . hc . core5 . http . HttpHost host = new org . apache . hc . core5 . http . HttpHost ( "foo.example.com" ) ; final org . apache . hc . core5 . http . HttpRequest origRequest = new org . apache . hc . client5 . http . classic . methods . HttpGet ( ...
org . junit . Assert . assertNull ( result )
testUnsafeRowList ( ) { java . util . ArrayList < io . mycat . memory . unsafe . row . UnsafeRow > list = new java . util . ArrayList < io . mycat . memory . unsafe . row . UnsafeRow > ( ) ; io . mycat . memory . unsafe . row . UnsafeRow unsafeRow ; io . mycat . memory . unsafe . row . BufferHolder bufferHolder ; io . ...
org . junit . Assert . assertEquals ( ( 1000 + i ) , row . getInt ( 0 ) )
removeTest ( ) { org . opengrok . indexer . web . messages . Message m = new org . opengrok . indexer . web . messages . Message ( "test" , java . util . Collections . singleton ( "test" ) , "info" , java . time . Duration . ofMillis ( 10 ) ) ; container . addMessage ( m ) ; container . removeAnyMessage ( java . util ....
org . junit . Assert . assertTrue ( container . getMessages ( "test" ) . isEmpty ( ) )
validate_shouldPassWhenObsGroupConceptIsASet ( ) { java . lang . String xml = "<htmlfom><obsgroup<sp>groupingConceptId=\"23\"><obs<sp>conceptId=\"xx\"<sp>/></obsgroup></htmlfom>" ; org . openmrs . module . htmlformentry . handler . TagAnalysis analysis = validateObsGroupTag ( xml ) ; "<AssertPlaceHolder>" ; } getErrors...
org . junit . Assert . assertEquals ( 0 , analysis . getErrors ( ) . size ( ) )
test_getShort_BIGINT_thatFits_getsIt ( ) { final com . dremio . exec . vector . accessor . SqlAccessor uut = new com . dremio . jdbc . impl . TypeConvertingSqlAccessor ( new com . dremio . jdbc . impl . TypeConvertingSqlAccessorTest . BigIntStubAccessor ( ( - 32678 ) ) ) ; "<AssertPlaceHolder>" ; } getShort ( int ) { f...
org . junit . Assert . assertThat ( uut . getShort ( 0 ) , org . hamcrest . CoreMatchers . equalTo ( ( ( short ) ( - 32678 ) ) ) )
sliceAfterPipe ( ) { io . burt . jmespath . Expression < java . lang . Object > expected = Sequence ( Property ( "foo" ) , Slice ( 1 , 2 , 1 ) ) ; io . burt . jmespath . Expression < java . lang . Object > actual = compile ( "foo<sp>|<sp>[1:2]" ) ; "<AssertPlaceHolder>" ; } compile ( java . lang . String ) { return run...
org . junit . Assert . assertThat ( actual , org . hamcrest . Matchers . is ( expected ) )
testFindByPrimaryKeyExisting ( ) { com . liferay . portal . kernel . model . UserGroupGroupRole newUserGroupGroupRole = addUserGroupGroupRole ( ) ; com . liferay . portal . kernel . model . UserGroupGroupRole existingUserGroupGroupRole = _persistence . findByPrimaryKey ( newUserGroupGroupRole . getPrimaryKey ( ) ) ; "<...
org . junit . Assert . assertEquals ( existingUserGroupGroupRole , newUserGroupGroupRole )
testTopSortNoCycles ( ) { org . apache . cayenne . di . spi . DIGraph < java . lang . String > graph = new org . apache . cayenne . di . spi . DIGraph ( ) ; graph . add ( "x" , "y" ) ; graph . add ( "x" , "z" ) ; graph . add ( "z" , "a" ) ; java . util . List < java . lang . String > sorted = graph . topSort ( ) ; "<As...
org . junit . Assert . assertEquals ( asList ( "y" , "a" , "z" , "x" ) , sorted )
testPositiveInfinity ( ) { org . apache . commons . numbers . complex . Complex c = org . apache . commons . numbers . complex . Complex . ofCartesian ( Double . POSITIVE_INFINITY , Double . POSITIVE_INFINITY ) ; java . lang . String expected = "(Infinity)<sp>+<sp>(Infinity)i" ; java . lang . String actual = complexFor...
org . junit . Assert . assertEquals ( expected , actual )
withSchemeWhenSchemeIsEmpty ( ) { final com . azure . common . implementation . http . UrlBuilder builder = new com . azure . common . implementation . http . UrlBuilder ( ) . withScheme ( "http" ) ; builder . withScheme ( "" ) ; "<AssertPlaceHolder>" ; } scheme ( ) { return scheme ; }
org . junit . Assert . assertNull ( builder . scheme ( ) )
shouldHandleSpecialKeyChars ( ) { java . lang . String key = "AVERY<sp>READY<sp>INDEX" ; java . lang . String content = "Hello<sp>World!" ; com . couchbase . client . core . message . kv . UpsertRequest upsert = new com . couchbase . client . core . message . kv . UpsertRequest ( key , io . netty . buffer . Unpooled . ...
org . junit . Assert . assertEquals ( content , getResponse . content ( ) . toString ( CharsetUtil . UTF_8 ) )
isGroupingFilter ( ) { "<AssertPlaceHolder>" ; } isGroupingFilter ( ) { return true ; }
org . junit . Assert . assertTrue ( filter . isGroupingFilter ( ) )
testClassNotFound ( ) { try { factory . getFilterType ( project , "gabuzotestfilter" ) ; } catch ( final org . apache . tools . ant . BuildException e ) { "<AssertPlaceHolder>" ; } } getFilterType ( org . apache . tools . ant . Project , java . lang . String ) { project . log ( ( "Creating<sp>filter<sp>for<sp>name<sp>"...
org . junit . Assert . assertEquals ( "Cannot<sp>find<sp>filter<sp>class" , e . getMessage ( ) )
apply_returning_tsv ( ) { final com . groupon . lex . metrics . expression . IdentifierGroupExpression expr = new com . groupon . lex . metrics . expression . IdentifierGroupExpression ( com . groupon . lex . metrics . expression . IdentifierGroupExpressionTest . VARNAME ) ; final com . groupon . lex . metrics . timese...
org . junit . Assert . assertEquals ( expect , expr . getTSDelta ( ctx ) )
shouldConvertEmptyIterableOfObjectsToNullArray ( ) { final java . lang . Object [ ] originalArray = new java . lang . Object [ 0 ] ; final java . lang . Iterable < java . lang . Object > originalResults = new uk . gov . gchq . gaffer . commonutil . iterable . WrappedCloseableIterable ( java . util . Arrays . asList ( o...
org . junit . Assert . assertNull ( results )
testRemoveSubplot ( ) { org . jfree . chart . plot . CombinedRangeCategoryPlot plot = new org . jfree . chart . plot . CombinedRangeCategoryPlot ( ) ; org . jfree . chart . plot . CategoryPlot plot1 = new org . jfree . chart . plot . CategoryPlot ( ) ; org . jfree . chart . plot . CategoryPlot plot2 = new org . jfree ....
org . junit . Assert . assertEquals ( 2 , plots . size ( ) )
getJedisResourceTest ( ) { jedis = qa . qcri . aidr . output . utils . JedisConnectionObjectTest . jedisConnectionObject . getJedisResource ( ) ; "<AssertPlaceHolder>" ; } getJedisResource ( ) { redis . clients . jedis . Jedis subscriberJedis = null ; if ( isPoolSetup ( ) ) { try { subscriberJedis = qa . qcri . aidr . ...
org . junit . Assert . assertNotNull ( jedis )
testSetupEditingColWhenColumnIsNotNew ( ) { final org . drools . workbench . models . guided . dtable . shared . model . BRLActionColumn originalColumn = mock ( org . drools . workbench . models . guided . dtable . shared . model . BRLActionColumn . class ) ; final org . drools . workbench . models . guided . dtable . ...
org . junit . Assert . assertEquals ( editingColumn , plugin . editingCol ( ) )
testSerialization ( ) { org . jfree . data . xy . DefaultOHLCDataset d1 = new org . jfree . data . xy . DefaultOHLCDataset ( "Series<sp>1" , new org . jfree . data . xy . OHLCDataItem [ 0 ] ) ; org . jfree . data . xy . DefaultOHLCDataset d2 = ( ( org . jfree . data . xy . DefaultOHLCDataset ) ( org . jfree . chart . T...
org . junit . Assert . assertEquals ( d1 , d2 )
testInvalidMatchDomain ( ) { org . apache . ogt . http . impl . cookie . BasicClientCookie cookie = new org . apache . ogt . http . impl . cookie . BasicClientCookie ( "name" , null ) ; cookie . setDomain ( "beta.gamma.com" ) ; cookie . setAttribute ( ClientCookie . DOMAIN_ATTR , cookie . getDomain ( ) ) ; cookie . set...
org . junit . Assert . assertTrue ( cookiespec . match ( cookie , origin ) )
testDirectUsage ( ) { org . terracotta . offheapstore . storage . HalfStorageEngine < java . lang . Integer > engine = new org . terracotta . offheapstore . storage . IntegerStorageEngine ( ) ; for ( java . lang . Integer i : org . terracotta . offheapstore . storage . IntegerStorageEngineIT . TEST_CASES ) { int value ...
org . junit . Assert . assertEquals ( i , result )
testH2oPerm ( ) { com . alibaba . dubbo . common . serialize . SerializationCompareTest . Bean bean = new com . alibaba . dubbo . common . serialize . SerializationCompareTest . Bean ( ) ; int len = 0 ; long now = java . lang . System . currentTimeMillis ( ) ; for ( int i = 0 ; i < 500 ; i ++ ) { java . io . ByteArrayO...
org . junit . Assert . assertEquals ( in . readObject ( ) . getClass ( ) , com . alibaba . dubbo . common . serialize . SerializationCompareTest . Bean . class )
testEncodeWellKnown ( ) { byte [ ] data = new byte [ ] { 0 , 0 , 0 , 17 } ; org . dcache . oncrpc4j . xdr . XdrInt xInt = new org . dcache . oncrpc4j . xdr . XdrInt ( 17 ) ; try ( org . dcache . oncrpc4j . xdr . Xdr xdr = new org . dcache . oncrpc4j . xdr . Xdr ( 8 ) ) { xdr . beginEncoding ( ) ; xInt . xdrEncode ( xdr...
org . junit . Assert . assertArrayEquals ( data , xdr . getBytes ( ) )
testIncludeRelationsOnRoot ( ) { io . katharsis . queryspec . QuerySpec expectedSpec = new io . katharsis . queryspec . QuerySpec ( io . katharsis . resource . mock . models . Task . class ) ; expectedSpec . includeRelation ( java . util . Arrays . asList ( "project" ) ) ; java . util . Map < java . lang . String , jav...
org . junit . Assert . assertEquals ( expectedSpec , actualSpec )
testBuildWithDisabledStatusConstraint ( ) { unit . setActive ( false ) ; org . lnu . is . domain . optype . OperationType context = new org . lnu . is . domain . optype . OperationType ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>OperationType<sp>e<sp>WHERE<sp>e.crtUserGroup<sp>IN<sp>(:userGroups)...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testPublisherConvertorMapping ( ) { org . openl . rules . ruleservice . ws . logging . LoggingInfoMapper mapper = new org . openl . rules . ruleservice . ws . logging . LoggingInfoMapper ( ) ; org . openl . rules . ruleservice . ws . logging . RuleServiceLogging ruleServiceLoggingInfo = new org . openl . rules . rulese...
org . junit . Assert . assertEquals ( customString1 , testEntity . getValue3 ( ) )
testAdminAccessBug ( ) { getLdapServer ( ) . getDirectoryService ( ) . setAllowAnonymousAccess ( true ) ; final java . util . Hashtable < java . lang . String , java . lang . Object > env = new java . util . Hashtable < java . lang . String , java . lang . Object > ( ) ; env . put ( Context . PROVIDER_URL , org . apach...
org . junit . Assert . assertEquals ( "" , creatorsName . get ( ) )
testCountByG_U_R_F_M_StatusAny_DefaultRepository ( ) { com . liferay . portal . kernel . dao . orm . QueryDefinition < com . liferay . document . library . kernel . model . DLFileEntry > queryDefinition = new com . liferay . portal . kernel . dao . orm . QueryDefinition ( ) ; queryDefinition . setStatus ( WorkflowConst...
org . junit . Assert . assertEquals ( 3 , doCountBy_G_U_R_F_M_DefaultRepository ( 0 , null , queryDefinition ) )
testEncode ( ) { System . out . println ( "encode" ) ; java . lang . String data = "" ; kg . apc . jmeter . samplers . UDPTrafficDecoder instance = new kg . apc . jmeter . samplers . UDPTrafficDecoderTest . UDPTrafficDecoderImpl ( ) ; java . nio . ByteBuffer expResult = null ; java . nio . ByteBuffer result = instance ...
org . junit . Assert . assertEquals ( expResult , result )
isCanonical_FalseTest ( ) { java . lang . String acpString = "C0C1C2O3<sp>0:1(2),0:3(1),1:2(1),2:3(1)" ; org . openscience . cdk . interfaces . IAtomContainer ac = org . openscience . cdk . group . AtomContainerPrinter . fromString ( acpString , org . openscience . cdk . group . BondDiscretePartitionRefinerTest . build...
org . junit . Assert . assertFalse ( refiner . isCanonical ( ac ) )
testMin02 ( ) { javax . el . ELProcessor processor = new javax . el . ELProcessor ( ) ; java . lang . Object result = processor . getValue ( "[5,4,3,2,1].stream().min()" , java . lang . Object . class ) ; "<AssertPlaceHolder>" ; } get ( ) { return connectionList ; }
org . junit . Assert . assertEquals ( java . lang . Long . valueOf ( 1 ) , ( ( org . apache . el . stream . Optional ) ( result ) ) . get ( ) )
when_shipmentroute_loadAtAct2ShouldBe15 ( ) { stateManager . informInsertionStarts ( java . util . Arrays . asList ( shipment_route ) , java . util . Collections . < jsprit . core . algorithm . state . Job > emptyList ( ) ) ; jsprit . core . algorithm . state . Capacity atAct2 = stateManager . getActivityState ( shipme...
org . junit . Assert . assertEquals ( 15 , atAct2 . get ( 0 ) )
testHealthyPipelineChillModeRuleWithNoPipelines ( ) { java . lang . String storageDir = org . apache . hadoop . test . GenericTestUtils . getTempPath ( ( ( org . apache . hadoop . hdds . scm . chillmode . TestHealthyPipelineChillModeRule . class . getName ( ) ) + ( java . util . UUID . randomUUID ( ) ) ) ) ; try { org ...
org . junit . Assert . assertTrue ( healthyPipelineChillModeRule . validate ( ) )
testServiceLookup ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( service )
stark_should_read_kafka ( ) { for ( int i = 0 ; i < 10 ; i ++ ) { java . lang . String payload = generateMessge ( i ) ; KafkaProducerUtils . INSTANCE . produceMessages ( "testtopic" , java . lang . String . valueOf ( i ) , payload ) ; } fr . jetoile . hadoopunit . sample . kafka . KafkaStreamsPipelineJob kafkaStreamJob...
org . junit . Assert . assertEquals ( 10 , KafkaConsumerUtils . INSTANCE . getNumRead ( ) )
testErrorInTryErroInCatchFinally ( ) { org . jboss . additional . testsuite . jdkall . past . eap_6_4_x . management . cli . TryCatchFinallyTestCase . cliOut . reset ( ) ; final org . jboss . as . cli . CommandContext ctx = org . jboss . as . test . integration . management . util . CLITestUtil . getCommandContext ( or...
org . junit . Assert . assertEquals ( "finally" , getValue ( ) )
testMalformedAgeHeaderValueReturnsMaxAge ( ) { final org . apache . hc . core5 . http . Header [ ] headers = new org . apache . hc . core5 . http . Header [ ] { new org . apache . hc . core5 . http . message . BasicHeader ( "Age" , "asdf" ) } ; final org . apache . hc . client5 . http . cache . HttpCacheEntry entry = o...
org . junit . Assert . assertEquals ( CacheValidityPolicy . MAX_AGE , impl . getAgeValue ( entry ) )
computeComponentPathWithComponent ( ) { org . sonatype . nexus . repository . storage . Component component = createComponent ( "component" , "group" , "1.0.0" ) ; org . sonatype . nexus . repository . storage . Asset asset = createAsset ( "path/assetName" ) ; java . util . List < java . lang . String > path = generato...
org . junit . Assert . assertThat ( path , contains ( component . group ( ) , component . name ( ) , component . version ( ) ) )
emptyConstructorSucceeded ( ) { com . microsoft . azure . sdk . iot . provisioning . service . configs . BulkEnrollmentOperationResult bulkEnrollmentOperationResult = mockit . Deencapsulation . newInstance ( com . microsoft . azure . sdk . iot . provisioning . service . configs . BulkEnrollmentOperationResult . class )...
org . junit . Assert . assertNotNull ( bulkEnrollmentOperationResult )
testSignVerify ( ) { final org . pac4j . jwt . config . signature . ECSignatureConfiguration config = new org . pac4j . jwt . config . signature . ECSignatureConfiguration ( buildKeyPair ( ) ) ; final com . nimbusds . jwt . JWTClaimsSet claims = new com . nimbusds . jwt . JWTClaimsSet . Builder ( ) . subject ( org . pa...
org . junit . Assert . assertTrue ( config . verify ( signedJwt ) )
testBodyTemplate ( ) { freemarker . template . Template template = cfg . getTemplate ( getTemplatePath ( "position_body.html" ) ) ; java . util . Map < java . lang . String , java . lang . Object > params = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; params . put ( GlobalVariable . C...
org . junit . Assert . assertEquals ( expected , value )