input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testUnderline ( ) { hyperlink . setUnderlined ( false ) ; "<AssertPlaceHolder>" ; } isUnderlined ( ) { return underlined ; } | org . junit . Assert . assertFalse ( hyperlink . isUnderlined ( ) ) |
hasMultiPartShouldReturnTrueIfMultipartsAreDetected ( ) { java . util . Map < java . lang . String , java . lang . Object > metaDatas = java . util . Collections . singletonMap ( "multipart.flag" , new java . lang . Object ( ) ) ; "<AssertPlaceHolder>" ; } hasMultiPart ( org . codegist . crest . config . ParamConfig [ ... | org . junit . Assert . assertTrue ( org . codegist . crest . util . MultiParts . hasMultiPart ( metaDatas ) ) |
loadProduct_StatusCheck_ActiveService ( ) { org . oscm . domobjects . Product prod = new org . oscm . domobjects . Product ( ) ; prod . setStatus ( ServiceStatus . ACTIVE ) ; doReturn ( prod ) . when ( ds ) . getReference ( eq ( org . oscm . domobjects . Product . class ) , eq ( prod . getKey ( ) ) ) ; org . oscm . dom... | org . junit . Assert . assertEquals ( prod , loadedProd ) |
testAligedPeriod ( ) { System . out . println ( "Aligned<sp>periods<sp>floating<sp>rate<sp>payment." ) ; java . text . NumberFormat formatDec2 = new java . text . DecimalFormat ( "0.00" ) ; java . text . NumberFormat formatDec6 = new java . text . DecimalFormat ( "0.000000" ) ; java . text . NumberFormat formatSci2 = n... | org . junit . Assert . assertEquals ( valueAnalytic , value , toleranceThisTest ) |
hasPermissionAccessControlledNullArg1 ( ) { "<AssertPlaceHolder>" ; securityService . hasPermission ( null , Permission . DELETE ) ; } | org . junit . Assert . assertNotNull ( securityService ) |
MeerdereOudersTest ( ) { final nl . bzk . brp . bijhouding . bericht . model . BijhoudingPersoon bijhoudingPersoonKind = mock ( nl . bzk . brp . bijhouding . bericht . model . BijhoudingPersoon . class ) ; when ( bijhoudingPersoonKind . getActueleOuders ( ) ) . thenReturn ( createLijstMetOuders ( 2 ) ) ; when ( getBeri... | org . junit . Assert . assertEquals ( 1 , meldingen . size ( ) ) |
characterUnicodeLinebreak ( ) { org . apache . pdfbox . pdmodel . interactive . form . PDField field = acroForm . getField ( "pdfbox-linebreak" ) ; field . setValue ( "linebreak
linebreak" ) ; java . util . List < java . lang . String > pdfboxValues = getStringsFromStream ( field ) ; java . util . List < java . lang . ... | org . junit . Assert . assertEquals ( pdfboxValues , acrobatValues ) |
testDates ( ) { org . datavec . arrow . Date now = new org . datavec . arrow . Date ( ) ; org . apache . arrow . memory . BufferAllocator bufferAllocator = new org . apache . arrow . memory . RootAllocator ( Long . MAX_VALUE ) ; org . apache . arrow . vector . TimeStampMilliVector timeStampMilliVector = org . datavec .... | org . junit . Assert . assertEquals ( now . getTime ( ) , timeStampMilliVector . get ( 0 ) ) |
testAsChars ( ) { org . apache . tajo . datum . Datum d = org . apache . tajo . datum . DatumFactory . createBlob ( "12345" . getBytes ( ) ) ; "<AssertPlaceHolder>" ; } asChars ( ) { throw new org . apache . tajo . datum . exception . InvalidCastException ( ( ( type ) + "<sp>cannot<sp>be<sp>casted<sp>to<sp>STRING<sp>ty... | org . junit . Assert . assertEquals ( "12345" , d . asChars ( ) ) |
testGetEffectiveVatRateForCustomer_NullInput ( ) { org . oscm . billingservice . dao . model . VatRateDetails vrd = createVRD ( null , null , null ) ; java . math . BigDecimal result = vrd . getEffectiveVatRateForCustomer ( ) ; "<AssertPlaceHolder>" ; } getEffectiveVatRateForCustomer ( ) { if ( ( getCustomerVatRate ( )... | org . junit . Assert . assertNull ( result ) |
intstream_range ( ) { java . util . List < java . lang . Integer > numbers = java . util . stream . IntStream . range ( 1 , 3 ) . boxed ( ) . collect ( java . util . stream . Collectors . toList ( ) ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertThat ( numbers , contains ( new java . lang . Integer ( 1 ) , new java . lang . Integer ( 2 ) ) ) |
testGetNextSet3 ( ) { com . google . zxing . common . BitArray array = new com . google . zxing . common . BitArray ( 63 ) ; array . set ( 31 ) ; array . set ( 32 ) ; for ( int i = 0 ; i < ( array . getSize ( ) ) ; i ++ ) { int expected ; if ( i <= 31 ) { expected = 31 ; } else if ( i == 32 ) { expected = 32 ; } else {... | org . junit . Assert . assertEquals ( java . lang . String . valueOf ( i ) , expected , array . getNextSet ( i ) ) |
testTaskDecorator ( ) { org . camunda . bpm . engine . impl . cmmn . model . CmmnActivity activity = handler . handleElement ( planItem , context ) ; org . camunda . bpm . engine . impl . cmmn . behavior . HumanTaskActivityBehavior behavior = ( ( org . camunda . bpm . engine . impl . cmmn . behavior . HumanTaskActivity... | org . junit . Assert . assertNotNull ( behavior . getTaskDecorator ( ) ) |
cascadeGenericMethodOfSubclassWhichExtendsGenericClassWithUpperBoundUsingInterface ( mockit . CascadingFieldTest$ConcreteSubclass2 ) { mockit . CascadingFieldTest . Ab value = mock . getValue ( ) ; "<AssertPlaceHolder>" ; value . getB ( ) . getC ( ) ; new mockit . Verifications ( ) { { mock . getValue ( ) . getB ( ) . ... | org . junit . Assert . assertNotNull ( value ) |
testBerichtMetExceptieInStap2 ( ) { nl . bzk . brp . business . dto . bijhouding . BijhoudingsBericht bericht = maakNieuwBericht ( new nl . bzk . brp . model . objecttype . bericht . ActieBericht ( ) ) ; nl . bzk . brp . model . objecttype . bericht . ActieBericht actieBericht = ( ( nl . bzk . brp . model . objecttype ... | org . junit . Assert . assertFalse ( resultaat . getMeldingen ( ) . isEmpty ( ) ) |
testBind_Extension ( ) { net . sf . json . JSONObject json = ( ( net . sf . json . JSONObject ) ( net . sf . json . JSONSerializer . toJSON ( com . google . jenkins . plugins . dsl . util . BinderTest . GITSCM_JSON ) ) ) ; hudson . plugins . git . GitSCM scm = underTest . bind ( json ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( scm ) |
shouldCheckGetCustomerByFirstnameNameWithParamURI ( ) { javax . ws . rs . core . Response response = org . agoncal . book . javaee7 . chapter15 . ex07 . CustomerRestService07IT . client . target ( "http://localhost:8282/07/customer/search" ) . matrixParam ( "firstname" , "Antonio2" ) . matrixParam ( "surname" , "Goncal... | org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) ) |
testAccumulateWithNodeSharing ( ) { java . lang . String drl = ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "import<sp>" + ( org . drools . compiler . integrationtests . Misc2Test . TypeA . class . getCanonicalName ( ) ) ) + ";\n" ) + "import<sp>" ) + ( org . drools . compiler . integration... | org . junit . Assert . assertEquals ( 1 , d . getValue ( ) ) |
testPutTransformer ( ) { org . apache . commons . math4 . util . NumberTransformer expected = new org . apache . commons . math4 . util . DefaultTransformer ( ) ; org . apache . commons . math4 . util . TransformerMap map = new org . apache . commons . math4 . util . TransformerMap ( ) ; map . putTransformer ( org . ap... | org . junit . Assert . assertEquals ( expected , map . getTransformer ( org . apache . commons . math4 . util . TransformerMapTest . class ) ) |
matches_entryMatches ( ) { java . nio . file . Path testEntry = testFolder . resolve ( "testEntry" ) ; java . lang . String contentId = "contentId" ; java . lang . String folderId = "folderId" ; org . talend . dataprep . api . folder . FolderContentType contentType = org . talend . dataprep . api . folder . FolderConte... | org . junit . Assert . assertTrue ( org . talend . dataprep . folder . store . file . FileSystemUtils . matches ( testEntry , contentId , contentType ) ) |
CallInstanceMethodIndirectIndirect_MethodVarMethod ( ) { java . lang . String fromClass = "Domain.Indirect.ViolatingFrom.CallInstanceMethodIndirectIndirect_MethodVarMethod" ; java . lang . String toClass = "Domain.Indirect.IndirectTo.ServiceOne" ; java . util . ArrayList < java . lang . String > typesToFind = new java ... | org . junit . Assert . assertTrue ( areDependencyTypesDetected ( fromClass , toClass , typesToFind , true ) ) |
testDismissCache_and ( ) { org . roaringbitmap . FastRankRoaringBitmap fast = prepareFastWithComputedCache ( ) ; fast . and ( new org . roaringbitmap . RoaringBitmap ( ) ) ; "<AssertPlaceHolder>" ; } isCacheDismissed ( ) { return ! ( cumulatedCardinalitiesCacheIsValid ) ; } | org . junit . Assert . assertTrue ( fast . isCacheDismissed ( ) ) |
testNetworkComputeWithNoSensor ( ) { org . numenta . nupic . Parameters p = org . numenta . nupic . network . NetworkTestHarness . NetworkTestHarness . getParameters ( ) ; p = p . union ( org . numenta . nupic . network . NetworkTestHarness . NetworkTestHarness . getDayDemoTestEncoderParams ( ) ) ; p . set ( KEY . GLOB... | org . junit . Assert . assertEquals ( 6 , nextDay ) |
testGetAuthorOnAuthorListContainingMultipleAuthors ( ) { submissionSet . getAuthors ( ) . add ( author1 ) ; submissionSet . getAuthors ( ) . add ( author2 ) ; "<AssertPlaceHolder>" ; } getAuthor ( ) { return authors . isEmpty ( ) ? null : authors . get ( 0 ) ; } | org . junit . Assert . assertEquals ( author1 , submissionSet . getAuthor ( ) ) |
txn_lifecycle_04 ( ) { int x = org . apache . jena . system . Txn . calculateWrite ( trans , ( ) -> 5 ) ; "<AssertPlaceHolder>" ; } calculateWrite ( T extends org . apache . jena . sparql . core . Transactional , java . util . function . Supplier ) { return org . apache . jena . system . Txn . calc ( txn , TxnType . WR... | org . junit . Assert . assertEquals ( 5 , x ) |
testFileBatchInputFormatParquet ( ) { java . io . File fileParquet = new java . io . File ( io . cdap . plugin . batch . source . FileBatchSourceTest . temporaryFolder . newFolder ( ) , "test.parquet" ) ; java . lang . String outputDatasetName = "test-filesource-parquet" ; java . lang . String appName = "FileSourceParq... | org . junit . Assert . assertEquals ( expected , output ) |
testTransactionsWithMultipleDestinations ( ) { stompConnection . connect ( "system" , "activemq.exclusive" 3 ) ; java . util . HashMap < java . lang . String , java . lang . String > headers = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; headers . put ( "activemq.exclusive" 2 , "activ... | org . junit . Assert . assertNotNull ( frame ) |
testHistoricDecisionOutputInstanceBinary ( ) { testRule . deploy ( org . camunda . bpm . engine . test . api . resources . HistoryByteArrayTest . DECISION_PROCESS , org . camunda . bpm . engine . test . api . resources . HistoryByteArrayTest . DECISION_SINGLE_OUTPUT_DMN ) ; startProcessInstanceAndEvaluateDecision ( new... | org . junit . Assert . assertEquals ( 1 , outputInstances . size ( ) ) |
registeredInjector ( ) { for ( final java . util . Map . Entry < java . lang . String , org . gazzax . labs . solrdf . graph . standalone . FieldInjectorRegistry . FieldInjector > entry : cut . injectors . entrySet ( ) ) { final java . lang . String dataTypeURI = entry . getKey ( ) ; final org . gazzax . labs . solrdf ... | org . junit . Assert . assertSame ( entry . getValue ( ) , result ) |
testGetTargetNamespace ( ) { org . w3c . dom . Element x = ( ( org . w3c . dom . Element ) ( wsattacker . library . xmlutilities . dom . DomUtilities . evaluateXPath ( wsattacker . library . schemaanalyzer . SchemaAnalyzerTest . DOC_SAML20P , "/*[local-name()='schema']/*[local-name()='element'<sp>and<sp>@name='Response... | org . junit . Assert . assertArrayEquals ( expResult , result ) |
testFromString_ClientIdOnly ( ) { java . lang . String pLanguage = "en" ; com . memetix . mst . language . Language . setKey ( null ) ; com . memetix . mst . language . Language expResult = com . memetix . mst . language . Language . ENGLISH ; com . memetix . mst . language . Language result = com . memetix . mst . lan... | org . junit . Assert . assertEquals ( expResult , result ) |
testBuildWithParameters ( ) { java . lang . String name = "fsdfds" ; java . lang . String abbrName = "dog" ; org . lnu . is . domain . optype . OperationType context = new org . lnu . is . domain . optype . OperationType ( ) ; context . setAbbrName ( abbrName ) ; context . setName ( name ) ; java . lang . String expect... | org . junit . Assert . assertEquals ( expectedQuery , actualQuery ) |
itInstallsResources ( ) { com . fiestacabin . dropwizard . guice . test . SampleApplication s = new com . fiestacabin . dropwizard . guice . test . SampleApplication ( ) ; s . run ( configuration , environment ) ; org . mockito . ArgumentCaptor < com . fiestacabin . dropwizard . guice . test . resources . MyResource > ... | org . junit . Assert . assertThat ( resource . getValue ( ) , org . hamcrest . core . Is . is ( com . fiestacabin . dropwizard . guice . test . resources . MyResource . class ) ) |
testBareJID ( ) { final org . xmpp . packet . JID fullJID = new org . xmpp . packet . JID ( null , org . xmpp . packet . JIDCreationDomainTest . DOMAIN , null ) ; final java . lang . String bareJID = fullJID . toBareJID ( ) ; "<AssertPlaceHolder>" ; } toBareJID ( ) { final java . lang . StringBuilder sb = new java . la... | org . junit . Assert . assertEquals ( org . xmpp . packet . JIDCreationDomainTest . DOMAIN , bareJID ) |
getCourseInfo ( ) { mockStatic ( fi . helsinki . cs . tmc . cli . backend . CourseInfoIo . class ) ; fi . helsinki . cs . tmc . cli . io . WorkDir workDir = mock ( fi . helsinki . cs . tmc . cli . io . WorkDir . class ) ; when ( workDir . getConfigFile ( ) ) . thenReturn ( null ) ; "<AssertPlaceHolder>" ; } getCourseIn... | org . junit . Assert . assertEquals ( null , ctx . getCourseInfo ( ) ) |
testWebPayOutTradeNoEmpty ( ) { me . hao0 . alipay . model . pay . WebPayDetail fields = new me . hao0 . alipay . model . pay . WebPayDetail ( "" , "ss" , "0.01" ) ; fields . setExterInvokeIp ( "222.112.105.129" ) ; java . lang . String form = alipay . pay ( ) . webPay ( fields ) ; "<AssertPlaceHolder>" ; System . out ... | org . junit . Assert . assertNotNull ( form ) |
shouldFindAwkwardGlobalValueIfDefined ( ) { givenDefaults ( ) . with ( "property.name" , "the\\value\nis\t\'here\'" ) ; whenOracleIsLoadedAndExec ( ) ; "<AssertPlaceHolder>" ; } globalScopedProperty ( java . lang . String ) { java . lang . String args = ( "'" + key ) + "'" ; return lookupArgs ( args ) ; } | org . junit . Assert . assertThat ( globalScopedProperty ( "property.name" ) , org . hamcrest . Matchers . is ( "the\\value\nis\t\'here\'" ) ) |
restWithTwoSegments ( ) { me . tomassetti . turin . parser . ast . QualifiedName qualifiedName = me . tomassetti . turin . parser . ast . QualifiedName . create ( com . google . common . collect . ImmutableList . of ( "hello" , "turin" ) ) ; "<AssertPlaceHolder>" ; } create ( java . util . List ) { if ( base . isEmpty ... | org . junit . Assert . assertEquals ( me . tomassetti . turin . parser . ast . QualifiedName . create ( com . google . common . collect . ImmutableList . of ( "turin" ) ) , qualifiedName . rest ( ) ) |
canReadStringLargerThanBuffer ( ) { java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; sb . append ( "\"" ) ; for ( int i = 0 ; i < 1000 ; i ++ ) { sb . append ( "abcdefghijklmnopq" ) ; } sb . append ( "\"" ) ; java . lang . String largeString = sb . toString ( ) ; byte [ ] bytes = largeString . get... | org . junit . Assert . assertEquals ( largeString . substring ( 1 , ( ( largeString . length ( ) ) - 1 ) ) , result ) |
testRegisterSoortIsCorrectVoorAkte ( ) { final nl . bzk . brp . bijhouding . bericht . model . DocumentElement element = new nl . bzk . brp . bijhouding . bericht . model . DocumentElement ( attributes , new nl . bzk . brp . bijhouding . bericht . model . StringElement ( HUWELIJKSAKTE_NAAM ) , nl . bzk . brp . bijhoudi... | org . junit . Assert . assertEquals ( 0 , element . valideer ( ) . size ( ) ) |
testEqualsImaginaryDifference ( ) { org . apache . commons . math . complex . Complex x = new org . apache . commons . math . complex . Complex ( 0.0 , 0.0 ) ; org . apache . commons . math . complex . Complex y = new org . apache . commons . math . complex . Complex ( 0.0 , ( 0.0 + ( Double . MIN_VALUE ) ) ) ; "<Asser... | org . junit . Assert . assertFalse ( x . equals ( y ) ) |
getDefaultCertificateCheck ( ) { org . ops4j . util . property . PropertyResolver propertyResolver = createMock ( org . ops4j . util . property . PropertyResolver . class ) ; expect ( propertyResolver . get ( "org.ops4j.pax.url.mvn.localRepository" ) ) . andReturn ( null ) ; expect ( propertyResolver . get ( "org.ops4j... | org . junit . Assert . assertEquals ( "Certificate<sp>check" , false , config . getCertificateCheck ( ) ) |
shouldFindExactMatches ( ) { final java . lang . String value = "org.foo.foo" ; "<AssertPlaceHolder>" ; } matches ( java . lang . String , java . lang . String ) { return java . util . regex . Pattern . matches ( org . pitest . highwheel . util . GlobToRegex . convertGlobToRegex ( String ) , value ) ; } | org . junit . Assert . assertTrue ( matches ( value , value ) ) |
setReprovisionPolicyWorks ( tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . configs . SymmetricKeyAttestation ) { tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . configs . ReprovisionPolicy expectedReprovisionPolicy = new tests . unit . com . microsoft . azure... | org . junit . Assert . assertEquals ( expectedReprovisionPolicy , individualEnrollment . getReprovisionPolicy ( ) ) |
setPhase_l3_phaseIsSet ( ) { java . lang . String phase = "L3" ; sampledValue . setPhase ( phase ) ; "<AssertPlaceHolder>" ; } getPhase ( ) { return phase ; } | org . junit . Assert . assertThat ( sampledValue . getPhase ( ) , org . hamcrest . CoreMatchers . equalTo ( phase ) ) |
ensureThisBeanPostProcessorIsTheFirstInTheRow ( ) { final io . tracee . binding . spring . context . async . PreTpicAsyncBeanPostProcessor beanPostProcessor = new io . tracee . binding . spring . context . async . PreTpicAsyncBeanPostProcessor ( mock ( java . util . concurrent . Executor . class ) , backend ) ; "<Asser... | org . junit . Assert . assertThat ( beanPostProcessor . isBeforeExistingAdvisors ( ) , org . hamcrest . Matchers . is ( true ) ) |
testGetGeneralizationAndDelete ( ) { org . apache . lucene . util . OpenBitSet lhs = new org . apache . lucene . util . OpenBitSet ( ) ; lhs . set ( 0 ) ; lhs . set ( 1 ) ; lhs . set ( 3 ) ; lhs . set ( 4 ) ; org . apache . lucene . util . OpenBitSet specLhs = this . fdtree . getFdOrGeneralization ( lhs , 2 ) ; org . a... | org . junit . Assert . assertEquals ( expResult , specLhs ) |
run ( ) { final int threadNumber = 4 ; final java . lang . String repo1 = "repo1" ; final java . lang . String repo2 = "repo2" ; final java . lang . String path = "org/foo/bar/maven-metadata.xml" ; org . commonjava . indy . model . core . RemoteRepository rr1 = new org . commonjava . indy . model . core . RemoteReposit... | org . junit . Assert . assertThat ( download . isMissing ( ) , org . hamcrest . CoreMatchers . equalTo ( false ) ) |
testWriteMailToStreamWithException ( ) { java . util . ArrayList < com . ripariandata . timberwolf . mail . MailboxItem > mails = new java . util . ArrayList < com . ripariandata . timberwolf . mail . MailboxItem > ( ) ; mails . add ( com . ripariandata . timberwolf . writer . hive . SequenceFileMailWriterTest . mockMa... | org . junit . Assert . assertTrue ( true ) |
getBlobSizeInBytesGets ( ) { final java . lang . Long actualBlobSizeInBytes = 10000L ; com . microsoft . azure . sdk . iot . service . FileUploadNotification testFileUploadNotification = new com . microsoft . azure . sdk . iot . service . FileUploadNotification ( mockDeviceId , mockBlobUri , mockBlobName , mockLastUpda... | org . junit . Assert . assertEquals ( testBlobSizeInBytes , actualBlobSizeInBytes ) |
withSofh ( ) { frameEncoder = new io . fixprotocol . silverflash . frame . sofh . SofhFrameEncoder ( ) ; io . fixprotocol . silverflash . transport . Transport serverTransport = memoryTransport . getServerTransport ( ) ; io . fixprotocol . silverflash . transport . TransportDecorator nonFifoServerTransport = new io . f... | org . junit . Assert . assertEquals ( messageCount , serverReceiver . getMsgsReceived ( ) ) |
testAiringToday ( ) { info . movito . themoviedbapi . model . config . Timezone ca = com . google . common . collect . Iterables . find ( tmdb . getTimezones ( ) , new com . google . common . base . Predicate < info . movito . themoviedbapi . model . config . Timezone > ( ) { @ info . movito . themoviedbapi . Override ... | org . junit . Assert . assertFalse ( en . getResults ( ) . isEmpty ( ) ) |
testNullMapping ( ) { "<AssertPlaceHolder>" ; } isMappingSingleSwitch ( org . apache . hadoop . net . DNSToSwitchMapping ) { return ( ( mapping != null ) && ( mapping instanceof org . apache . hadoop . net . AbstractDNSToSwitchMapping ) ) && ( ( ( org . apache . hadoop . net . AbstractDNSToSwitchMapping ) ( mapping ) )... | org . junit . Assert . assertFalse ( org . apache . hadoop . net . AbstractDNSToSwitchMapping . isMappingSingleSwitch ( null ) ) |
renderConfluencePage_asciiDocWithInternalCrossReferenceToSectionAndCustomLabel_returnsConfluencePageContentWithInternalCrossReferenceToSectionUsingCustomLabel ( ) { java . lang . String adocContent = "" + ( "==<sp>Section<sp>1<sp>[[section1]]\n" + "Cross<sp>reference<sp>to<sp><<section1,section<sp>1>>" ) ; org . sahli ... | org . junit . Assert . assertThat ( asciidocConfluencePage . content ( ) , org . hamcrest . Matchers . is ( expectedContent ) ) |
testGetStringTypedLiterals ( ) { org . semanticweb . owlapi . model . OWLLiteral literal = io . scigraph . owlapi . OwlApiUtilsTest . factory . getOWLLiteral ( "hello" , "en" ) ; "<AssertPlaceHolder>" ; } getTypedLiteralValue ( org . semanticweb . owlapi . model . OWLLiteral ) { java . lang . Object literalValue = null... | org . junit . Assert . assertThat ( ( ( java . lang . String ) ( io . scigraph . owlapi . OwlApiUtils . getTypedLiteralValue ( literal ) . get ( ) ) ) , org . hamcrest . CoreMatchers . is ( "hello" ) ) |
shouldFailFindOrCreateNodeSessionPathNullSession ( ) { javax . jcr . Session sess = null ; try { tools . findOrCreateNode ( sess , "Person" ) ; } catch ( java . lang . Exception e ) { "<AssertPlaceHolder>" ; } } findOrCreateNode ( javax . jcr . Session , java . lang . String ) { return findOrCreateNode ( session , path... | org . junit . Assert . assertTrue ( ( e instanceof java . lang . IllegalArgumentException ) ) |
testSetAlphaWithInvalidValue ( ) { gc . setAlpha ( 777 ) ; "<AssertPlaceHolder>" ; } getAlpha ( ) { checkWidget ( ) ; return alpha ; } | org . junit . Assert . assertEquals ( 255 , gc . getAlpha ( ) ) |
testReadBlockGroupNormal ( ) { byte [ ] content = new byte [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 } ; com . geekhua . filequeue . datastore . BlockGroup blockGroup = com . geekhua . filequeue . datastore . BlockGroup . allocate ( content . length , 1024 ) ; blockGroup . setContent ( content ) ; java . io . RandomAccessFil... | org . junit . Assert . assertArrayEquals ( content , readBlockGroup . getContent ( ) ) |
testGetTableApproximateSize ( ) { long expected = 1234L ; when ( _server . getTableApproximateSize ( "table-name" ) ) . thenReturn ( expected ) ; long tableApproximateSize = sorClient ( test . integration . sor . DataStoreJerseyTest . APIKEY_TABLE ) . getTableApproximateSize ( "table-name" ) ; "<AssertPlaceHolder>" ; v... | org . junit . Assert . assertEquals ( tableApproximateSize , expected ) |
testLocalSubjectsGapPenalties ( ) { for ( org . biojava . bio . alignment . AlignmentPair alignmentPair : align . local ( query , subjects , gapPenalties ) ) { "<AssertPlaceHolder>" ; } } local ( org . biojava . bio . seq . Sequence , org . biojava . bio . seq . Sequence , org . nmdp . ngs . align . GapPenalties ) { re... | org . junit . Assert . assertNotNull ( alignmentPair ) |
testIsAdmin ( ) { org . apache . ranger . common . UserSessionBase currentUserSession = org . apache . ranger . common . ContextUtil . getCurrentUserSession ( ) ; currentUserSession . setUserAdmin ( true ) ; boolean isAdminChk = rangerBizUtil . isAdmin ( ) ; "<AssertPlaceHolder>" ; } isAdmin ( ) { org . apache . ranger... | org . junit . Assert . assertTrue ( isAdminChk ) |
removeDriftTest_2d ( ) { de . biomedical_imaging . traJ . Trajectory t = new de . biomedical_imaging . traJ . Trajectory ( 2 ) ; de . biomedical_imaging . traJ . Trajectory tWithDrift = new de . biomedical_imaging . traJ . Trajectory ( 2 ) ; int z = 0 ; double [ ] drift = new double [ ] { 1 , 2 , 0 } ; for ( int i = 0 ... | org . junit . Assert . assertArrayEquals ( t . getPositionsAsArray ( ) , tCorrected . getPositionsAsArray ( ) ) |
testConvertRawValueValidType ( ) { java . lang . Object expectedValue = "ABC" ; java . lang . Object rawValue = "abc" ; com . thinkbiganalytics . policy . standardization . UppercaseStandardizer standardizer = com . thinkbiganalytics . policy . standardization . UppercaseStandardizer . instance ( ) ; "<AssertPlaceHolde... | org . junit . Assert . assertEquals ( expectedValue , standardizer . convertRawValue ( rawValue ) ) |
testNetworkFromJson ( ) { org . vertx . java . core . json . JsonObject json = new org . vertx . java . core . json . JsonObject ( ) . putString ( NetworkConfig . NETWORK_NAME , "test" ) . putObject ( NetworkConfig . NETWORK_COMPONENTS , new org . vertx . java . core . json . JsonObject ( ) ) ; net . kuujo . vertigo . ... | org . junit . Assert . assertEquals ( "test" , network . getName ( ) ) |
testGetTagValue10Args ( ) { java . util . List < java . lang . String > args = new java . util . ArrayList < java . lang . String > ( ) ; args . add ( "<arg4>4</arg4>\n" 1 ) ; args . add ( "2" ) ; args . add ( "<specificQueryInp_PI><sql>query</sql>\n" 9 ) ; args . add ( "<arg4>4</arg4>\n" 4 ) ; args . add ( "5" ) ; arg... | org . junit . Assert . assertEquals ( "<specificQueryInp_PI><sql>query</sql>\n" 5 , sb . toString ( ) , tagVal ) |
testAndAllChildrenConstraintsTrueGivesTrueUsingAlternateConstructor ( ) { com . picocontainer . gems . constraints . Constraint c = new com . picocontainer . gems . constraints . And ( new com . picocontainer . gems . constraints . Constraint [ ] { c1 , c2 , c3 } ) ; final org . jmock . Sequence sequence = mockery . se... | org . junit . Assert . assertTrue ( c . evaluate ( adapter ) ) |
testWriteReadNulls ( ) { java . lang . String ref = "http://testrefnulls.com" ; com . norconex . collector . core . data . ICrawlData dataIn = createCrawlData ( ref ) ; crawlStore . processed ( dataIn ) ; moveProcessedToCache ( ) ; com . norconex . collector . core . data . ICrawlData dataOut = ( ( com . norconex . col... | org . junit . Assert . assertEquals ( dataIn , dataOut ) |
when_nonequal_then_equalsFalse ( ) { ibt = com . hazelcast . jet . datamodel . ItemsByTag . itemsByTag ( com . hazelcast . jet . datamodel . Tag . tag0 ( ) , "a" ) ; com . hazelcast . jet . datamodel . ItemsByTag ibt2 = com . hazelcast . jet . datamodel . ItemsByTag . itemsByTag ( com . hazelcast . jet . datamodel . Ta... | org . junit . Assert . assertFalse ( ibt . equals ( ibt2 ) ) |
beanTool ( ) { com . alibaba . citrus . service . pull . support . BeanTool bean = ( ( com . alibaba . citrus . service . pull . support . BeanTool ) ( tools . get ( "b" ) ) ) ; "<AssertPlaceHolder>" ; } isAutowire ( ) { return autowire ; } | org . junit . Assert . assertEquals ( false , bean . isAutowire ( ) ) |
testOnlyOneHostLeftAndContainerWithSameDescButDifferentContext ( ) { com . vmware . admiral . compute . container . ContainerDescriptionService . ContainerDescription desc = createDescription ( ) ; for ( int i = 0 ; i < ( ( initialHostLinks . size ( ) ) - 1 ) ; i ++ ) { java . lang . String hostLink = expectedLinks . r... | org . junit . Assert . assertEquals ( 1 , expectedLinks . size ( ) ) |
testFetchAndLockWithAuthenticatedTenant ( ) { identityService . setAuthentication ( "aUserId" , null , java . util . Arrays . asList ( org . camunda . bpm . engine . test . api . multitenancy . tenantcheck . MultiTenancyExternalTaskCmdsTenantCheckTest . TENANT_ONE ) ) ; java . util . List < org . camunda . bpm . engine... | org . junit . Assert . assertEquals ( 1 , externalTasks . size ( ) ) |
isPropertyValueSetWhenValueIsSetShouldReturnTrue ( ) { java . lang . String propertyValue = "notEmptyPropertyValue" ; resourceEditProperty = new ch . puzzle . itc . mobiliar . builders . ResourceEditPropertyBuilder ( ) . withValue ( propertyValue ) . build ( ) ; boolean isPropertyValueSet = resourceEditProperty . isPro... | org . junit . Assert . assertTrue ( isPropertyValueSet ) |
testGetArgumentDesc ( ) { System . out . println ( "getArgumentDesc" ) ; kg . apc . jmeter . functions . MD5 instance = new kg . apc . jmeter . functions . MD5 ( ) ; java . util . List result = instance . getArgumentDesc ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return graphRow . size ( ) ; } | org . junit . Assert . assertEquals ( 2 , result . size ( ) ) |
testGetLongPropetry ( ) { javax . jms . JMSProducer producer = context . createProducer ( ) ; producer . setProperty ( LONG_PROPERTY_NAME , LONG_PROPERTY_VALUE ) ; "<AssertPlaceHolder>" ; } getLongProperty ( java . lang . String ) { try { return convertPropertyTo ( name , messageProperties . get ( name ) , org . apache... | org . junit . Assert . assertEquals ( LONG_PROPERTY_VALUE , producer . getLongProperty ( LONG_PROPERTY_NAME ) ) |
testEmptyStringConversion ( ) { "<AssertPlaceHolder>" ; } convertToModel ( java . lang . Enum , java . lang . Class , java . util . Locale ) { if ( value == null ) { return null ; } return value . toString ( ) ; } | org . junit . Assert . assertEquals ( null , converter . convertToModel ( "" , java . math . BigDecimal . class , null ) ) |
shouldReturnOffWhenSslAndSslMixedTagsAreDisabled ( ) { final org . openstack . atlas . service . domain . events . entities . SslMode mode = org . openstack . atlas . service . domain . events . entities . SslMode . getMode ( bitTags ) ; "<AssertPlaceHolder>" ; } getMode ( org . openstack . atlas . service . domain . u... | org . junit . Assert . assertEquals ( SslMode . OFF , mode ) |
testParameter ( ) { final net . violet . platform . api . actions . Action theAction = new net . violet . platform . api . actions . news . GetNews ( ) ; final net . violet . platform . api . callers . APICaller caller = getPublicApplicationAPICaller ( ) ; final java . util . Map < java . lang . String , java . lang . ... | org . junit . Assert . assertNotNull ( theResult ) |
testValideerPersoonIsNietIngeschrevene ( ) { final nl . bzk . brp . business . regels . context . HuidigeSituatieRegelContext regelContext = new nl . bzk . brp . business . regels . context . HuidigeSituatieRegelContext ( maakHuidigeSituatie ( SoortPersoon . NIET_INGESCHREVENE , NadereBijhoudingsaard . ACTUEEL ) ) ; fi... | org . junit . Assert . assertTrue ( resultaat ) |
testMkdirIntIProgressMonitor ( ) { this . deleteFile = new java . io . File ( gov . redhawk . sca . efs . tests . ScaFileStoreTest . session . getRootFile ( ) , "test" ) ; final org . eclipse . core . filesystem . IFileStore child = this . rootFileStore . getChild ( "test" ) ; child . mkdir ( 0 , null ) ; "<AssertPlace... | org . junit . Assert . assertTrue ( this . deleteFile . exists ( ) ) |
testRollbackCreateTableDoesntDeleteExternalExistentTable ( ) { org . apache . accumulo . core . client . mock . MockInstance inst = new org . apache . accumulo . core . client . mock . MockInstance ( test . getMethodName ( ) ) ; org . apache . accumulo . core . client . Connector conn = inst . getConnector ( "root" , n... | org . junit . Assert . assertTrue ( conn . tableOperations ( ) . exists ( tableName ) ) |
testDateConversion ( ) { java . lang . String expDateString = "21/11/2017" ; java . util . Date date = il . co . topq . difido . DateTimeConverter . fromDateString ( expDateString ) . toDateObject ( ) ; java . lang . String actDateString = il . co . topq . difido . DateTimeConverter . fromDateObject ( date ) . toDateSt... | org . junit . Assert . assertEquals ( expDateString , actDateString ) |
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . expando . kernel . model . ExpandoTable missingExpandoTable = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPrimaryKey ( long ) { return com . liferay... | org . junit . Assert . assertNull ( missingExpandoTable ) |
resolveGemfireMappingContextUsesQualifiedMappingContext ( ) { javax . enterprise . inject . spi . Bean < org . springframework . data . gemfire . mapping . GemfireMappingContext > mockMappingContextBean = org . mockito . Mockito . mock ( javax . enterprise . inject . spi . Bean . class ) ; javax . enterprise . context ... | org . junit . Assert . assertThat ( actualGemfireMappingContext , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( expectedGemfireMappingContext ) ) ) |
testGetByNameAndRefSource ( ) { uk . ac . ebi . bioinvindex . dao . ejb3 . OntologyEntryEJB3DAO < uk . ac . ebi . bioinvindex . model . term . Measurement > dao = ( ( uk . ac . ebi . bioinvindex . dao . ejb3 . OntologyEntryEJB3DAO < uk . ac . ebi . bioinvindex . model . term . Measurement > ) ( daoFactory . getOntology... | org . junit . Assert . assertNotNull ( ontologyEntryByAcc ) |
testSerialization ( ) { org . jfree . chart . renderer . category . LayeredBarRenderer r1 = new org . jfree . chart . renderer . category . LayeredBarRenderer ( ) ; org . jfree . chart . renderer . category . LayeredBarRenderer r2 = ( ( org . jfree . chart . renderer . category . LayeredBarRenderer ) ( org . jfree . ch... | org . junit . Assert . assertEquals ( r1 , r2 ) |
hasGivenFindsParameter ( ) { org . hl7 . fhir . r4 . model . HumanName humanName = new org . hl7 . fhir . r4 . model . HumanName ( ) . addGiven ( "test" ) ; "<AssertPlaceHolder>" ; } hasGiven ( java . lang . String ) { if ( ( this . given ) == null ) return false ; for ( org . hl7 . fhir . dstu3 . model . StringType v ... | org . junit . Assert . assertTrue ( humanName . hasGiven ( "test" ) ) |
nameForMocksControl ( ) { org . easymock . IMocksControl control = createControl ( ) ; org . easymock . tests . IMethods mock = control . createMock ( "mock" , org . easymock . tests . IMethods . class ) ; mock . simpleMethod ( ) ; replay ( mock ) ; try { verify ( mock ) ; } catch ( java . lang . AssertionError expecte... | org . junit . Assert . assertEquals ( expectedMessage , actualMessage ) |
getMsg ( ) { $package . App app = new $package . App ( ) ; "<AssertPlaceHolder>" ; } getMsg ( ) { return "Hello<sp>World!" ; } | org . junit . Assert . assertEquals ( "Hello<sp>World!" , app . getMsg ( ) ) |
testDecommisionedConstraintWithPageinate ( ) { int objCount = 10 ; java . util . List < com . emc . storageos . db . client . model . VirtualArray > varrays = createVirtualArrays ( 10 , "foo" ) ; java . util . List < java . net . URI > ids = _dbClient . queryByType ( com . emc . storageos . db . client . model . Virtua... | org . junit . Assert . assertEquals ( objCount , count ) |
itProhibitsKeyGeneration ( ) { try { AsymmetricAlgorithm . EC . getAlgorithmParameterSpec ( ) ; org . junit . Assert . fail ( "should<sp>have<sp>thrown<sp>an<sp>UnsupportedOperationException<sp>but<sp>didn't" ) ; } catch ( java . lang . UnsupportedOperationException e ) { "<AssertPlaceHolder>" . isEqualTo ( "EC<sp>keys... | org . junit . Assert . assertThat ( e . getMessage ( ) ) |
testWithUnmanagedComponent ( javax . enterprise . inject . spi . BeanManager ) { javax . enterprise . inject . spi . Unmanaged < org . jboss . weld . tests . interceptors . resource . InterceptedBean > unmanaged = new javax . enterprise . inject . spi . Unmanaged ( manager , org . jboss . weld . tests . interceptors . ... | org . junit . Assert . assertNotNull ( reference . ping ( null ) ) |
isValidLoraGatewayReturnsFalseForMissingUrl ( ) { final io . vertx . core . json . JsonObject gateway = getValidGateway ( ) ; final io . vertx . core . json . JsonObject loraConfig = org . eclipse . hono . adapter . lora . providers . LoraUtils . getLoraConfigFromLoraGatewayDevice ( gateway ) ; loraConfig . remove ( "u... | org . junit . Assert . assertFalse ( org . eclipse . hono . adapter . lora . providers . LoraUtils . isValidLoraGateway ( gateway ) ) |
escape_null_around ( ) { java . lang . String [ ] [ ] result = read ( "a\\Nb" ) ; "<AssertPlaceHolder>" ; } is ( java . lang . String ) { com . asakusafw . dmdl . java . util . JavaName jn = com . asakusafw . dmdl . java . util . JavaName . of ( new com . asakusafw . dmdl . model . AstSimpleName ( null , name ) ) ; jn ... | org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( new java . lang . String [ ] [ ] { new java . lang . String [ ] { "a\\Nb" } } ) ) |
testMutability ( ) { org . kuali . rice . krad . uif . service . ViewService viewService = org . kuali . rice . krad . service . KRADServiceLocatorWeb . getViewService ( ) ; org . kuali . rice . krad . uif . view . View view = viewService . getViewById ( "DummyLoginView" ) ; org . kuali . rice . krad . uif . container ... | org . junit . Assert . assertSame ( group , view . getItems ( ) . get ( ( ( view . getItems ( ) . size ( ) ) - 1 ) ) ) |
testStoreConnectionTxn1 ( ) { org . apache . jena . tdb2 . sys . TDBInternal . reset ( ) ; java . lang . String DIRx = org . apache . jena . tdb2 . ConfigTest . getCleanDir ( ) ; org . apache . jena . dboe . base . file . Location DIR = org . apache . jena . dboe . base . file . Location . create ( DIRx ) ; org . apach... | org . junit . Assert . assertSame ( dg1 , dg2 ) |
testEquals ( ) { ch . bfh . unicrypt . math . algebra . dualistic . classes . Z z1 = ch . bfh . unicrypt . math . algebra . dualistic . classes . Z . getInstance ( ) ; ch . bfh . unicrypt . math . algebra . dualistic . classes . Z z2 = ch . bfh . unicrypt . math . algebra . dualistic . classes . Z . getInstance ( ) ; "... | org . junit . Assert . assertEquals ( z1 , z2 ) |
testSetAllKeepAlive ( ) { org . kaazing . mina . netty . socket . nio . DefaultNioSocketChannelIoSessionConfig config = new org . kaazing . mina . netty . socket . nio . DefaultNioSocketChannelIoSessionConfig ( ) ; config . init ( new org . kaazing . mina . netty . socket . nio . NioSocketChannelIoAcceptor ( config ) )... | org . junit . Assert . assertEquals ( config . isKeepAlive ( ) , acceptedConfig . isKeepAlive ( ) ) |
testTrashVersionCreationWhenMovingToTrash ( ) { int initialTrashVersionsCount = com . liferay . trash . service . TrashVersionLocalServiceUtil . getTrashVersionsCount ( ) ; com . liferay . wiki . trash . test . WikiPageDependentsTrashHandlerTest . RelatedPages relatedPages = buildRelatedPages ( ) ; movePageToTrash ( re... | org . junit . Assert . assertEquals ( ( initialTrashVersionsCount + 5 ) , com . liferay . trash . service . TrashVersionLocalServiceUtil . getTrashVersionsCount ( ) ) |
asString_2 ( ) { java . lang . String x = org . apache . jena . atlas . iterator . Iter . asString ( data1 , "" ) ; "<AssertPlaceHolder>" ; } asString ( org . apache . jena . sparql . path . Path , org . apache . jena . sparql . core . Prologue ) { org . apache . jena . atlas . io . IndentedLineBuffer buff = new org . ... | org . junit . Assert . assertEquals ( "a" , x ) |
testDoCommandWithoutWaitingWithResultAlreadyThereWithNoPI ( ) { cq . putResult ( org . openqa . selenium . server . CommandQueueUnitTest . testResult ) ; try { cq . doCommandWithoutWaitingForAResponse ( org . openqa . selenium . server . CommandQueueUnitTest . testCommand , "" , "" ) ; org . junit . Assert . fail ( ) ;... | org . junit . Assert . assertNotNull ( cq . peekAtResult ( ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.