input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testGetNullValue ( ) { java . lang . String value = nameResolver . getValue ( null ) ; "<AssertPlaceHolder>" ; } getValue ( K extends org . eclipse . emf . ecore . EObject ) { return object != null ? valueCache . get ( object ) : null ; }
org . junit . Assert . assertNull ( value )
testOrEmptyB ( ) { java . util . List < java . lang . Integer > cl = toList ( org . apache . solr . search . xjoin . Combinations . or ( a , e ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( as ) , cl )
testElimina ( ) { log . debug ( "Test<sp>'elimina'<sp>paquete" ) ; mx . edu . um . mateo . general . model . Usuario usuario = obtieneUsuario ( ) ; mx . edu . um . mateo . inscripciones . model . TiposBecas tiposBecas = new mx . edu . um . mateo . inscripciones . model . TiposBecas ( ) ; tiposBecas . setDescripcion ( "...
org . junit . Assert . assertNotNull ( becaAdicional . getId ( ) )
testPersoonGeslachtsnaamcomponentGeenSleutel ( ) { java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > overtreders = brby9910 . voerRegelUit ( maakPersoonGeslachtsnaamcomponentView ( nl . bzk . brp . bijhouding . business . regels . impl . gegevenset . bericht . request . BRBY9910Test . GROEPID1 ) ,...
org . junit . Assert . assertEquals ( 0 , overtreders . size ( ) )
post ( ) { final java . lang . String path = "/data" ; final java . lang . String body = "body" ; final org . sentilo . common . rest . RequestContext rc = new org . sentilo . common . rest . RequestContext ( path , body ) ; final java . lang . String responseContent = "Lorem<sp>ipsum" ; final org . apache . http . Sta...
org . junit . Assert . assertEquals ( responseContent , result )
typeTest ( ) { eu . neclab . iotplatform . iotbroker . core . junittests . tests . TestFunctionality . logger . info ( "Now<sp>testing<sp>FIWARE.Feature.IoT.BackendThingsManagement.Query.typeBased" ) ; org . easymock . EasyMock . expect ( ngsi9InterfaceMock . discoverContextAvailability ( discoverReq_type ) ) . andRetu...
org . junit . Assert . assertEquals ( brokerResp , queryResp )
testZeroMatches ( ) { clickComboBoxTextArea ( ) ; sleep ( 250 ) ; typeString ( "1" ) ; "<AssertPlaceHolder>" ; } getNumberOfSuggestions ( ) { java . util . List < org . openqa . selenium . WebElement > elements = getDriver ( ) . findElements ( com . vaadin . testbench . By . className ( "gwt-MenuItem" ) ) ; return elem...
org . junit . Assert . assertEquals ( 0 , getNumberOfSuggestions ( ) )
DateWriter_date_extended ( ) { java . lang . String expected = "2013-06-11" ; java . lang . String actual = biweekly . io . scribe . property . ICalPropertyScribe . date ( new biweekly . util . ICalDate ( datetime , false ) ) . extended ( true ) . write ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( expected , actual )
removeCohortMember_shouldRemoveCohortMember ( ) { org . springframework . mock . web . MockHttpServletRequest req = request ( RequestMethod . DELETE , ( ( ( ( ( getURI ( ) ) + "/" ) + ( getUuid ( ) ) ) + "/member/" ) + ( org . openmrs . module . webservices . rest . web . v1_0 . controller . openmrs1_8 . CohortMemberCo...
org . junit . Assert . assertTrue ( ( ! ( cohort . contains ( patient ) ) ) )
shouldLogDebugMessageGivenSupplier ( ) { when ( innerLogger . isDebugEnabled ( ) ) . thenReturn ( true ) ; logger . debug ( msgSupplier ) ; verify ( msgSupplier , times ( 1 ) ) . get ( ) ; verify ( innerLogger , times ( 1 ) ) . debug ( eq ( io . confluent . common . logging . StructuredLoggerImplTest . LOG_MSG ) , capt...
org . junit . Assert . assertThat ( captor . getValue ( ) . getMessage ( ) , org . hamcrest . CoreMatchers . is ( msg ) )
modifies_an_existing_key ( ) { com . noodlesandwich . rekord . Rekord < com . noodlesandwich . rekord . keys . Address > address = Address . rekord . with ( com . noodlesandwich . rekord . keys . FunctionKeyTest . houseNumberString , "42" ) . with ( Address . street , "Maida<sp>Vale" ) ; "<AssertPlaceHolder>" ; } get (...
org . junit . Assert . assertThat ( address . get ( com . noodlesandwich . rekord . keys . FunctionKeyTest . houseNumberString ) , org . hamcrest . Matchers . is ( "42" ) )
test_param_string_copy_3 ( ) { org . apache . jena . query . ParameterizedSparqlString query = new org . apache . jena . query . ParameterizedSparqlString ( ) ; query . setNsPrefix ( "ex" , "http://example.org" ) ; org . apache . jena . query . ParameterizedSparqlString copy = query . copy ( ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertEquals ( "http://example.org" , copy . getNsPrefixURI ( "ex" ) )
work_day_query ( ) { java . time . LocalDate date = java . time . LocalDate . of ( 2014 , Month . FEBRUARY , 2 ) ; java . lang . Boolean workDay = date . query ( new com . levelup . java . date . query . WorkDayQuery ( ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertFalse ( workDay )
testNonExistingFile ( ) { java . io . File nonExistingFile = new java . io . File ( "notExistingFile" ) ; "<AssertPlaceHolder>" ; try { org . apache . poi . ss . usermodel . WorkbookFactory . create ( nonExistingFile , "password" , true ) ; org . junit . Assert . fail ( "Should<sp>not<sp>be<sp>able<sp>to<sp>create<sp>f...
org . junit . Assert . assertFalse ( nonExistingFile . exists ( ) )
shouldValidatePayment ( ) { com . sctrcd . payments . facts . Payment payment = new com . sctrcd . payments . facts . Payment ( ) ; payment . setIban ( "ES23<sp>0217<sp>0099<sp>47" ) ; com . sctrcd . payments . validation . payment . FxPaymentValidationResult result = controller . validatePayment ( payment ) ; "<Assert...
org . junit . Assert . assertNotNull ( result )
sequentialStatements ( ) { org . watertemplate . interpreter . parser . AbstractSyntaxTree abs = new org . watertemplate . interpreter . parser . AbstractSyntaxTree . Statements ( java . util . Arrays . asList ( new org . watertemplate . interpreter . parser . AbstractSyntaxTree . Id ( "x" ) , new org . watertemplate ....
org . junit . Assert . assertEquals ( "square" 0 , result )
testErrorIDGenerator_null_location ( ) { boolean isArgException = false ; try { org . ebayopensource . turmeric . tools . errorlibrary . ErrorIdGeneratorFactory . getErrorIdGenerator ( null , org . ebayopensource . turmeric . tools . errorlibrary . ErrorIdGeneratorTests . PAY_ORG_NAME ) ; } catch ( java . lang . Except...
org . junit . Assert . assertTrue ( isArgException )
forEachWith ( ) { org . eclipse . collections . api . collection . MutableCollection < java . lang . Integer > result = org . eclipse . collections . impl . set . mutable . UnifiedSet . newSet ( ) ; this . classUnderTest ( ) . forEachWith ( ( argument1 , argument2 ) -> result . add ( ( argument1 + argument2 ) ) , 0 ) ;...
org . junit . Assert . assertEquals ( this . classUnderTest ( ) , result )
testLinuxInLocalModuleWithDotQualifier ( ) { java . util . List < java . lang . String > targetContents = java . util . Arrays . asList ( "/workspace/extensions/impl/target/surefire-report" , "/workspace/extensions/impl/target/classes" , "/workspace/extensions/impl/target/test-classes" , "/workspace/extensions/impl/tar...
org . junit . Assert . assertEquals ( "/workspace/extensions/impl/target/weld-extensions-1.2.3.Final.jar" , path )
testDsnMultiValue ( ) { final javax . naming . directory . InitialDirContext initialDirContext = new javax . naming . directory . InitialDirContext ( createLdapEnvironment ( ) ) ; final org . constretto . ConstrettoConfiguration configuration = new org . constretto . ConstrettoBuilder ( false ) . createLdapConfiguratio...
org . junit . Assert . assertEquals ( 2 , members . size ( ) )
testEntity ( ) { java . lang . Object src = new java . lang . Object ( ) ; org . apache . cayenne . map . Entity d = new org . apache . cayenne . map . DbEntity ( "abc" ) ; org . apache . cayenne . map . event . EntityEvent e = new org . apache . cayenne . map . event . EntityEvent ( src , null ) ; e . setEntity ( d ) ...
org . junit . Assert . assertSame ( d , e . getEntity ( ) )
warnMdcThrowableMessageArgs ( ) { uk . org . lidalia . slf4jtest . LoggingEvent event = uk . org . lidalia . slf4jtest . LoggingEvent . warn ( mdc , throwable , message , arg1 , arg2 ) ; uk . org . lidalia . slf4jtest . LoggingEvent expected = new uk . org . lidalia . slf4jtest . LoggingEvent ( WARN , mdc , throwable ,...
org . junit . Assert . assertThat ( event , org . hamcrest . core . Is . is ( expected ) )
testDiToAvroDate ( ) { org . apache . avro . Schema expectedSchema = org . talend . daikon . avro . AvroUtils . _date ( ) ; org . apache . avro . Schema designSchema = org . apache . avro . SchemaBuilder . builder ( ) . record ( "Record" ) . fields ( ) . name ( "booleanField" ) . type ( ) . booleanType ( ) . noDefault ...
org . junit . Assert . assertEquals ( expectedSchema , actualSchema )
contentTypeServiceDocumentWoAcceptHeader ( ) { final org . apache . http . HttpResponse response = callUri ( "" ) ; checkMediaType ( response , HttpContentType . APPLICATION_ATOM_SVC_UTF8 ) ; "<AssertPlaceHolder>" ; } getBody ( org . apache . http . HttpResponse ) { org . junit . Assert . assertNotNull ( response ) ; o...
org . junit . Assert . assertTrue ( ( ( getBody ( response ) . length ( ) ) > 100 ) )
sublist_4b ( ) { final com . ericsson . otp . erlang . OtpErlangList r = ( ( com . ericsson . otp . erlang . OtpErlangList ) ( termParser . parse ( "[1,2,3,4]" ) ) ) ; final com . ericsson . otp . erlang . OtpErlangObject ss = r . getNthTail ( 4 ) ; "<AssertPlaceHolder>" ; } parse ( com . ericsson . otp . erlang . OtpE...
org . junit . Assert . assertEquals ( new com . ericsson . otp . erlang . OtpErlangList ( ) , ss )
someLabelExistsAndSkip ( ) { java . util . Set < java . lang . String > localLabels = new java . util . HashSet ( asList ( org . jenkinsci . plugins . github . pullrequest . events . impl . GitHubPRLabelNotExistsEventTest . LOCALLY_TESTED , org . jenkinsci . plugins . github . pullrequest . events . impl . GitHubPRLabe...
org . junit . Assert . assertNull ( cause )
testRPSThresholdDefault ( ) { "<AssertPlaceHolder>" ; } getRequestPerSecondThreshold ( ) { return requestPerSecondThreshold ; }
org . junit . Assert . assertEquals ( ( - 1 ) , impl . getRequestPerSecondThreshold ( ) )
testCommitAfterNormalClose ( ) { final org . apache . flink . core . fs . RecoverableWriter writer = getRecoverableWriter ( ) ; final org . apache . flink . core . fs . Path path = new org . apache . flink . core . fs . Path ( basePathForTest , "part-0" ) ; final org . apache . flink . core . fs . RecoverableFsDataOutp...
org . junit . Assert . assertEquals ( org . apache . flink . fs . s3hadoop . HadoopS3RecoverableWriterITCase . testData1 , getContentsOfFile ( path ) )
jsonLiteralStringsWithEscapedUnicodeCharsAreAllowed ( ) { io . burt . jmespath . Expression < java . lang . Object > expected = JsonLiteral ( "\"hello\\u0020world\"" ) ; io . burt . jmespath . Expression < java . lang . Object > actual = compile ( "`\"hello\\u0020world\"`" ) ; "<AssertPlaceHolder>" ; } compile ( java ....
org . junit . Assert . assertThat ( actual , org . hamcrest . Matchers . is ( expected ) )
subQuery_with_alias ( ) { java . util . List < java . lang . Integer > ids1 = query ( ) . from ( employee ) . select ( employee . id ) . fetch ( ) ; java . util . List < java . lang . Integer > ids2 = query ( ) . from ( query ( ) . from ( employee ) . select ( employee . id ) , employee ) . select ( employee . id ) . f...
org . junit . Assert . assertEquals ( ids1 , ids2 )
testMap_mergeApplied_mutatesInPlaceCorrectly ( ) { java . util . Map < java . lang . String , java . lang . Object > testMap = new java . util . HashMap ( ) ; testMap . put ( "key" , "${TEST.string}" ) ; com . networknt . config . CentralizedManagement . mergeMap ( testMap ) ; "<AssertPlaceHolder>" ; } toString ( ) { r...
org . junit . Assert . assertEquals ( "test" , testMap . get ( "key" ) . toString ( ) )
getAsPercentFromOff ( ) { final org . eclipse . smarthome . core . library . items . DimmerItem item = org . eclipse . smarthome . core . library . items . DimmerItemTest . createDimmerItem ( OnOffType . OFF ) ; final java . math . BigDecimal result = org . eclipse . smarthome . core . library . items . DimmerItemTest ...
org . junit . Assert . assertEquals ( new java . math . BigDecimal ( 0 ) , result )
values ( ) { "<AssertPlaceHolder>" ; } values ( ) { org . junit . Assert . assertEquals ( 5 , org . jooby . internal . BuiltinParser . values ( ) . length ) ; }
org . junit . Assert . assertEquals ( 5 , org . jooby . internal . BuiltinParser . values ( ) . length )
testContains ( ) { com . sun . sgs . test . app . util . TestScalableDeque . txnScheduler . runTask ( new com . sun . sgs . test . util . TestAbstractKernelRunnable ( ) { public void run ( ) throws com . sun . sgs . test . app . util . Exception { com . sun . sgs . app . util . ScalableDeque < java . lang . Integer > d...
org . junit . Assert . assertTrue ( d . contains ( 1 ) )
testGetLastJobExecution ( ) { org . springframework . batch . mongo . dao . JobExecution lastExecution = new org . springframework . batch . mongo . dao . JobExecution ( jobInstance ) ; lastExecution . setStatus ( BatchStatus . STARTED ) ; int JUMP_INTO_FUTURE = 1000 ; lastExecution . setCreateTime ( new java . util . ...
org . junit . Assert . assertEquals ( lastExecution , jobExecutionDao . getLastJobExecution ( jobInstance ) )
shiftWithMergedRegions_bug56454 ( ) { org . apache . poi . ss . usermodel . Workbook wb = _testDataProvider . createWorkbook ( ) ; org . apache . poi . ss . usermodel . Sheet sheet = wb . createSheet ( ) ; for ( int i = 0 ; i < 10 ; i ++ ) { org . apache . poi . ss . usermodel . Row row = sheet . createRow ( i ) ; for ...
org . junit . Assert . assertEquals ( expectedMergedRegions , sheet . getMergedRegions ( ) )
testImportDatabaseIntoDatabase ( ) { java . io . File dir = unpack ( "h2/cookbook.zip" ) ; org . geoserver . catalog . DataStoreInfo ds = createH2DataStore ( "gs" , "cookbook" ) ; java . util . Map params = new java . util . HashMap ( ) ; params . put ( H2DataStoreFactory . DBTYPE . key , "h2" ) ; params . put ( H2Data...
org . junit . Assert . assertEquals ( 3 , context . getTasks ( ) . size ( ) )
test4 ( ) { net . sf . jsqlparser . expression . Expression expr = net . sf . jsqlparser . parser . CCJSqlParserUtil . parseCondExpression ( "NOT<sp>S.D<sp>><sp>{d<sp>'2017-03-25'}" ) ; net . sf . jsqlparser . expression . Expression expected = net . sf . jsqlparser . parser . CCJSqlParserUtil . parseCondExpression ( "...
org . junit . Assert . assertEquals ( expected . toString ( ) , result . toString ( ) )
testIFileReaderWithCodec ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; org . apache . hadoop . fs . FileSystem localFs = org . apache . hadoop . fs . FileSystem . getLocal ( conf ) ; org . apache . hadoop . fs . FileSystem rfs = ( ( org . apache . hadoo...
org . junit . Assert . assertEquals ( readed , reader . checksumIn . getChecksum ( ) . length )
testRetryInvocation503 ( ) { java . lang . Exception root = new org . apache . servicecomb . swagger . invocation . exception . InvocationException ( 503 , "Service<sp>Unavailable" , "Error" ) ; boolean retriable = retryHandler . isRetriableException ( root , false ) ; "<AssertPlaceHolder>" ; } isRetriableException ( j...
org . junit . Assert . assertTrue ( retriable )
testSerialization ( ) { org . jfree . chart . axis . TickUnits t1 = new org . jfree . chart . axis . TickUnits ( ) ; t1 . add ( new org . jfree . chart . axis . NumberTickUnit ( 10 , new java . text . DecimalFormat ( "0.00" ) ) ) ; org . jfree . chart . axis . TickUnits t2 = ( ( org . jfree . chart . axis . TickUnits )...
org . junit . Assert . assertEquals ( t1 , t2 )
whenSelectQueryExecuted_thenResulstsReturned ( ) { java . sql . ResultSet resultSet = performQuery ( postgresContainer , "SELECT<sp>1" ) ; resultSet . next ( ) ; int result = resultSet . getInt ( 1 ) ; "<AssertPlaceHolder>" ; } next ( ) { if ( ! ( hasNext ( ) ) ) throw new org . baeldung . java . collections . NoSuchEl...
org . junit . Assert . assertEquals ( 1 , result )
testGetClientHostForRunningAction_returnsHelathyHost ( ) { com . google . inject . Injector injector = createNiceMock ( com . google . inject . Injector . class ) ; org . apache . ambari . server . actionmanager . ActionManager actionManager = createNiceMock ( org . apache . ambari . server . actionmanager . ActionMana...
org . junit . Assert . assertEquals ( "healthy_host" , host )
testProtocolVersion ( ) { "<AssertPlaceHolder>" ; } getProtocolVersion ( ) { return de . uzl . itm . ncoap . message . CoapMessage . PROTOCOL_VERSION ; }
org . junit . Assert . assertEquals ( expected . getProtocolVersion ( ) , actual . getProtocolVersion ( ) )
testCheckMinMaxDate_noerror ( ) { org . restfulwhois . rdap . common . validation . ValidationResult validationResult = new org . restfulwhois . rdap . common . validation . ValidationResult ( ) ; org . restfulwhois . rdap . common . util . UpdateValidateUtil . checkNotEmptyAndValidMinMaxDate ( "1000-01-01T00:00:00Z" ,...
org . junit . Assert . assertFalse ( validationResult . hasError ( ) )
shouldExpandJarFileProtocol ( ) { java . lang . String result = expander . expand ( "jar:file:~/foo/bar" ) ; java . lang . String expected = ( "jar:file:" + ( java . lang . System . getProperty ( "user.home" ) ) ) + "/foo/bar" ; "<AssertPlaceHolder>" ; } getProperty ( java . lang . String ) { readLock . lock ( ) ; try ...
org . junit . Assert . assertEquals ( expected , result )
testWelAdresgevendWelIngezetene ( ) { final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > overtreders = brby0103 . voerRegelUit ( null , maakNieuweSituatie ( nl . bzk . brp . bijhouding . business . regels . impl . bijhouding . afstamming . acties . geboorte . BRBY0103Test . MOEDER_IS_ADRESGEV...
org . junit . Assert . assertEquals ( 0 , overtreders . size ( ) )
whenInitActionManagerThenResultListWithThreeActions ( ) { final int expectedSizeOfMenu = 3 ; "<AssertPlaceHolder>" ; } getActions ( ) { return actions ; }
org . junit . Assert . assertThat ( manager . getActions ( ) . size ( ) , org . hamcrest . core . Is . is ( expectedSizeOfMenu ) )
testRelatedForm ( ) { gov . llnl . ontology . wordnet . RelatedForm relatedForm = new gov . llnl . ontology . wordnet . SimpleRelatedForm ( 1 , 1 ) ; gov . llnl . ontology . wordnet . Synset synset = new gov . llnl . ontology . wordnet . BaseSynset ( gov . llnl . ontology . wordnet . Synset . PartsOfSpeech . NOUN ) ; g...
org . junit . Assert . assertEquals ( relatedForm , synset . getDerivationallyRelatedForm ( relatedSynset ) )
testEnsureDirectoryWhenDirectoryExists ( ) { org . uberfire . java . nio . file . Path path = mock ( org . uberfire . java . nio . file . Path . class ) ; when ( provisioningPath . resolve ( org . guvnor . ala . registry . vfs . VFSRegistryHelperTest . DIRECTORY_NAME ) ) . thenReturn ( path ) ; when ( ioService . exist...
org . junit . Assert . assertEquals ( path , result )
testIsDurableFalseIfResponseTopicAndNonDurableConfig ( ) { boolean isResponseTopic = true ; io . github . tcdl . msb . adapters . amqp . AmqpConsumerAdapter adapter = createAdapterWithNonDurableConf ( "myTopic" , "myGroupId" , isResponseTopic ) ; "<AssertPlaceHolder>" ; } isDurable ( ) { return ( ! ( isResponseTopic ) ...
org . junit . Assert . assertFalse ( adapter . isDurable ( ) )
testAuthnRequestCreationWithSignature ( ) { org . picketlink . identity . federation . api . saml . v2 . request . SAML2Request saml2Request = new org . picketlink . identity . federation . api . saml . v2 . request . SAML2Request ( ) ; java . lang . String id = org . picketlink . identity . federation . core . saml . ...
org . junit . Assert . assertTrue ( isValid )
runApplication ( ) { org . zalando . stups . eclipselink . application . entities . Person p = new org . zalando . stups . eclipselink . application . entities . Person ( ) ; org . zalando . stups . eclipselink . application . entities . Person fromDB = this . personRepository . save ( p ) ; org . zalando . stups . ecl...
org . junit . Assert . assertNotNull ( read )
equals_differentPropertiesAndValues_shouldBeFalse ( ) { com . vaadin . v7 . data . util . filter . Like like1 = new com . vaadin . v7 . data . util . filter . Like ( "foo" , "bar" ) ; com . vaadin . v7 . data . util . filter . Like like2 = new com . vaadin . v7 . data . util . filter . Like ( "baz" , "zomg" ) ; "<Asser...
org . junit . Assert . assertFalse ( like1 . equals ( like2 ) )
testGetCurrentFile_elementaryFileInSecMechanism ( ) { masterFile . addChild ( ef1 ) ; secStatus . updateMechanisms ( new de . persosim . simulator . secstatus . SecStatusMechanismUpdatePropagation ( de . persosim . simulator . secstatus . SecStatus . SecContext . GLOBAL , new de . persosim . simulator . protocols . fil...
org . junit . Assert . assertEquals ( ef1 , result )
testDescendants ( ) { owltools . graph . OWLGraphWrapper g = getOntologyWrapper ( ) ; org . semanticweb . owlapi . model . OWLObject c = g . getOWLObject ( "http://example.org#organism" ) ; org . semanticweb . owlapi . model . OWLObject i = g . getOWLObject ( "http://example.org#o1" ) ; boolean ok = false ; for ( owlto...
org . junit . Assert . assertTrue ( ok )
shouldListActionThatWasAdded ( ) { final java . util . List < org . talend . dataprep . api . preparation . Action > actions = org . talend . dataprep . preparation . PreparationTest . getSimpleAction ( "uppercase" , "column_name" , "lastname" ) ; org . talend . dataprep . api . preparation . PreparationActions expecte...
org . junit . Assert . assertEquals ( expected , actual )
testValidate_groups ( ) { java . lang . Class < ? > [ ] groups = new java . lang . Class [ ] { com . github . mygreen . supercsv . validation . beanvalidation . CsvBeanValidatorTest . Group1 . class } ; com . github . mygreen . supercsv . validation . CsvBindingErrors bindingErrors = new com . github . mygreen . superc...
org . junit . Assert . assertThat ( messages )
testBlocksMetricMarker ( ) { ch . qos . logback . classic . spi . LoggingEvent event = new ch . qos . logback . classic . spi . LoggingEvent ( ) ; event . setMarker ( io . symphonia . lambda . logging . MetricPassFilter . METRIC_MARKER ) ; io . symphonia . lambda . logging . MetricBlockFilter filter = new io . symphoni...
org . junit . Assert . assertEquals ( FilterReply . DENY , filter . decide ( event ) )
$batch10_1NavPro__id ( ) { java . lang . String id = null ; try { java . lang . String path = "Product('srcKey')/_Supplier" ; java . lang . String body = ( ( ( ( ( ( START_BOUNDARY ) + ( retrievePostBody ( "Product" , "d" 4 ) ) ) + ( START_BOUNDARY ) ) + ( retrievePostBodyNoId ( path , HttpMethod . POST ) ) ) + ( START...
org . junit . Assert . assertEquals ( 1 , results . size ( ) )
testCarGroupNotMatch ( ) { com . baidu . unbiz . fluentvalidator . dto . Car car = getValidCar ( ) ; car . setSeatCount ( 11111 ) ; com . baidu . unbiz . fluentvalidator . Result ret = com . baidu . unbiz . fluentvalidator . FluentValidator . checkAll ( new java . lang . Class < ? > [ ] { com . baidu . unbiz . fluentva...
org . junit . Assert . assertThat ( ret . isSuccess ( ) , org . hamcrest . core . Is . is ( true ) )
findProblems ( ) { org . osgi . framework . ServiceReference < com . liferay . blade . api . Migration > sr = _context . getServiceReference ( com . liferay . blade . api . Migration . class ) ; com . liferay . blade . api . Migration m = _context . getService ( sr ) ; java . util . List < com . liferay . blade . api ....
org . junit . Assert . assertEquals ( "" , 1 , problems . size ( ) )
createNodeInstanceIdentifierTest ( ) { final org . opendaylight . yang . gen . v1 . urn . opendaylight . inventory . rev130819 . NodeId nodeId = new org . opendaylight . yang . gen . v1 . urn . opendaylight . inventory . rev130819 . NodeId ( "dummyId" ) ; final org . opendaylight . yangtools . yang . binding . KeyedIns...
org . junit . Assert . assertEquals ( expectedII , nodeInstanceIdentifier )
testDontFindGroupByNonIndexedFieldWithAnnotation ( ) { org . springframework . data . neo4j . support . Group group = new org . springframework . data . neo4j . support . Group ( ) . persist ( ) ; group . setUnindexedName ( "value-unindexedName" ) ; final org . springframework . data . neo4j . support . Group found = g...
org . junit . Assert . assertNull ( found )
testOverload5 ( ) { fr . inria . corese . core . Graph g = fr . inria . corese . core . Graph . create ( ) ; java . lang . String i = "insert<sp>data<sp>{<sp>" + ( ( "if<sp>(contains(?a,<sp>'kg'),<sp>1000<sp>*<sp>us:value(?a),<sp>us:value(?a))" 5 + "us:t2<sp>us:length<sp>'1000<sp>m'^^us:length<sp>." ) + "if<sp>(contain...
org . junit . Assert . assertEquals ( 5 , map . size ( ) )
getField ( ) { com . hevelian . olastic . core . api . uri . queryoption . expression . member . impl . ParentPrimitiveMember primitive = new com . hevelian . olastic . core . api . uri . queryoption . expression . member . impl . ParentPrimitiveMember ( parentTypes , primitiveMember ) ; "<AssertPlaceHolder>" ; } getPr...
org . junit . Assert . assertEquals ( field , primitive . getPrimitiveMember ( ) . getField ( ) )
testToQueryUri_WithoutQuery ( ) { final java . lang . String suri = "http://localhost/jenkins" ; final java . net . URI uri = com . offbytwo . jenkins . client . util . UrlUtils . toJsonApiUri ( new java . net . URI ( suri ) , "jenkins" , "job/somejob" ) ; final java . lang . String expected = "http://localhost/jenkins...
org . junit . Assert . assertEquals ( expected , uri . toString ( ) )
should_verify_if_is_not_before_current_information ( ) { org . mamute . model . AnswerInformation infoByModerator = newVersion ( 10 ) ; ruby . approve ( infoByModerator ) ; org . mamute . model . AnswerInformation version = newVersion ( 5 ) ; ruby . enqueueChange ( version , org . mamute . model . UpdateStatus . PENDIN...
org . junit . Assert . assertFalse ( version . isBeforeCurrent ( ) )
testEncodeDecode ( ) { com . baidu . bjf . remoting . protobuf . simplerepeat . RequrieRepeatedNumberType . InterClassName icn = com . baidu . bjf . remoting . protobuf . simplerepeat . RequrieRepeatedNumberType . InterClassName . newBuilder ( ) . addList1 ( 10000 ) . addList1 ( 20000 ) . build ( ) ; byte [ ] oldbb = i...
org . junit . Assert . assertArrayEquals ( oldbb , bb )
testReadLines ( ) { final java . io . File file = org . apache . commons . io . testtools . TestUtils . newFile ( getTestDirectory ( ) , "lines.txt" ) ; try { final java . lang . String [ ] data = new java . lang . String [ ] { "hello" , "/u1234" , "" , "this<sp>is" , "some<sp>text" } ; org . apache . commons . io . te...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( data ) , lines )
mergeWithUnknown ( ) { puck . thrifty . datatype . IntegerElement elem = new puck . thrifty . datatype . IntegerElement ( "test" ) ; puck . thrifty . datatype . Element mergeElem = elem . merge ( new puck . thrifty . datatype . UnknownElement ( "test" ) ) ; "<AssertPlaceHolder>" ; } merge ( puck . thrifty . datatype . ...
org . junit . Assert . assertSame ( elem , mergeElem )
testGetZModOrder ( ) { ch . bfh . unicrypt . math . algebra . dualistic . classes . ZModPrime expResult = ch . bfh . unicrypt . math . algebra . dualistic . classes . ZModPrime . getInstance ( 2 ) ; ch . bfh . unicrypt . math . algebra . dualistic . classes . ZModPrime result = ch . bfh . unicrypt . math . algebra . ge...
org . junit . Assert . assertTrue ( expResult . isEquivalent ( result ) )
testCatNullValues ( ) { org . stringtemplate . v4 . ST e = new org . stringtemplate . v4 . ST ( "<[no,go];<sp>null=\"foo\",<sp>separator=\",<sp>\">" ) ; e . add ( "phones" , "1" ) ; e . add ( "phones" , "2" ) ; java . lang . String expecting = "foo,<sp>foo" ; "<AssertPlaceHolder>" ; } render ( ) { return render ( java ...
org . junit . Assert . assertEquals ( expecting , e . render ( ) )
testBuildGlobalDictFailed ( ) { thrown . expect ( java . io . IOException . class ) ; thrown . expectMessage ( "read<sp>failed." ) ; org . apache . kylin . dict . GlobalDictionaryBuilder builder = new org . apache . kylin . dict . GlobalDictionaryBuilder ( ) ; try { org . apache . kylin . dict . DictionaryGenerator . b...
org . junit . Assert . assertFalse ( lock . isLocked ( lockPath ) )
testAlternateUserSearchEnabledIsSetToFalseByDefault ( ) { "<AssertPlaceHolder>" ; } isLdapAlternateUserSearchEnabled ( ) { return java . lang . Boolean . valueOf ( configValue ( AmbariServerConfigurationKey . ALTERNATE_USER_SEARCH_ENABLED ) ) ; }
org . junit . Assert . assertFalse ( configuration . isLdapAlternateUserSearchEnabled ( ) )
test_hashCode_sameWhenSharedUpdates ( ) { org . threeten . extra . MutableClock clock = org . threeten . extra . MutableClock . epochUTC ( ) ; org . threeten . extra . MutableClock withOtherZone = clock . withZone ( ZoneOffset . MIN ) ; org . threeten . extra . MutableClock withSameZone = withOtherZone . withZone ( Zon...
org . junit . Assert . assertEquals ( clock . hashCode ( ) , withSameZone . hashCode ( ) )
disabledPatchManagement ( ) { java . lang . System . setProperty ( "patching.disabled" , "true" ) ; pm = new io . fabric8 . patch . management . impl . GitPatchManagementServiceImpl ( bundleContext ) ; pm . start ( ) ; "<AssertPlaceHolder>" ; java . lang . System . setProperty ( "patching.disabled" , "" ) ; } isEnabled...
org . junit . Assert . assertFalse ( pm . isEnabled ( ) )
testEvolution ( ) { test . v2 . Dog dogV2 = new test . v2 . Dog ( "Nadia" , 10 , "Boxer" , test . Color . BRINDLE ) ; System . out . println ( dogV2 ) ; com . tangosol . util . Binary binDogV2 = com . tangosol . util . ExternalizableHelper . toBinary ( dogV2 , v2 ) ; test . v1 . Dog dogV1 = ( ( test . v1 . Dog ) ( com ...
org . junit . Assert . assertEquals ( dogV2 , dog )
testUsesSecure_False ( ) { com . eclipsesource . jaxrs . provider . security . impl . SecurityContextImpl context = new com . eclipsesource . jaxrs . provider . security . impl . SecurityContextImpl ( javax . ws . rs . core . SecurityContext . BASIC_AUTH , mock ( java . security . Principal . class ) , false , null ) ;...
org . junit . Assert . assertFalse ( secure )
testNotBlankMsgNullStringShouldThrow ( ) { java . lang . String string = null ; try { org . apache . commons . lang3 . Validate . notBlank ( string , "Message" ) ; org . junit . Assert . fail ( "Expecting<sp>NullPointerException" ) ; } catch ( java . lang . NullPointerException e ) { "<AssertPlaceHolder>" ; } } getMess...
org . junit . Assert . assertEquals ( "Message" , e . getMessage ( ) )
test_acceptObjectKey_pushBack ( ) { org . joda . beans . ser . json . JsonInput input = new org . joda . beans . ser . json . JsonInput ( new java . io . StringReader ( ":" ) ) ; input . pushBackObjectKey ( "key" ) ; "<AssertPlaceHolder>" ; } acceptObjectKey ( org . joda . beans . ser . json . JsonEvent ) { ensureEvent...
org . junit . Assert . assertEquals ( input . acceptObjectKey ( JsonEvent . STRING ) , "key" )
testCreateV8Function_CalledFromJS ( ) { v8 . executeScript ( "function<sp>doSomething(callback)<sp>{<sp>callback();<sp>}" ) ; com . eclipsesource . v8 . V8Function function = new com . eclipsesource . v8 . V8Function ( v8 , new com . eclipsesource . v8 . JavaCallback ( ) { @ com . eclipsesource . v8 . Override public j...
org . junit . Assert . assertEquals ( "passed" , result )
testWithoutConfiguration ( ) { uk . gov . dstl . baleen . core . pipelines . BaleenPipelineManager manager = new uk . gov . dstl . baleen . core . pipelines . BaleenPipelineManager ( ) ; try { manager . configure ( new uk . gov . dstl . baleen . core . utils . yaml . YamlConfiguration ( ) ) ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertEquals ( 0 , manager . getAll ( ) . size ( ) )
testHandlerAddedThrowsAndRemovedThrowsException ( ) { final io . netty . util . concurrent . EventExecutorGroup group1 = new io . netty . util . concurrent . DefaultEventExecutorGroup ( 1 ) ; try { final java . util . concurrent . CountDownLatch latch = new java . util . concurrent . CountDownLatch ( 1 ) ; final io . n...
org . junit . Assert . assertNull ( pipeline . context ( handlerName ) )
test_subusers_stats_sums_get ( ) { com . sendgrid . SendGrid sg = new com . sendgrid . SendGrid ( "SENDGRID_API_KEY" , true ) ; sg . setHost ( "localhost:4010" ) ; sg . addRequestHeader ( "sort_by_direction" 2 , "200" ) ; com . sendgrid . Request request = new com . sendgrid . Request ( ) ; request . setMethod ( Method...
org . junit . Assert . assertEquals ( 200 , response . getStatusCode ( ) )
testParser_v1_MultipleIdenticalInfohashesPresent ( ) { java . lang . String uriTemplate = "magnet:?xt=urn:btih:%s&xt=urn:btih:%s" ; byte [ ] torrentId = new byte [ 20 ] ; java . lang . String s = java . lang . String . format ( uriTemplate , bt . protocol . Protocols . toHex ( torrentId ) , bt . protocol . Protocols . ...
org . junit . Assert . assertArrayEquals ( torrentId , uri . getTorrentId ( ) . getBytes ( ) )
testListLinkTypeProduct ( ) { createLink ( ) ; net . magja . model . product . Product product = products . get ( 0 ) ; try { final java . util . Set < net . magja . model . product . ProductLink > links = service . list ( LinkType . RELATED , product ) ; for ( net . magja . model . product . ProductLink productLink : ...
org . junit . Assert . assertFalse ( links . isEmpty ( ) )
SavePojos ( ) { Integration . List < com . noelherrick . jell . SillyPojo > pojos = new Integration . ArrayList ( ) ; for ( int i = 0 ; i < 100 ; i ++ ) { pojos . add ( new com . noelherrick . jell . SillyPojo ( "a" , i ) ) ; } int count = Integration . PojoTests . jell . executeBatch ( "insert<sp>into<sp>pojos<sp>valu...
org . junit . Assert . assertEquals ( 100 , count )
testAddQueryDescriptor ( ) { org . apache . cayenne . map . QueryDescriptor q = org . apache . cayenne . map . QueryDescriptor . selectQueryDescriptor ( ) ; q . setName ( "a" ) ; org . apache . cayenne . map . DataMap map = new org . apache . cayenne . map . DataMap ( ) ; map . addQueryDescriptor ( q ) ; "<AssertPlaceH...
org . junit . Assert . assertSame ( q , map . getQueryDescriptor ( "a" ) )
shouldExecuteBoundSelectListOfBlogsAsMaps ( ) { org . apache . ibatis . session . SqlSession session = org . apache . ibatis . binding . BindingTest . sqlSessionFactory . openSession ( ) ; try { org . apache . ibatis . binding . BoundBlogMapper mapper = session . getMapper ( org . apache . ibatis . binding . BoundBlogM...
org . junit . Assert . assertEquals ( 2 , blogs . size ( ) )
testBuildWithDisabledDefaultConstraints ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; java . lang . Boolean alternative = false ; org . lnu . is . domain . specoffer . SpecOfferSubject context = new org . lnu . is . domain . specoffer . SpecOfferSubject ( ) ; context . setAlternative ( alternative )...
org . junit . Assert . assertEquals ( expected , actualQuery )
testMBeanCreationWithoutManagementInterfaceWorksForModelMBeanInfo ( ) { final com . picocontainer . gems . jmx . DynamicMBeanFactory factory = new com . picocontainer . gems . jmx . StandardMBeanFactory ( ) ; final javax . management . modelmbean . ModelMBeanAttributeInfo [ ] attributes = new javax . management . model...
org . junit . Assert . assertNotNull ( mBean )
should_return_first_tag ( ) { io . fabric8 . maven . core . service . openshift . ImageStreamService service = new io . fabric8 . maven . core . service . openshift . ImageStreamService ( client , log ) ; io . fabric8 . openshift . api . model . TagEvent first = new io . fabric8 . openshift . api . model . TagEvent ( "...
org . junit . Assert . assertEquals ( first , resultedTag )
mustNotHaveLogsFilesToPruneIfStrategyFindsNoFiles ( ) { when ( factory . strategyFromConfigValue ( eq ( fs ) , eq ( logFiles ) , eq ( clock ) , anyString ( ) ) ) . thenReturn ( ( x ) -> java . util . stream . LongStream . empty ( ) ) ; org . neo4j . kernel . impl . transaction . log . pruning . LogPruning pruning = new...
org . junit . Assert . assertFalse ( pruning . mightHaveLogsToPrune ( ) )
getPatientIdentifierByUuid_shouldFindObjectGivenValidUuid ( ) { java . lang . String uuid = "ff41928c-3bca-48d9-a4dc-9198f6b2873b" ; org . openmrs . PatientIdentifier patientIdentifier = org . openmrs . api . context . Context . getPatientService ( ) . getPatientIdentifierByUuid ( uuid ) ; "<AssertPlaceHolder>" ; } get...
org . junit . Assert . assertEquals ( 1 , ( ( int ) ( patientIdentifier . getPatientIdentifierId ( ) ) ) )
testGetRestrictionForMultiValued2 ( ) { org . apache . jackrabbit . oak . spi . security . authorization . restriction . Restriction singleNameRestr = createRestriction ( AccessControlConstants . REP_NT_NAMES , new javax . jcr . Value [ ] { nameValue } ) ; org . apache . jackrabbit . oak . spi . security . authorizatio...
org . junit . Assert . assertEquals ( nameValue , val )
testStripSuffixAppendedWithSingleNumericalValue ( ) { java . lang . String fileName = _fileImpl . appendParentheticalSuffix ( "test.jsp" , "1" ) ; "<AssertPlaceHolder>" ; } stripParentheticalSuffix ( java . lang . String ) { return com . liferay . portal . kernel . util . FileUtil . getFile ( ) . stripParentheticalSuff...
org . junit . Assert . assertEquals ( "test.jsp" , _fileImpl . stripParentheticalSuffix ( fileName ) )
testSessionClientTimeoutSessionOnOpen ( ) { org . glassfish . tyrus . server . Server server = startServer ( org . glassfish . tyrus . test . standard_config . SessionTimeoutTest . SessionClientTimeoutEndpoint . class ) ; final java . util . concurrent . CountDownLatch onCloseLatch = new java . util . concurrent . Coun...
org . junit . Assert . assertTrue ( org . glassfish . tyrus . test . standard_config . SessionTimeoutTest . SessionClientTimeoutEndpoint . clientOnCloseCalled . get ( ) )
testUpdate ( ) { System . out . println ( "update" ) ; java . util . UUID uuid = getBean ( ) . addUUID ( "update" ) ; getBean ( ) . update ( uuid , "update-new-name" ) ; org . ancoron . postgresql . jpa . test . UUIDTestEntity expResult = new org . ancoron . postgresql . jpa . test . UUIDTestEntity ( ) ; expResult . se...
org . junit . Assert . assertEquals ( expResult , result )
shouldCallAllGraphHooksAfterOperationChainExecuted ( ) { final uk . gov . gchq . gaffer . graph . hook . GraphHook hook1 = mock ( uk . gov . gchq . gaffer . graph . hook . GraphHook . class ) ; final uk . gov . gchq . gaffer . graph . hook . GraphHook hook2 = mock ( uk . gov . gchq . gaffer . graph . hook . GraphHook ....
org . junit . Assert . assertSame ( actualResult , result3 )