input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
when_getSubmittedForm_is_called_on_postback_and_no_matching_component_is_found_then_null_is_returned ( ) { initializeRequestParameterMap ( new java . util . HashMap < java . lang . String , java . lang . String > ( ) { { put ( "same_but_no_clientId" , "same_but_no_clientId" ) ; } } ) ; javax . faces . component . UIVie...
org . junit . Assert . assertNull ( result )
test_matchSubUrls_fail_one_param_suffix1 ( ) { java . util . Map < java . lang . String , java . lang . String > params = urlMarcher . matchSubUrls ( "{id}-testX" , "abc-testY" ) ; "<AssertPlaceHolder>" ; } matchSubUrls ( java . lang . String , java . lang . String ) { boolean canContinue = true ; java . util . Map < j...
org . junit . Assert . assertTrue ( ( params == null ) )
testAddProperty ( ) { org . jboss . forge . addon . maven . profiles . ProfileBuilder profileBuilder = org . jboss . forge . addon . maven . profiles . ProfileBuilder . create ( ) . addProperty ( "prop1" , "val1" ) . addProperty ( "prop2" , "val2" ) . addProperty ( "prop3" , "prop3" ) ; org . apache . maven . model . P...
org . junit . Assert . assertThat ( mavenProfile . getProperties ( ) . size ( ) , org . hamcrest . CoreMatchers . is ( 3 ) )
testSimpleNestedPred ( ) { java . lang . String grammar = "options<sp>{\n" 2 + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "s<sp>:<sp>(expr<sp>\';\')+<sp>;\n" + "expr\n" ) + "options<sp>{\n" ) + "expr\n" 4 ) + "expr\n" 3 ) + "@init<sp>{System.out.println(\"enter<sp>expr<sp>\"expr\n" 6 ) + "<sp>:<sp>(atom<sp>\'x\')<sp>=><sp>atom<sp...
org . junit . Assert . assertEquals ( expecting , found )
testHeaders2 ( ) { java . lang . String content = "==<sp>Header<sp>1<sp>==\n===<sp>Header<sp>2<sp>===" ; java . lang . String expected = ( MediaWikiToCreoleTranslator . TABLE_OF_CONTENTS ) + content ; java . lang . String actual = _mediaWikiToCreoleTranslator . postProcess ( _translate ( content ) ) ; "<AssertPlaceHold...
org . junit . Assert . assertEquals ( expected , actual )
updateUnknownLengthUpdates ( ) { alluxio . master . block . meta . MasterBlockInfo info = new alluxio . master . block . meta . MasterBlockInfo ( 0 , alluxio . Constants . UNKNOWN_SIZE ) ; info . updateLength ( ( 2 * ( alluxio . Constants . KB ) ) ) ; "<AssertPlaceHolder>" ; } getLength ( ) { return 0 ; }
org . junit . Assert . assertEquals ( ( 2 * ( alluxio . Constants . KB ) ) , info . getLength ( ) )
testDegree3DescribeProcessParsing ( ) { if ( org . geotools . data . wps . ParsingTest . DISABLE ) { return ; } java . lang . Object object ; java . io . BufferedReader in = null ; try { org . geotools . xsd . Configuration config = new org . geotools . wps . WPSConfiguration ( ) ; java . net . URL url ; url = org . ge...
org . junit . Assert . assertNotNull ( processDesc )
manageModificationProcess_stop ( ) { paramHandler . getIaasContext ( ) . setVSystemStatus ( org . oscm . app . iaas . VSystemProcessorBeanTest . NORMAL ) ; doReturn ( VServerStatus . STOPPED ) . when ( this . vSystemProcessor . vserverComm ) . getNonErrorVServerStatus ( paramHandler ) ; org . oscm . app . iaas . data ....
org . junit . Assert . assertEquals ( FlowState . VSYSTEM_SCALE_DOWN , result )
analyzerBasicTest ( ) { java . lang . ClassLoader cl = this . getClass ( ) . getClassLoader ( ) ; java . io . File queryFile = new java . io . File ( cl . getResource ( "ParserTest/basic0_queries.txt" ) . getFile ( ) ) ; test . robustopt . Map < java . lang . String , test . robustopt . Set < java . lang . String > > s...
org . junit . Assert . assertFalse ( analyzer . hasUnresolvedColumn ( ) )
testTri ( ) { org . nd4j . linalg . api . ndarray . INDArray assertion = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] [ ] { new double [ ] { 1 , 1 , 1 , 0 , 0 } , new double [ ] { 1 , 1 , 1 , 1 , 0 } , new double [ ] { 1 , 1 , 1 , 1 , 1 } } ) ; org . nd4j . linalg . api . ndarray . INDArray tri = org ...
org . junit . Assert . assertEquals ( assertion , tri )
getStatus ( ) { new mockit . Expectations ( ) { { clientResponse . statusCode ( ) ; result = 123 ; } } ; "<AssertPlaceHolder>" ; } getStatus ( ) { return status ; }
org . junit . Assert . assertEquals ( 123 , response . getStatus ( ) )
testGetChemModelCount ( ) { org . openscience . cdk . interfaces . IChemSequence cs = ( ( org . openscience . cdk . interfaces . IChemSequence ) ( newChemObject ( ) ) ) ; cs . addChemModel ( cs . getBuilder ( ) . newInstance ( org . openscience . cdk . interfaces . IChemModel . class ) ) ; cs . addChemModel ( cs . getB...
org . junit . Assert . assertEquals ( 3 , cs . getChemModelCount ( ) )
getAllConceptNameLocales_shouldReturnAllLocalesForConceptNamesForThisConceptWithoutDuplicates ( ) { org . openmrs . Concept concept = new org . openmrs . Concept ( ) ; concept . addName ( new org . openmrs . ConceptName ( "UG" 2 , new java . util . Locale ( "UG" 1 ) ) ) ; concept . addName ( new org . openmrs . Concept...
org . junit . Assert . assertEquals ( 5 , localesForNames . size ( ) )
testModifyTicketUsesEmptyTicketId ( ) { org . irods . jargon . ticket . packinstr . TicketAdminInp pi = org . irods . jargon . ticket . packinstr . TicketAdminInp . instanceForModifyNumberOfUses ( "" , new java . lang . Integer ( 2 ) ) ; "<AssertPlaceHolder>" ; } instanceForModifyNumberOfUses ( java . lang . String , j...
org . junit . Assert . assertNotNull ( pi )
testGetOrigin_1 ( ) { org . audit4j . core . dto . AuditEvent fixture = new org . audit4j . core . dto . AuditEvent ( "" , "" , "" , new org . audit4j . core . dto . Field [ ] { } ) ; fixture . setFields ( new jsr166e . extra . ReadMostlyVector ( ) ) ; java . lang . String result = fixture . getOrigin ( ) ; "<AssertPla...
org . junit . Assert . assertEquals ( "" , result )
testPositionSearchWithVarLengthArrayWithNullValueAtTheStart2 ( ) { java . lang . String [ ] strArr = new java . lang . String [ 5 ] ; strArr [ 0 ] = null ; strArr [ 1 ] = "ereref" ; strArr [ 2 ] = "random" ; strArr [ 3 ] = null ; strArr [ 4 ] = "ran" ; org . apache . phoenix . schema . types . PhoenixArray arr = org . ...
org . junit . Assert . assertEquals ( "" , org . apache . hadoop . hbase . util . Bytes . toString ( res ) )
shoudlHaveAnAbsoluteValueOfOneDollar ( ) { com . wesabe . api . util . money . Money negativeOneDollar = new com . wesabe . api . util . money . Money ( decimal ( "-1.00" ) , USD ) ; com . wesabe . api . util . money . Money oneDollar = new com . wesabe . api . util . money . Money ( decimal ( "1.00" ) , USD ) ; "<Asse...
org . junit . Assert . assertEquals ( oneDollar , negativeOneDollar . abs ( ) )
testIsTextWithInvalidIndexAndLength ( ) { io . netty . buffer . ByteBuf buffer = io . netty . buffer . Unpooled . buffer ( ) ; try { buffer . writeBytes ( new byte [ 4 ] ) ; int [ ] [ ] validIndexLengthPairs = new int [ ] [ ] { new int [ ] { 4 , 0 } , new int [ ] { 0 , 4 } , new int [ ] { 1 , 3 } } ; for ( int [ ] pair...
org . junit . Assert . assertTrue ( io . netty . buffer . ByteBufUtil . isText ( buffer , pair [ 0 ] , pair [ 1 ] , CharsetUtil . US_ASCII ) )
testMissingFieldWithoutDefaultValue ( ) { org . apache . kafka . connect . data . Schema schema = org . apache . kafka . connect . data . SchemaBuilder . struct ( ) . field ( "field" , org . apache . kafka . connect . data . StructTest . REQUIRED_FIELD_SCHEMA ) . build ( ) ; org . apache . kafka . connect . data . Stru...
org . junit . Assert . assertNull ( struct . get ( "field" ) )
testDownloadArtifactWhoseSizeExceedsMaxHeapSize ( ) { long bytes = ( ( java . lang . Runtime . getRuntime ( ) . maxMemory ( ) ) * 5 ) / 4 ; generate . addContent ( "gid/aid/version/aid-version-classifier.extension" , bytes ) ; java . io . File f = org . sonatype . aether . test . util . TestFileUtils . createTempFile (...
org . junit . Assert . assertEquals ( bytes , f . length ( ) )
testSimpleJoinWithAdditionalFields ( ) { java . util . List < io . cdap . plugin . batch . joiner . Joiner . OutputFieldInfo > outputFieldInfos = new java . util . ArrayList ( ) ; outputFieldInfos . add ( new io . cdap . plugin . batch . joiner . Joiner . OutputFieldInfo ( "id" , "Join" 2 , "id" , Schema . Field . of (...
org . junit . Assert . assertEquals ( expected , fieldOperations )
newFilterChain_hasNoFilters ( ) { com . openpojo . reflection . filters . FilterChain filter = new com . openpojo . reflection . filters . FilterChain ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return pojoClassFilters . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , filter . size ( ) )
testGenerate ( ) { java . util . Set < java . lang . String > ids = new java . util . HashSet ( ) ; com . ctrip . xpipe . redis . core . redis . DefaultRunIdGenerator defaultRunIdGenerator = new com . ctrip . xpipe . redis . core . redis . DefaultRunIdGenerator ( ) ; for ( int i = 0 ; i < ( count ) ; i ++ ) { ids . add...
org . junit . Assert . assertEquals ( count , ids . size ( ) )
setMode ( ) { filters . setMode ( CompositeFilter . BITWISE_OR ) ; "<AssertPlaceHolder>" ; } getMode ( ) { return this . mode ; }
org . junit . Assert . assertEquals ( CompositeFilter . BITWISE_OR , filters . getMode ( ) )
maximumLength ( ) { builder . maximumLength ( 15 ) ; "<AssertPlaceHolder>" ; } maximumLength ( int ) { this . maximumLength = len ; return this ; }
org . junit . Assert . assertEquals ( builder . maximumLength , 15 )
testEquals ( ) { org . jfree . chart . plot . CombinedDomainCategoryPlot plot1 = createPlot ( ) ; org . jfree . chart . plot . CombinedDomainCategoryPlot plot2 = createPlot ( ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == o ) { return true ; } if ( ! ( o instanceof org . jfree . base ....
org . junit . Assert . assertTrue ( plot1 . equals ( plot2 ) )
shouldReturnBatchNumber ( ) { stubFieldDefinition ( belongsToType ) ; stubBelongsToType ( AdvancedGenealogyConstants . PLUGIN_IDENTIFIER , AdvancedGenealogyConstants . MODEL_BATCH ) ; stubBatchFieldEntityBatchNumber ( com . qcadoo . mes . advancedGenealogy . util . BatchUtilTest . BATCH_NUMBER ) ; java . lang . String ...
org . junit . Assert . assertEquals ( com . qcadoo . mes . advancedGenealogy . util . BatchUtilTest . BATCH_NUMBER , result )
testLeaseExpireEmptyFiles ( ) { final java . lang . Thread . UncaughtExceptionHandler oldUEH = java . lang . Thread . getDefaultUncaughtExceptionHandler ( ) ; java . lang . Thread . setDefaultUncaughtExceptionHandler ( new java . lang . Thread . UncaughtExceptionHandler ( ) { @ org . apache . hadoop . hdfs . Override p...
org . junit . Assert . assertFalse ( isConcurrentModificationException )
testGetTypeFromStringWhenFileContainsNoTypes ( ) { final org . springframework . roo . model . JavaType mockTargetType = mock ( org . springframework . roo . model . JavaType . class ) ; final org . springframework . roo . classpath . details . ClassOrInterfaceTypeDetails locatedType = typeParsingService . getTypeFromS...
org . junit . Assert . assertNull ( locatedType )
testParsingAndSerializationStability ( ) { java . lang . String queryString = "PREFIX<sp>mo:<sp><http://example.org/ontologies/market_ontology.owl#>\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<sp>}<sp>.\n" 9 + "<sp>}<sp>.\n" 7 ) + "<sp>}<sp>.\n" 6 ) + "<sp>?property<sp>r...
org . junit . Assert . assertEquals ( query1 . toString ( ) , query2 . toString ( ) )
getFiltersWhereFiltersAddedByAdd ( ) { net . coobird . thumbnailator . filters . ImageFilter filter1 = mock ( net . coobird . thumbnailator . filters . ImageFilter . class ) ; net . coobird . thumbnailator . filters . ImageFilter filter2 = mock ( net . coobird . thumbnailator . filters . ImageFilter . class ) ; net . c...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( filter1 , filter2 ) , returned )
testNullGetEntityContainerInfo ( ) { org . apache . olingo . odata2 . api . edm . provider . EntityContainerInfo entityContainer = null ; try { entityContainer = org . apache . olingo . odata2 . jpa . processor . core . edm . ODataJPAEdmProviderNegativeTest . edmProvider . getEntityContainerInfo ( "salesorderprocessing...
org . junit . Assert . assertNull ( entityContainer )
test5 ( ) { long prime1 = 30223 ; long prime2 = 30241 ; long remainder1 = 21175 ; long remainder2 = 29739 ; cc . redberry . rings . ChineseRemainders . ChineseRemainders . ChineseRemaindersMagicZp64 magic = cc . redberry . rings . ChineseRemainders . ChineseRemainders . createMagic ( prime1 , prime2 ) ; "<AssertPlaceHo...
org . junit . Assert . assertEquals ( cc . redberry . rings . ChineseRemainders . ChineseRemainders . ChineseRemainders ( prime1 , prime2 , remainder1 , remainder2 ) , cc . redberry . rings . ChineseRemainders . ChineseRemainders . ChineseRemainders ( magic , remainder1 , remainder2 ) )
testOn ( ) { "<AssertPlaceHolder>" ; } toOnOffString ( boolean ) { return org . dcache . util . Booleans . toPredefinedString ( value , "on" , "off" ) ; }
org . junit . Assert . assertEquals ( "on" , org . dcache . util . Booleans . toOnOffString ( true ) )
testRegisterHost ( ) { System . out . println ( "registerHost" ) ; com . intel . mtwilson . datatypes . TxtHostRecord hostObj = new com . intel . mtwilson . datatypes . TxtHostRecord ( ) ; hostObj . HostName = "10.1.71.169" ; hostObj . IPAddress = "10.1.71.169" ; hostObj . Port = 9999 ; com . intel . mtwilson . ms . bu...
org . junit . Assert . assertEquals ( expResult , result )
testKroneckerMultiplication1 ( ) { cc . redberry . rings . poly . MultivariateRing < cc . redberry . rings . poly . multivar . MultivariatePolynomialZp64 . MultivariatePolynomialZp64 > pRing = cc . redberry . rings . Rings . MultivariateRing ( cc . redberry . rings . poly . multivar . MultivariatePolynomialZp64 . Multi...
org . junit . Assert . assertEquals ( plain , kronecker )
initModelData_ImageDefined ( ) { profile . getOrganization ( ) . setImageDefined ( true ) ; ctrl . initModelData ( profile ) ; org . oscm . ui . profile . EditProfileModel model = ctrl . model ; "<AssertPlaceHolder>" ; } isOrganizationImageDefined ( ) { return organizationImageDefined ; }
org . junit . Assert . assertTrue ( model . isOrganizationImageDefined ( ) )
toRecords_PassInClassificationDataSet_ExpectNDArrayAndIntWritables ( ) { org . nd4j . linalg . api . ndarray . INDArray feature1 = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 4 , - 5.7 , 10 , - 0.1 } ) ; org . nd4j . linalg . api . ndarray . INDArray feature2 = org . nd4j . linalg . factory . Nd4j ...
org . junit . Assert . assertEquals ( 2 , writableList . size ( ) )
shouldDetermineEndOfResultsCorrectly ( ) { org . springframework . data . solr . core . query . result . DelegatingCursor . PartialResult < java . lang . String > result1 = new org . springframework . data . solr . core . query . result . DelegatingCursor . PartialResult ( "foo" , java . util . Arrays . asList ( "sprin...
org . junit . Assert . assertThat ( cursor . hasNext ( ) , org . hamcrest . core . Is . is ( false ) )
testMetricFamilySamples ( ) { io . prometheus . client . Collector g = io . prometheus . client . Gauge . build ( ) . name ( "g" ) . help ( "h" ) . register ( registry ) ; io . prometheus . client . Collector c = io . prometheus . client . Counter . build ( ) . name ( "c" ) . help ( "h" ) . register ( registry ) ; io ....
org . junit . Assert . assertEquals ( new java . util . HashSet < java . lang . String > ( java . util . Arrays . asList ( "g" , "c" , "s" ) ) , names )
testResourceVisitTerminate ( ) { java . io . File tempDir = org . jboss . forge . furnace . util . OperatingSystemUtils . createTempDir ( ) ; tempDir . deleteOnExit ( ) ; java . io . File tempFile = createTempFile ( tempDir , false ) ; tempFile . deleteOnExit ( ) ; java . io . File tempFile2 = createTempFile ( tempDir ...
org . junit . Assert . assertEquals ( 1 , integer . get ( ) )
testEmptyEqualsNull ( ) { org . locationtech . udig . ui . NumberCellEditor editor ; editor = new org . locationtech . udig . ui . NumberCellEditor ( shell , org . locationtech . udig . ui . Integer . class ) ; editor . setValue ( "" ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; }
org . junit . Assert . assertNull ( editor . getValue ( ) )
testParseTimestampInvalid ( ) { final long time = new ch . cyberduck . core . ftp . list . FTPMlsdListResponseReader ( ) . parseTimestamp ( "2013" ) ; "<AssertPlaceHolder>" ; } parseTimestamp ( java . lang . String ) { if ( null == timestamp ) { return - 1 ; } try { final java . util . Date parsed = new ch . cyberduck ...
org . junit . Assert . assertEquals ( ( - 1L ) , time )
testFullSubjectRateShouldBeDefined ( ) { org . drugis . addis . entities . RateMeasurement base = new org . drugis . addis . entities . BasicRateMeasurement ( 50 , 100 ) ; org . drugis . addis . entities . RateMeasurement subj = new org . drugis . addis . entities . BasicRateMeasurement ( 100 , 100 ) ; org . drugis . a...
org . junit . Assert . assertTrue ( or . isDefined ( ) )
testTrue ( ) { this . verifier . withCreateActualResultsOnFailure ( true ) . verify ( TableTestUtils . TABLE_NAME , TableTestUtils . ACTUAL ) ; "<AssertPlaceHolder>" ; } getActualFile ( ) { java . io . File dir = this . directoryStrategy . getActualDirectory ( this . description . getTestClass ( ) ) ; java . lang . Str...
org . junit . Assert . assertFalse ( this . verifier . getActualFile ( ) . exists ( ) )
shouldReturnFalseWhenCheckIfProductIsNotAlreadyUsed ( ) { given ( companyProductService . checkIfProductIsNotUsed ( companyProduct , com . qcadoo . mes . deliveries . hooks . PRODUCT , com . qcadoo . mes . deliveries . hooks . COMPANY , com . qcadoo . mes . deliveries . hooks . PRODUCTS ) ) . willReturn ( false ) ; boo...
org . junit . Assert . assertFalse ( result )
sortShouldBeTakenAsIsWhenExecutingQueryWithoutSpecificTypeInformation ( ) { org . springframework . data . mongodb . core . query . Query query = org . springframework . data . mongodb . core . query . Query . query ( org . springframework . data . mongodb . core . query . Criteria . where ( "foo" ) . is ( "bar" ) ) . ...
org . junit . Assert . assertThat ( captor . getValue ( ) , equalTo ( new org . bson . Document ( "foo" , 1 ) ) )
testMavenArgsMissing ( ) { java . lang . String cmd = "clean<sp>install" ; org . wildfly . swarm . internal . MavenArgsParser args = org . wildfly . swarm . internal . MavenArgsParser . parse ( cmd ) ; java . util . Optional < java . lang . String > f_arg = args . get ( MavenArgsParser . ARG . F ) ; "<AssertPlaceHolder...
org . junit . Assert . assertFalse ( f_arg . isPresent ( ) )
functionCallHashedParamsSideBySide ( ) { java . lang . String script = "arrayAppend(<sp>variables.framework.routes,<sp>{<sp>'#method##route#'<sp>:<sp>target<sp>}<sp>);" ; cfml . CFSCRIPTParser . ScriptBlockContext scriptStatement = parseScript ( script ) ; if ( ( fCfmlParser . getMessages ( ) . size ( ) ) > 0 ) { org ....
org . junit . Assert . assertNotNull ( scriptStatement )
shouldCopyReturnAnIdenticalVariable ( ) { org . uma . jmetal . solution . BinarySolution expectedSolution = problem . createSolution ( ) ; org . uma . jmetal . solution . BinarySolution newSolution = ( ( org . uma . jmetal . solution . BinarySolution ) ( expectedSolution . copy ( ) ) ) ; "<AssertPlaceHolder>" ; } copy ...
org . junit . Assert . assertEquals ( expectedSolution , newSolution )
testNameDefaultsToActionsMethodName ( ) { final java . lang . String name = "Reduceheadcount" ; final org . apache . isis . core . metamodel . facets . all . named . NamedFacet facet = new org . apache . isis . core . metamodel . facets . all . named . NamedFacetAbstract ( name , true , mockFacetedMethod ) { } ; contex...
org . junit . Assert . assertThat ( action . getName ( ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( name ) ) )
testEqualsWithEqualObjects ( ) { edu . illinois . library . cantaloupe . http . KeyValuePair instance2 = new edu . illinois . library . cantaloupe . http . KeyValuePair ( "key" , "value" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( instance , instance2 )
testAsIntWithDefault ( ) { final org . jboss . dmr . BytesModelValue value = new org . jboss . dmr . BytesModelValue ( new byte [ ] { ( ( byte ) ( 0 ) ) } ) ; "<AssertPlaceHolder>" ; } asInt ( int ) { return value ; }
org . junit . Assert . assertEquals ( 0 , value . asInt ( 5 ) )
shouldBeAbleToAddNode ( ) { org . neo4j . neode . test . Db . usingSampleDataset ( new org . neo4j . neode . test . Db . WithSampleDataset ( ) { @ org . neo4j . neode . Override public void execute ( org . neo4j . graphdb . GraphDatabaseService db , org . neo4j . graphdb . Node firstNode , org . neo4j . graphdb . Node ...
org . junit . Assert . assertThat ( nodeCollection , returnsSameItems ( expectedNodes ) )
testFalseOngelijkeBSN ( ) { setup ( true , true ) ; org . mockito . Mockito . when ( persoon . getAdministratienummer ( ) ) . thenReturn ( nl . bzk . migratiebrp . synchronisatie . runtime . service . toevalligegebeurtenis . controle . persoon . PersoonControleTest . ANUMMER ) ; org . mockito . Mockito . when ( persoon...
org . junit . Assert . assertFalse ( subject . controleer ( persoon , verzoek ) )
ruleSuggestionsSelectMiddleText ( ) { com . dremio . dac . explore . model . extract . Selection selection = new com . dremio . dac . explore . model . extract . Selection ( "col" , "This<sp>is<sp>a<sp>text" , 5 , 2 ) ; java . util . List < com . dremio . dac . proto . model . dataset . ReplacePatternRule > rules = rec...
org . junit . Assert . assertEquals ( 2 , rules . size ( ) )
showCustomerSelectStep_VisibleForReseller ( ) { model . setSelectedBillingDataType ( BillingDataType . CustomerBillingData ) ; java . util . List < org . oscm . internal . types . enumtypes . BillingSharesResultType > orgRoles = new java . util . ArrayList < org . oscm . internal . types . enumtypes . BillingSharesResu...
org . junit . Assert . assertTrue ( result )
checkStatusNotRunning ( ) { final java . lang . String response = testee . checkStatus ( "localhost" , 28311 ) ; "<AssertPlaceHolder>" ; } checkStatus ( java . lang . String , int ) { try { final java . lang . String response = execute ( host , port , "status" ) . trim ( ) ; if ( "ok" . equals ( response ) ) { return (...
org . junit . Assert . assertEquals ( "Stopped" , response )
testEmptySources ( ) { org . apache . tez . runtime . library . input . TestSortedGroupedMergedInput . SortedTestKeyValuesReader kvsReader1 = new org . apache . tez . runtime . library . input . TestSortedGroupedMergedInput . SortedTestKeyValuesReader ( new int [ ] { } , new int [ ] [ ] { } ) ; org . apache . tez . run...
org . junit . Assert . assertTrue ( ( ( kvsReader . next ( ) ) == false ) )
testCreateValueCompositeKeyNullParam ( ) { final java . lang . Object result = simpleKeyIndexDefinition . createValue ( ( ( java . lang . Object ) ( null ) ) ) ; "<AssertPlaceHolder>" ; } createValue ( java . lang . Object [ ] ) { if ( ! ( ( params [ 0 ] ) instanceof com . orientechnologies . orient . core . index . Ma...
org . junit . Assert . assertNull ( result )
test_validateUpdateWBUri_BadResourceType ( ) { errorsContainer . put ( "resourceType" , WPBErrors . ERROR_INVALID_VALUE ) ; wburi . setHttpOperation ( "GET" ) ; wburi . setUri ( "/test" ) ; wburi . setResourceExternalKey ( "abc" ) ; wburi . setEnabled ( 1 ) ; wburi . setExternalKey ( "xyz" ) ; wburi . setResourceType (...
org . junit . Assert . assertTrue ( errorsContainer . equals ( errors ) )
testConfigureEnableLowercase ( ) { System . out . println ( ( ( getTestTraceHead ( "[NGSIPostgisSink.configure]" ) ) + "--------<sp>enable_lowercase<sp>can<sp>only<sp>be<sp>'true'<sp>or<sp>'false'" ) ) ; java . lang . String attrPersistence = null ; java . lang . String batchSize = null ; java . lang . String batchTime...
org . junit . Assert . assertTrue ( sink . getInvalidConfiguration ( ) )
getValueStringByKey_good_case ( ) { java . util . HashMap < java . lang . String , java . lang . String > map = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; map . put ( "key1" , "value1" ) ; map . put ( "key2" , "value2" ) ; map . put ( "key3" , "value3" ) ; java . lang . String keyNa...
org . junit . Assert . assertEquals ( expResult , result )
testOnNullResult ( ) { mAddMetaDataConsumer . onNewResult ( null , Consumer . IS_LAST ) ; com . facebook . imagepipeline . producers . ArgumentCaptor < com . facebook . imagepipeline . image . EncodedImage > argumentCaptor = com . facebook . imagepipeline . producers . ArgumentCaptor . forClass ( com . facebook . image...
org . junit . Assert . assertEquals ( encodedImage , null )
validate_shouldPassEditingEncounterTypeName ( ) { org . openmrs . RelationshipType type = new org . openmrs . RelationshipType ( ) ; type . setaIsToB ( "Doctor" ) ; type . setbIsToA ( "Patient" ) ; org . springframework . validation . Errors errors = new org . springframework . validation . BindException ( type , "type...
org . junit . Assert . assertTrue ( errors . hasErrors ( ) )
testGetSize ( ) { dk . alexandra . fresco . framework . util . RegularBitVector vector = new dk . alexandra . fresco . framework . util . RegularBitVector ( 10 ) ; "<AssertPlaceHolder>" ; } getSize ( ) { return values . getSize ( ) ; }
org . junit . Assert . assertEquals ( 10 , vector . getSize ( ) )
should_build_valid_integration_test_result ( ) { org . sonar . wsclient . services . Measure measure = new org . sonar . wsclient . services . Measure ( ) ; measure . setValue ( 8.0 ) ; when ( sonarClient . findMeasure ( "artifactId" , "it_coverage" ) ) . thenReturn ( measure ) ; fr . norad . visuwall . api . domain . ...
org . junit . Assert . assertEquals ( 8 , integrationTestResult . getCoverage ( ) , 0 )
testGetFundamentalDimension ( ) { tec . units . ri . spi . DimensionalModel model = new tec . units . ri . spi . TestModel ( ) ; javax . measure . Dimension dim = tec . units . ri . quantity . QuantityDimension . parse ( 'a' ) ; javax . measure . Dimension fund = model . getFundamentalDimension ( dim ) ; "<AssertPlaceH...
org . junit . Assert . assertNotNull ( fund )
treeData_re_add_removed_item ( ) { com . vaadin . data . provider . StrBean item = rootData . get ( 0 ) ; data . removeItem ( item ) . addItem ( null , item ) ; "<AssertPlaceHolder>" ; } getChildren ( T ) { if ( ! ( contains ( item ) ) ) { throw new java . lang . IllegalArgumentException ( ( ( "Item<sp>'" + item ) + "'...
org . junit . Assert . assertTrue ( data . getChildren ( null ) . contains ( item ) )
generateWithMassAdjunct ( ) { org . openscience . cdk . renderer . generators . standard . AtomSymbol symbol = atomGenerator . generatePeriodicSymbol ( 7 , 0 , 15 , 0 , 0 , HydrogenPosition . Right ) ; "<AssertPlaceHolder>" ; } getOutlines ( ) { java . util . List < java . awt . Shape > shapes = new java . util . Array...
org . junit . Assert . assertThat ( symbol . getOutlines ( ) . size ( ) , org . hamcrest . CoreMatchers . is ( 2 ) )
testCreateServiceDescriptor ( ) { java . lang . Class < com . google . api . ads . common . lib . soap . testing . MockSoapClientInterface > interfaceClass = com . google . api . ads . common . lib . soap . testing . MockSoapClientInterface . class ; when ( adsServiceDescriptorFactory . create ( interfaceClass , com . ...
org . junit . Assert . assertSame ( adsServiceDescriptor , testAdsServiceDescriptor )
testSerialization ( ) { org . jfree . chart . block . FlowArrangement f1 = new org . jfree . chart . block . FlowArrangement ( org . jfree . chart . ui . HorizontalAlignment . LEFT , org . jfree . chart . ui . VerticalAlignment . TOP , 1.0 , 2.0 ) ; java . io . ByteArrayOutputStream buffer = new java . io . ByteArrayOu...
org . junit . Assert . assertEquals ( f1 , f2 )
testHistogram ( ) { fi . csc . microarray . databeans . DataBean dataBean = manager . createDataBean ( "Hist.<sp>data" , getInputStream ( TestConstants . FOUR_CHIPS_RESOURCE ) ) ; fi . csc . microarray . client . visualisation . Visualisation . Variable [ ] variables = MicroarrayModule . VisualisationMethods . HISTOGRA...
org . junit . Assert . assertEquals ( 4 , variables . length )
shouldFindAllMarkersForNativeSearchQuery ( ) { loadAnnotationBaseEntities ( ) ; org . springframework . data . elasticsearch . core . query . NativeSearchQueryBuilder queryBuilder = new org . springframework . data . elasticsearch . core . query . NativeSearchQueryBuilder ( ) . withFilter ( org . elasticsearch . index ...
org . junit . Assert . assertThat ( geoAuthorsForGeoCriteria . size ( ) , is ( 3 ) )
testHelp ( ) { at . favre . tools . uberadb . ui . Arg parsedArg = at . favre . tools . uberadb . ui . CLIParser . parse ( at . favre . tools . uberadb . ui . CLIParserTest . asArgArray ( "--help" ) ) ; "<AssertPlaceHolder>" ; } asArgArray ( java . lang . String ) { return org . apache . tools . ant . types . Commandli...
org . junit . Assert . assertNull ( parsedArg )
testGooglePageSearchForm ( ) { com . gistlabs . mechanize . Mechanize agent = new com . gistlabs . mechanize . impl . MechanizeAgent ( ) ; com . gistlabs . mechanize . document . AbstractDocument page = agent . get ( "http://www.google.com" ) ; com . gistlabs . mechanize . document . html . form . Form form = page . fo...
org . junit . Assert . assertTrue ( response . getTitle ( ) . startsWith ( "mechanize<sp>java" ) )
toPOUserGroups_null ( ) { java . util . List < org . oscm . internal . usergroupmgmt . POUserGroup > poUserGroup = org . oscm . internal . assembler . POUserGroupAssembler . toPOUserGroups ( null ) ; "<AssertPlaceHolder>" ; } toPOUserGroups ( java . util . List ) { return org . oscm . internal . assembler . POUserGroup...
org . junit . Assert . assertNull ( poUserGroup )
whenConvertStringToByteArrayUsingStringClass_thenOk ( ) { final java . lang . String originalInput = "test<sp>input" ; byte [ ] result = originalInput . getBytes ( ) ; System . out . println ( java . util . Arrays . toString ( result ) ) ; "<AssertPlaceHolder>" ; } toString ( java . lang . Object ) { java . text . Simp...
org . junit . Assert . assertEquals ( originalInput . length ( ) , result . length )
ruleSuggestionsSelectNumberAtTheEnd ( ) { com . dremio . dac . explore . model . extract . Selection selection = new com . dremio . dac . explore . model . extract . Selection ( "col" , "883<sp>N<sp>Shoreline<sp>Blvd,<sp>Mountain<sp>View,<sp>CA<sp>94043" , 40 , 5 ) ; java . util . List < com . dremio . dac . proto . mo...
org . junit . Assert . assertEquals ( 3 , rules . size ( ) )
testMath798WithToleranceTooLow ( ) { final double tol = 1.0E-100 ; final org . apache . commons . math3 . optimization . SimpleVectorValueChecker checker = new org . apache . commons . math3 . optimization . SimpleVectorValueChecker ( tol , tol ) ; final double [ ] init = new double [ ] { 0 , 0 } ; final int maxEval = ...
org . junit . Assert . assertEquals ( lm [ i ] , gn [ i ] , tol )
testMultipleUnique ( ) { java . lang . String ddl = ")<sp>AS<sp>\n" 2 + ( ( ( ( ( ( ( ( ( ( ")<sp>AS<sp>\n" 4 + "keyvalue<sp>string<sp>UNIQUE\n" ) + ")<sp>AS<sp>\n" ) + "SELECT<sp>1<sp>as<sp>id,<sp>\'a\'<sp>as<sp>keyvalue\n" ) + ")<sp>AS<sp>\n" 3 ) + ")<sp>AS<sp>\n" 4 ) + "fkvalue<sp>string,\n" ) + ")<sp>AS<sp>\n" 5 ) ...
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
testIsInMaintenanceStates ( ) { boolean b = host . isInMaintenanceStates ( ) ; "<AssertPlaceHolder>" ; } isInMaintenanceStates ( ) { return ( ( ( getResourceState ( ) ) == ( com . cloud . resource . ResourceState . Maintenance ) ) || ( ( getResourceState ( ) ) == ( com . cloud . resource . ResourceState . ErrorInMainte...
org . junit . Assert . assertFalse ( b )
testGetSwitchPortsForValidSwitchId ( ) { com . vmware . vrack . hms . node . switches . SwitchNodeConnectorTest . logger . info ( "[TS]<sp>:<sp>testGetSwitchPortsForValidSwitchId" ) ; java . lang . String switchId = "S0" ; java . util . List < java . lang . String > result = com . vmware . vrack . hms . node . switches...
org . junit . Assert . assertFalse ( result . isEmpty ( ) )
testToString ( ) { br . com . insula . opes . ContaCorrente contaCorrente = br . com . insula . opes . ContaCorrente . fromString ( "3522" ) ; "<AssertPlaceHolder>" ; } toString ( ) { return numero ; }
org . junit . Assert . assertEquals ( "3522" , contaCorrente . toString ( ) )
fromVendorEmptyParameter ( ) { com . navercorp . pinpoint . common . util . JvmType actualType = com . navercorp . pinpoint . common . util . JvmType . fromVendor ( "" ) ; "<AssertPlaceHolder>" ; } fromVendor ( java . lang . String ) { if ( vendorName == null ) { return com . navercorp . pinpoint . common . util . JvmT...
org . junit . Assert . assertSame ( JvmType . UNKNOWN , actualType )
test_toImmutableSetHandlingDuplicates ( ) { final java . util . List < java . lang . Integer > source = java . util . Arrays . asList ( 1 , 2 , 3 , 1 ) ; try { final java . util . Set < java . lang . Integer > result = source . stream ( ) . collect ( de . metas . util . GuavaCollectors . toImmutableSetHandlingDuplicate...
org . junit . Assert . assertEquals ( expected , actual )
testHasTestMethodKeywordNotMatchesTestMethodPattern ( ) { com . sonar . sslr . api . AstNode astNode = mock ( com . sonar . sslr . api . AstNode . class ) ; com . sonar . sslr . api . AstNode modifier = mock ( com . sonar . sslr . api . AstNode . class ) ; com . sonar . sslr . api . AstNode notTestMethodNode = mock ( c...
org . junit . Assert . assertFalse ( org . fundacionjala . enforce . sonarqube . apex . utils . MethodChecksUtils . hasTestMethodKeyword ( astNode ) )
testCheck ( ) { tested = new org . kie . workbench . common . stunner . core . client . canvas . command . UpdateCanvasControlPointPositionCommand ( edge , newControlPoints ) ; org . kie . workbench . common . stunner . core . command . CommandResult < org . kie . workbench . common . stunner . core . client . command ...
org . junit . Assert . assertFalse ( org . kie . workbench . common . stunner . core . command . util . CommandUtils . isError ( result ) )
testDefaultFocusElementWithDefaultValue ( ) { de . lessvoid . nifty . controls . dynamic . ScreenCreator createWithId = new de . lessvoid . nifty . controls . dynamic . ScreenCreator ( "myid" ) ; de . lessvoid . nifty . screen . Screen screen = createWithId . create ( niftyMock ) ; "<AssertPlaceHolder>" ; } getDefaultF...
org . junit . Assert . assertNull ( screen . getDefaultFocusElementId ( ) )
testReturnsSaveLocalesCopy ( ) { com . eclipsesource . tabris . test . util . TabrisRequest request = environment . newGetRequest ( ) ; request . setHeader ( "Accept-Language" , "anything" ) ; request . setLocales ( new java . util . Locale ( "en-US" ) ) ; com . eclipsesource . tabris . internal . ClientDeviceImpl devi...
org . junit . Assert . assertEquals ( new java . util . Locale ( "en-US" ) , locales [ 0 ] )
testNotNullOrEmptyStringNull ( ) { try { org . arquillian . droidium . container . configuration . Validate . notNullOrEmpty ( null , "String<sp>you<sp>passed<sp>is<sp>empty!" ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . IllegalStateException ex ) { java . lang . String expected = "String<sp>you<sp>pas...
org . junit . Assert . assertEquals ( expected , ex . getMessage ( ) )
get ( ) { java . util . List < com . foxinmy . weixin4j . mp . model . Group > groups = groupApi . getGroups ( ) ; System . err . println ( groups ) ; "<AssertPlaceHolder>" ; } size ( ) { return this . headers . size ( ) ; }
org . junit . Assert . assertTrue ( ( ( groups . size ( ) ) > 0 ) )
testToolchainsForConfiguredType ( ) { org . apache . maven . execution . MavenSession session = mock ( org . apache . maven . execution . MavenSession . class ) ; org . apache . maven . execution . MavenExecutionRequest req = new org . apache . maven . execution . DefaultMavenExecutionRequest ( ) ; when ( session . get...
org . junit . Assert . assertEquals ( 2 , toolchains . length )
testSetEnabled ( ) { "<AssertPlaceHolder>" ; } getEnabled ( ) { return enabled ; }
org . junit . Assert . assertThat ( target . getEnabled ( ) , org . hamcrest . CoreMatchers . is ( false ) )
testConvertAll ( ) { java . lang . Long id = 1L ; java . lang . String abbrName = "abbr<sp>Name" ; java . lang . String name = "n<sp>a<sp>m<sp>e" ; org . lnu . is . resource . education . type . EducationTypeResource source = new org . lnu . is . resource . education . type . EducationTypeResource ( ) ; source . setId ...
org . junit . Assert . assertEquals ( expecteds , actuals )
selfAndOtherWithCommaAsOperator ( ) { final com . b2international . index . query . Expression actual = eval ( ( ( ( com . b2international . snowowl . snomed . core . ecl . SnomedEclEvaluationRequestTest . ROOT_ID ) + "<sp>,<sp>" ) + ( com . b2international . snowowl . snomed . core . ecl . SnomedEclEvaluationRequestTe...
org . junit . Assert . assertEquals ( expected , actual )
testFromHL7Null ( ) { org . openehealth . ipf . commons . ihe . xds . core . metadata . PatientInfo patientInfo = new org . openehealth . ipf . commons . ihe . xds . core . metadata . PatientInfo ( ) ; transformer . fromHL7 ( null , patientInfo ) ; "<AssertPlaceHolder>" ; } getGender ( ) { return gender ; }
org . junit . Assert . assertNull ( patientInfo . getGender ( ) )
testSetVolumeOffline ( ) { com . iwave . ext . netapp . Volume vol = new com . iwave . ext . netapp . Volume ( com . iwave . ext . netapp . VolumeTest . server , com . iwave . ext . netapp . VolumeTest . VOL_NAME ) ; vol . setVolumeOffline ( 0 ) ; "<AssertPlaceHolder>" ; } setVolumeOffline ( int ) { if ( ! ( isOnline (...
org . junit . Assert . assertTrue ( true )
testCheckSimpleRequestTypeAnyOrigin ( ) { org . apache . catalina . filters . TesterHttpServletRequest request = new org . apache . catalina . filters . TesterHttpServletRequest ( ) ; request . setHeader ( CorsFilter . REQUEST_HEADER_ORIGIN , "http://www.w3.org" ) ; request . setMethod ( "GET" ) ; org . apache . catali...
org . junit . Assert . assertEquals ( CorsFilter . CORSRequestType . SIMPLE , requestType )
testSet ( ) { java . lang . Object c = new com . glassdoor . planout4j . planout . ops . JSONObjectBuilder ( ) . p ( "op" , "set" ) . p ( "value" , "x_val" ) . p ( "var" , "x" ) ; java . util . Map < java . lang . String , java . lang . Object > d = runConfig ( c ) ; "<AssertPlaceHolder>" ; } runConfig ( java . lang . ...
org . junit . Assert . assertEquals ( com . google . common . collect . ImmutableMap . of ( "x" , "x_val" ) , d )