input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
isStringNotInWorking ( ) { if ( isBatoo ( ) ) { return ; } final java . lang . String subQueryJPQL = "select<sp>r.id<sp>from<sp>RegularEntityOne<sp>r<sp>where<sp>r.stringAttribute<sp>not<sp>in<sp>('Just<sp>a<sp>String<sp>01',<sp>'Just<sp>a<sp>String<sp>02')" ; final java . lang . String query = ( ( "select<sp>r<sp>from... | org . junit . Assert . assertTrue ( ( ( resultFromJPQL . size ( ) ) > 0 ) ) |
testLeftJoin ( ) { org . meridor . perspective . sql . impl . parser . SelectQueryAware selectQueryAware = parse ( "select<sp>*<sp>from<sp>instances<sp>left<sp>join<sp>projects<sp>on<sp>instances.id<sp>=<sp>projects.id" , org . meridor . perspective . sql . impl . parser . SelectQueryAware . class ) ; org . meridor . p... | org . junit . Assert . assertThat ( selectQueryAware . getDataSource ( ) , equalTo ( java . util . Optional . of ( instancesDataSource ) ) ) |
withoutDomain ( ) { try { context . getEndpoint ( "jmx:platform?objectName=theObjectName" ) ; org . junit . Assert . fail ( "missing<sp>domain<sp>should<sp>have<sp>caused<sp>failure" ) ; } catch ( org . apache . camel . ResolveEndpointFailedException e ) { "<AssertPlaceHolder>" ; } } getCause ( ) { return cause ; } | org . junit . Assert . assertTrue ( ( ( e . getCause ( ) ) instanceof java . lang . IllegalArgumentException ) ) |
createPrivChatWithExistingChatWindowShouldNotSetNewChatWindow ( ) { final net . usikkert . kouchat . misc . User user = new net . usikkert . kouchat . misc . User ( "User" , 123 ) ; final net . usikkert . kouchat . ui . PrivateChatWindow chatWindow = mock ( net . usikkert . kouchat . ui . PrivateChatWindow . class ) ; ... | org . junit . Assert . assertSame ( chatWindow , user . getPrivchat ( ) ) |
shouldJsonSerialiseAndDeserialise ( ) { final T obj = getTestObject ( ) ; final byte [ ] json = toJson ( obj ) ; final T deserialisedObj = fromJson ( json ) ; "<AssertPlaceHolder>" ; } fromJson ( java . lang . String ) { try { return uk . gov . gchq . gaffer . jsonserialisation . JSONSerialiser . deserialise ( uk . gov... | org . junit . Assert . assertNotNull ( deserialisedObj ) |
withSchemeWhenSchemeIsNotEmpty ( ) { final com . azure . common . implementation . http . UrlBuilder builder = new com . azure . common . implementation . http . UrlBuilder ( ) . withScheme ( "http" ) ; builder . withScheme ( "https" ) ; "<AssertPlaceHolder>" ; } scheme ( ) { return scheme ; } | org . junit . Assert . assertEquals ( "https" , builder . scheme ( ) ) |
shouldReturnSameHashCodeForEqualObjects ( ) { org . agorava . api . oauth . Token expected = new org . agorava . api . oauth . Token ( "access" , "secret" ) ; org . agorava . api . oauth . Token actual = new org . agorava . api . oauth . Token ( "access" , "secret" ) ; "<AssertPlaceHolder>" ; } hashCode ( ) { return ( ... | org . junit . Assert . assertEquals ( expected . hashCode ( ) , actual . hashCode ( ) ) |
zouMeldingMoetenGevenOmdatGeboortedatumEnSamengesteldeNaamZelfdeZijn ( ) { betrokkenheden . add ( createOuderBetrokkenheidBericht ( "123" ) ) ; final nl . bzk . brp . model . operationeel . kern . PersoonModel eerderkindModel = mock ( nl . bzk . brp . model . operationeel . kern . PersoonModel . class ) ; createPathToE... | org . junit . Assert . assertThat ( meldingen . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) ) |
testDataStoreFinderFindsIt ( ) { java . util . Iterator < org . geotools . data . DataStoreFactorySpi > allFactories = org . geotools . data . DataStoreFinder . getAllDataStores ( ) ; org . geotools . arcsde . ArcSDEDataStoreFactory sdeFac = null ; while ( allFactories . hasNext ( ) ) { org . geotools . data . DataAcce... | org . junit . Assert . assertNotNull ( sdeFac ) |
isValidConfiguration ( ) { final de . ovgu . featureide . fm . core . configuration . Configuration c = new de . ovgu . featureide . fm . core . configuration . Configuration ( FM_test_1 , false ) ; final de . ovgu . featureide . fm . core . configuration . DefaultFormat r = new de . ovgu . featureide . fm . core . con... | org . junit . Assert . assertFalse ( c . isValid ( ) ) |
saveFilterWithIncorrectStatusTestFail ( ) { java . util . List < org . kaaproject . kaa . common . dto . ProfileFilterDto > filters = generateFilterDto ( null , null , null , 1 , true ) ; org . kaaproject . kaa . common . dto . ProfileFilterDto filterDto = filters . get ( 0 ) ; "<AssertPlaceHolder>" ; profileService . ... | org . junit . Assert . assertNotNull ( filterDto ) |
getOutputStreamAndGetData ( ) { de . blizzy . documentr . web . filter . TrimResponseWrapper wrapper = new de . blizzy . documentr . web . filter . TrimResponseWrapper ( response ) ; wrapper . setContentType ( "text/plain" ) ; byte [ ] data = "hello<sp>€" . getBytes ( Charsets . UTF_8 ) ; javax . servlet . ServletOutpu... | org . junit . Assert . assertTrue ( java . util . Arrays . equals ( data , wrapper . getData ( ) ) ) |
delegates_the_process_of_determining_the_relative_url ( ) { java . lang . String expectedUrl = "job/" + ( com . smartcodeltd . jenkinsci . plugins . buildmonitor . viewmodel . JobViewTest . theName ) ; when ( relativeLocation . url ( ) ) . thenReturn ( expectedUrl ) ; view = a ( jobView ( ) . of ( a ( job ( ) . withNam... | org . junit . Assert . assertThat ( view . url ( ) , org . hamcrest . core . Is . is ( expectedUrl ) ) |
equalsReturnsTrueForSameSource ( ) { io . searchbox . indices . Analyze analyze1 = new io . searchbox . indices . Analyze . Builder ( ) . index ( "test" ) . analyzer ( "whitespace" ) . text ( "source" ) . build ( ) ; io . searchbox . indices . Analyze analyze1Duplicate = new io . searchbox . indices . Analyze . Builder... | org . junit . Assert . assertEquals ( analyze1 , analyze1Duplicate ) |
inheritingNonExistent ( ) { final org . springframework . context . ConfigurableApplicationContext ctx = ensureCreate ( propagateAnnotationProcessing ( new org . springframework . context . support . ClassPathXmlApplicationContext ( "parent.xml" ) ) , "nonexisting.xml" ) ; "<AssertPlaceHolder>" ; } propagateAnnotationP... | org . junit . Assert . assertNull ( ctx ) |
testGetAllIdentifiersNoAdd ( ) { java . util . Iterator < java . lang . String > ids = stagingCache . getAllIdentifiers ( ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { return ( current . next ) != null ; } | org . junit . Assert . assertFalse ( ids . hasNext ( ) ) |
upgradePeerReviewsToVrc2Test ( ) { javax . xml . bind . JAXBContext jaxbContext1 = javax . xml . bind . JAXBContext . newInstance ( org . orcid . jaxb . model . record . summary_rc1 . PeerReviews . class ) ; javax . xml . bind . JAXBContext jaxbContext2 = javax . xml . bind . JAXBContext . newInstance ( org . orcid . j... | org . junit . Assert . assertEquals ( rc2PeerReviews1 . getLastModifiedDate ( ) , rc2PeerReviews2 . getLastModifiedDate ( ) ) |
withResultTest ( ) { secondEntryPoint . insert ( new org . drools . compiler . integrationtests . QueryCepTest . TestEvent ( "minusOne" ) ) ; clock . advanceTime ( 5 , TimeUnit . SECONDS ) ; firstEntryPoint . insert ( new org . drools . compiler . integrationtests . QueryCepTest . TestEvent ( "zero" ) ) ; secondEntryPo... | org . junit . Assert . assertEquals ( 1 , results . size ( ) ) |
attributeDomainTest ( ) { eu . neclab . iotplatform . iotbroker . core . junittests . tests . TestFunctionality . logger . info ( "Now<sp>testing<sp>FIWARE.Feature.IoT.BackendThingsManagement.Query.attributeDomain" ) ; org . easymock . EasyMock . expect ( ngsi9InterfaceMock . discoverContextAvailability ( discoverReq_a... | org . junit . Assert . assertEquals ( brokerResp , queryResp_attribDom ) |
testGetMinTagId_1 ( ) { org . jinstagram . entity . common . Pagination fixture = new org . jinstagram . entity . common . Pagination ( ) ; fixture . setNextMaxId ( "" ) ; fixture . setNextMaxTagId ( "" ) ; fixture . setNextMinId ( "" ) ; fixture . setNextUrl ( "" ) ; fixture . setMinTagId ( "" ) ; fixture . setDepreci... | org . junit . Assert . assertEquals ( "" , result ) |
testFromEbXML ( ) { org . openehealth . ipf . commons . ihe . xds . core . ebxml . EbXMLClassification ebXML = transformer . toEbXML ( code , objectLibrary ) ; "<AssertPlaceHolder>" ; } fromEbXML ( org . openehealth . ipf . commons . ihe . xds . core . ebxml . EbXMLRetrieveDocumentSetRequest ) { if ( ebXML == null ) { ... | org . junit . Assert . assertEquals ( code , transformer . fromEbXML ( ebXML ) ) |
testFromNonEmptyOptional ( ) { java . util . Optional < java . lang . String > nonEmpty = java . util . Optional . of ( "Not<sp>Empty!" ) ; org . codefx . libfx . serialization . SerializableOptional < java . lang . String > nonEmptySerializable = org . codefx . libfx . serialization . SerializableOptional . fromOption... | org . junit . Assert . assertEquals ( nonEmpty , nonEmptySerializable . asOptional ( ) ) |
exprListTest_OneArg ( ) { org . apache . jena . arq . querybuilder . ExprList e = factory . asList ( factory . none ( ) ) ; "<AssertPlaceHolder>" ; } none ( ) { return new org . apache . jena . rdfxml . xmloutput . XMLOutputTestBase . Change ( ) ; } | org . junit . Assert . assertTrue ( ( e instanceof org . apache . jena . arq . querybuilder . ExprList ) ) |
testGetParamsArr ( ) { com . blinkfox . zealot . test . bean . SqlInfoTest . sqlInfo . setParams ( null ) ; "<AssertPlaceHolder>" ; } getParamsArr ( ) { return ( params ) == null ? new java . lang . Object [ ] { } : this . params . toArray ( ) ; } | org . junit . Assert . assertArrayEquals ( new java . lang . Object [ ] { } , com . blinkfox . zealot . test . bean . SqlInfoTest . sqlInfo . getParamsArr ( ) ) |
setToNextTimeOnNextDay2 ( ) { net . time4j . PlainTimestamp tsp = net . time4j . PlainTimestamp . of ( 2014 , 8 , 19 , 14 , 30 ) ; tsp = tsp . with ( PlainTime . COMPONENT . setToNext ( net . time4j . PlainTime . of ( 14 , 30 ) ) ) ; "<AssertPlaceHolder>" ; } of ( int , int , int , int , int ) { return net . time4j . P... | org . junit . Assert . assertThat ( tsp , org . hamcrest . CoreMatchers . is ( net . time4j . PlainTimestamp . of ( 2014 , 8 , 20 , 14 , 30 ) ) ) |
testRunRead ( ) { try { final org . eclipse . xtext . xbase . lib . Functions . Function1 < org . eclipse . xtext . util . CancelIndicator , java . lang . String > _function = ( org . eclipse . xtext . util . CancelIndicator it ) -> { return "Foo" ; } ; final java . util . concurrent . CompletableFuture < java . lang .... | org . junit . Assert . assertEquals ( "Foo" , future . get ( ) ) |
endIsInclusive ( ) { com . google . firebase . database . snapshot . Node node = NodeFromJSON ( com . google . firebase . database . TestHelpers . fromSingleQuotedString ( ( "{'bar':<sp>'bar-value',<sp>'foo':<sp>'foo-value',<sp>'quu':<sp>" + "'quu-value'}" ) ) ) ; com . google . firebase . database . snapshot . Node up... | org . junit . Assert . assertEquals ( expected , actual ) |
testUpdate ( ) { java . util . List < com . amazonaws . mobileconnectors . dynamodbv2 . dynamodbmapper . NumberSetAttributeClass > objs = new java . util . ArrayList < com . amazonaws . mobileconnectors . dynamodbv2 . dynamodbmapper . NumberSetAttributeClass > ( ) ; for ( int i = 0 ; i < 5 ; i ++ ) { com . amazonaws . ... | org . junit . Assert . assertEquals ( replacement , util . load ( com . amazonaws . mobileconnectors . dynamodbv2 . dynamodbmapper . NumberSetAttributeClass . class , obj . getKey ( ) ) ) |
testHintCache ( ) { final fr . gouv . vitam . common . database . parser . request . multiple . InsertParserMultiple request = new fr . gouv . vitam . common . database . parser . request . multiple . InsertParserMultiple ( ) ; "<AssertPlaceHolder>" ; } hintCache ( ) { final com . fasterxml . jackson . databind . JsonN... | org . junit . Assert . assertFalse ( request . hintCache ( ) ) |
testDataObjectNullReturn ( ) { io . vertx . codegen . testmodel . TestDataObject r = obj . methodWithDataObjectNullReturn ( ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNull ( r ) |
hasPathRestHasMatchingQueryPaths ( ) { org . apache . jackrabbit . oak . spi . state . NodeBuilder defn = newLucenePropertyIndexDefinition ( builder , "test" , of ( "foo" ) , "async" ) ; defn . setProperty ( createProperty ( IndexConstants . QUERY_PATHS , of ( "/test/a" , "/test/b" ) , Type . STRINGS ) ) ; org . apache... | org . junit . Assert . assertNotNull ( planner . getPlan ( ) ) |
testLocalExecution ( ) { for ( int dataApproach = 0 ; dataApproach < 3 ; dataApproach ++ ) { log . info ( "//////////////////<sp>Starting<sp>Test:<sp>{}<sp>///////////////////" , dataApproach ) ; org . deeplearning4j . arbiter . MultiLayerSpace mls = new org . deeplearning4j . arbiter . MultiLayerSpace . Builder ( ) . ... | org . junit . Assert . assertEquals ( 5 , results . size ( ) ) |
withEmpty ( ) { "<AssertPlaceHolder>" ; } rotated ( java . lang . String , java . lang . String ) { return ( ( original . length ( ) ) == ( result . length ( ) ) ) && ( isSubstring ( ( original + original ) , result ) ) ; } | org . junit . Assert . assertTrue ( s . rotated ( "" , "" ) ) |
test ( ) { java . lang . String [ ] start = new java . lang . String [ ] { "R<sp>E<sp>S<sp>E<sp>A<sp>R<sp>C<sp>H" , "BMC<sp>Oral<sp>Health" } ; for ( org . apache . uima . jcas . JCas pdf : ch . epfl . bbp . uima . BlueCasUtil . asList ( createReader ( ch . epfl . bbp . uima . pdf . cr . PdfCollectionReader . class , c... | org . junit . Assert . assertEquals ( start [ ( id - 1 ) ] , pdf . getDocumentText ( ) . substring ( 0 , 15 ) ) |
loadDocument ( ) { try { java . lang . System . setProperty ( "org.odftoolkit.odfdom.tmpfile.disable" , "true" ) ; org . odftoolkit . odfdom . doc . DocumentTest . LOG . info ( "Loading<sp>an<sp>supported<sp>ODF<sp>Spreadsheet<sp>document<sp>as<sp>an<sp>ODF<sp>Document!" ) ; try { org . odftoolkit . odfdom . doc . OdfD... | org . junit . Assert . assertNotNull ( ods ) |
split_on_whitespace_stringtokenizer ( ) { java . util . StringTokenizer stringTokenizer = new java . util . StringTokenizer ( "The<sp>snow<sp>glows<sp>white<sp>on<sp>the<sp>mountain<sp>tonight" ) ; int numberOfTokens = stringTokenizer . countTokens ( ) ; while ( stringTokenizer . hasMoreElements ( ) ) { com . levelup .... | org . junit . Assert . assertTrue ( ( numberOfTokens == 8 ) ) |
testTimeoutException ( ) { java . io . ByteArrayOutputStream baos = new java . io . ByteArrayOutputStream ( ) ; org . teiid . netty . handler . codec . serialization . ObjectEncoderOutputStream oeos = new org . teiid . netty . handler . codec . serialization . ObjectEncoderOutputStream ( new java . io . DataOutputStrea... | org . junit . Assert . assertEquals ( obj , result ) |
testLookupDefinition ( ) { org . eclipse . tracecompass . ctf . core . event . types . IDefinition result = fixture . lookupDefinition ( "id" ) ; "<AssertPlaceHolder>" ; } lookupDefinition ( java . lang . String ) { return null ; } | org . junit . Assert . assertNull ( result ) |
nextDayShouldBeReturnedWhenNonExistingDayIsRequested ( ) { com . graphaware . module . timetree . domain . TimeInstant timeInstant ; org . neo4j . graphdb . Node next ; try ( org . neo4j . graphdb . Transaction tx = getDatabase ( ) . beginTx ( ) ) { timeTree . getOrCreateInstant ( com . graphaware . module . timetree .... | org . junit . Assert . assertEquals ( next , dayNode ) |
shouldTakeDataDefinitionFromParent ( ) { com . qcadoo . model . api . DataDefinition dataDefinition = mock ( com . qcadoo . model . api . DataDefinition . class ) ; com . qcadoo . view . internal . api . InternalViewDefinition viewDefinition = mock ( com . qcadoo . view . internal . api . InternalViewDefinition . class... | org . junit . Assert . assertEquals ( dataDefinition , getField ( pattern , "dataDefinition" ) ) |
shouldMethodForDataSetPropertyIgnored ( ) { org . robobinding . codegen . presentationmodel . PresentationModelInfo result = processJavaFileOf ( org . robobinding . codegen . presentationmodel . processor . MethodsForDataSetPropertyIgnored . class ) ; "<AssertPlaceHolder>" ; } properties ( ) { return java . util . Coll... | org . junit . Assert . assertThat ( result . properties ( ) . size ( ) , org . hamcrest . Matchers . is ( 0 ) ) |
testGetStart ( ) { com . bixly . pastevid . models . AudioFileItemTest . log ( "AudioFileItem.start" ) ; com . bixly . pastevid . models . AudioFileItem instance = new com . bixly . pastevid . models . AudioFileItem ( ) ; long currentTime = java . lang . System . currentTimeMillis ( ) ; long expResult = currentTime / 1... | org . junit . Assert . assertEquals ( expResult , result ) |
testHideNonWorkspaceElementsNullProject ( ) { org . springsource . ide . eclipse . commons . livexp . util . Filter < org . springframework . ide . eclipse . boot . dash . model . BootDashElement > f = getFilter ( org . springframework . ide . eclipse . boot . dash . test . ToggleFiltersModelTest . HIDE_NON_WORKSPACE_E... | org . junit . Assert . assertEquals ( false , f . accept ( e ) ) |
zouGeenMeldingMoetenGevenOmdatPersoonWelOpgeschortMaarNietOverledenIs ( ) { @ nl . bzk . brp . business . bedrijfsregels . impl . overlijden . SuppressWarnings ( "serial" ) final nl . bzk . brp . model . logisch . kern . PersoonOpschortingGroep opschorting = new nl . bzk . brp . model . logisch . kern . PersoonOpschort... | org . junit . Assert . assertThat ( meldings . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) ) |
getItem_freeformNewlyAddedItemAndFiltered_returnsNull ( ) { com . vaadin . v7 . data . util . sqlcontainer . SQLContainer container = new com . vaadin . v7 . data . util . sqlcontainer . SQLContainer ( new com . vaadin . v7 . data . util . sqlcontainer . query . FreeformQuery ( "SELECT<sp>*<sp>FROM<sp>people" , connect... | org . junit . Assert . assertNull ( container . getItem ( id ) ) |
testGetTimeout ( ) { System . out . println ( "getTimeout" ) ; kg . apc . jmeter . samplers . AbstractIPSampler instance = new kg . apc . jmeter . samplers . AbstractIPSamplerTest . AbstractIPSamplerImpl ( ) ; java . lang . String expResult = "" ; java . lang . String result = instance . getTimeout ( ) ; "<AssertPlaceH... | org . junit . Assert . assertEquals ( expResult , result ) |
assureInputFromUser ( ) { final com . microsoft . azure . maven . function . AddMojo mojo = getMojoFromPom ( ) ; final com . microsoft . azure . maven . function . AddMojo mojoSpy = spy ( mojo ) ; final java . util . Scanner scanner = mock ( java . util . Scanner . class ) ; doReturn ( "2" ) . when ( scanner ) . nextLi... | org . junit . Assert . assertTrue ( set . contains ( "a2" ) ) |
testGetParsedTagsNewerAPI ( ) { java . lang . String cmd = "hello" ; java . lang . String args = "" ; org . irods . jargon . core . packinstr . ExecCmd execCmd = org . irods . jargon . core . packinstr . ExecCmd . instanceWithCommandPost25 ( cmd , args ) ; java . lang . String actualXML = execCmd . getParsedTags ( ) ; ... | org . junit . Assert . assertEquals ( "<dummy>0</dummy>\n" 1 , expectedXML , actualXML ) |
testToDMNString ( ) { final org . kie . workbench . common . dmn . client . editors . types . listview . constraint . common . typed . day . time . DayTimeValue value = new org . kie . workbench . common . dmn . client . editors . types . listview . constraint . common . typed . day . time . DayTimeValue ( 2 , 4 , 8 , ... | org . junit . Assert . assertEquals ( expected , actual ) |
test_magicEuropean ( ) { net . codjo . test . release . util . ssh . ChannelExecSecureCommand toto = new net . codjo . test . release . util . ssh . ChannelExecSecureCommand ( "magdev" , "d-app-magic.intradit.net" , 2222 , "/global/dmig/MAGIC/" , "$(exit<sp>5)" ) { } ; "<AssertPlaceHolder>" ; } execute ( ) { logger . i... | org . junit . Assert . assertEquals ( 5 , toto . execute ( ) ) |
pnrWithBgs ( ) { java . lang . String pnrWithBags = getMessageText ( gov . gtas . parsers . pnrgov . PnrGovParserTest . PNR_WITH_BAGS ) ; gov . gtas . parsers . vo . PnrVo vo = this . parser . parse ( pnrWithBags ) ; "<AssertPlaceHolder>" ; } getBags ( ) { return bags ; } | org . junit . Assert . assertTrue ( ( ! ( vo . getBags ( ) . isEmpty ( ) ) ) ) |
advance ( ) { com . intellij . openapi . editor . impl . TextChangeImpl base = new com . intellij . openapi . editor . impl . TextChangeImpl ( "xyz" , 3 , 5 ) ; int [ ] offsets = new int [ ] { 5 , 0 , - 3 } ; for ( int offset : offsets ) { int start = base . getStart ( ) ; int end = base . getEnd ( ) ; base . advance (... | org . junit . Assert . assertEquals ( new com . intellij . openapi . editor . impl . TextChangeImpl ( base . getText ( ) , ( start + offset ) , ( end + offset ) ) , base ) |
testGeefLeveringsautorisatie ( ) { final nl . bzk . algemeenbrp . dal . domein . brp . entity . Leveringsautorisatie leveringsautorisatie = leveringAutorisatieCache . geefLeveringsautorisatie ( 1 ) ; "<AssertPlaceHolder>" ; } geefLeveringsautorisatie ( int ) { return this . data . alleGeldigeLeveringsautorisatiesMap . ... | org . junit . Assert . assertNotNull ( leveringsautorisatie ) |
textMarkupTest01 ( ) { java . lang . String filename = ( com . itextpdf . kernel . pdf . PdfAnnotationTest . destinationFolder ) + "textMarkupAnnotation01.pdf" ; com . itextpdf . kernel . pdf . PdfDocument pdfDoc = new com . itextpdf . kernel . pdf . PdfDocument ( new com . itextpdf . kernel . pdf . PdfWriter ( filenam... | org . junit . Assert . assertNull ( errorMessage ) |
testGetIllegalArgument ( ) { final net . sf . qualitycheck . exception . IllegalArgumentHolder < java . lang . CharSequence > iah = new net . sf . qualitycheck . exception . IllegalNumericArgumentException ( "42a" ) ; "<AssertPlaceHolder>" ; } getIllegalArgument ( ) { return illegalArgumentValue ; } | org . junit . Assert . assertEquals ( "42a" , iah . getIllegalArgument ( ) ) |
primitiveParam ( ) { javax . lang . model . element . ExecutableElement executableElement = org . androidannotations . helper . ValidatorParameterHelperTest . createMethod ( int . class , org . androidannotations . helper . Integer . class ) ; org . androidannotations . ElementValidation valid = new org . androidannota... | org . junit . Assert . assertTrue ( valid . isValid ( ) ) |
equalObjectsHaveSameHashCode ( ) { com . mpatric . mp3agic . ID3v2ChapterFrameData frameData = new com . mpatric . mp3agic . ID3v2ChapterFrameData ( false , "ch1" , 1 , 380 , 3 , 400 ) ; com . mpatric . mp3agic . ID3v2ChapterFrameData frameDataAgain = new com . mpatric . mp3agic . ID3v2ChapterFrameData ( false , "ch1" ... | org . junit . Assert . assertEquals ( frameData . hashCode ( ) , frameDataAgain . hashCode ( ) ) |
testExtract2 ( ) { edu . washington . cs . knowitall . extractor . ReVerbExtractorTest . reverb = edu . washington . cs . knowitall . extractor . ReVerbExtractorTest . regReverb ; edu . washington . cs . knowitall . extractor . ReVerbExtractorTest . got = edu . washington . cs . knowitall . extractor . ReVerbExtractorT... | org . junit . Assert . assertEquals ( edu . washington . cs . knowitall . extractor . ReVerbExtractorTest . expected , edu . washington . cs . knowitall . extractor . ReVerbExtractorTest . got ) |
isStoppedAfterCreation ( ) { org . apache . ambari . server . utils . ManagedThreadPoolExecutor executor = org . apache . ambari . server . utils . ManagedThreadPoolExecutorTest . createExecutor ( 1 ) ; executor . execute ( org . junit . Assert :: fail ) ; "<AssertPlaceHolder>" ; } isRunning ( ) { if ( ( watchTask ) !=... | org . junit . Assert . assertFalse ( executor . isRunning ( ) ) |
testRowsPut ( ) { final byte [ ] CONTENTS_FAMILY = org . apache . hadoop . hbase . util . Bytes . toBytes ( "contents" ) ; final byte [ ] SMALL_FAMILY = org . apache . hadoop . hbase . util . Bytes . toBytes ( "smallfam" ) ; final int NB_BATCH_ROWS = 10 ; final byte [ ] value = org . apache . hadoop . hbase . util . By... | org . junit . Assert . assertEquals ( NB_BATCH_ROWS , nbRows ) |
throwExceptionWhenSaveIsCalledAndCasIsZeroAndEntityAlreadyExists ( ) { java . lang . String newName = ( org . springframework . data . couchbase . core . RxJavaCouchbaseTemplateTests . DEFAULT_NAME ) + "Second" ; org . springframework . data . couchbase . core . VersionedReactiveBeer firstBeer = new org . springframewo... | org . junit . Assert . assertTrue ( ( version > 0 ) ) |
testGenerateBibtexForSingleWorkFromCitationField ( ) { org . orcid . jaxb . model . record_v2 . Work w = new org . orcid . jaxb . model . record_v2 . Work ( ) ; org . orcid . jaxb . model . record_v2 . Citation c = new org . orcid . jaxb . model . record_v2 . Citation ( ) ; c . setWorkCitationType ( CitationType . BIBT... | org . junit . Assert . assertEquals ( "HELLO" , bib ) |
testGetShapeIndex_noShape ( ) { when ( parentPickerControl . getShape ( ) ) . thenReturn ( null ) ; java . util . OptionalInt result = control . getShapeIndex ( ) ; "<AssertPlaceHolder>" ; } isPresent ( ) { return isPresent ; } | org . junit . Assert . assertFalse ( result . isPresent ( ) ) |
checkDate5 ( ) { char y0 = '4' ; char y1 = ' | org . junit . Assert . assertEquals ( false , retval ) |
testWSDLImports ( ) { java . net . URL url = new java . net . URL ( ( ( "http://localhost:" + ( org . apache . cxf . systest . jaxws . ClientServerGreeterNoWsdlTest . PORT ) ) + "/SoapContext/GreeterPort?wsdl" ) ) ; org . w3c . dom . Document doc = org . apache . cxf . staxutils . StaxUtils . read ( url . openStream ( ... | org . junit . Assert . assertNotNull ( nd ) |
deveObterNomeclaturaValorAduaneiroEstatisticaComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemProduto produto = new com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemProduto ( ) ; final java . util . List < java . lang . String > nomeclaturaVa... | org . junit . Assert . assertEquals ( nomeclaturaValorAduaneiroEstatistica , produto . getNomeclaturaValorAduaneiroEstatistica ( ) ) |
testPE987 ( ) { com . tesora . dve . sql . schema . SchemaContext db = buildSchema ( TestName . MULTI , "select<sp>convert(fid,binary)<sp>from<sp>pe987" 3 ) ; java . lang . String [ ] in = new java . lang . String [ ] { "select<sp>convert(fid,binary)<sp>from<sp>pe987" 9 , "select<sp>id<sp>from<sp>pe987<sp>where<sp>conv... | org . junit . Assert . assertEquals ( esql , osql ) |
storeSerializableObject_objectIsRestoredAfterDeserialization ( ) { com . vaadin . flow . spring . scopes . TestBeanStore store = createStore ( ) ; store . get ( "foo" , ( ) -> "bar" ) ; com . vaadin . flow . spring . scopes . TestBeanStore deserialized = serializeAndDeserialize ( store ) ; java . lang . Object object =... | org . junit . Assert . assertEquals ( "bar" , object ) |
testGetJWTFromCookie ( ) { javax . servlet . http . HttpServletRequest request = createNiceMock ( javax . servlet . http . HttpServletRequest . class ) ; javax . servlet . http . Cookie cookie = createNiceMock ( javax . servlet . http . Cookie . class ) ; expect ( cookie . getName ( ) ) . andReturn ( "non-default" ) ; ... | org . junit . Assert . assertEquals ( "stubtokenstring" , jwtFromCookie ) |
testGetValueSingle ( ) { org . apache . jackrabbit . oak . spi . xml . TextValue tv = mockTextValue ( "value" , PropertyType . STRING ) ; org . apache . jackrabbit . oak . spi . xml . PropInfo propInfo = new org . apache . jackrabbit . oak . spi . xml . PropInfo ( "string" , javax . jcr . PropertyType . STRING , tv ) ;... | org . junit . Assert . assertEquals ( tv . getValue ( PropertyType . STRING ) , propInfo . getValue ( PropertyType . STRING ) ) |
testPassThroughPostMultiPart ( ) { final org . glassfish . jersey . media . multipart . file . FileDataBodyPart filePart = new org . glassfish . jersey . media . multipart . file . FileDataBodyPart ( "test_file" , new java . io . File ( com . kunai . keyvault . IntegrationTest . TEST_IMAGE_PATH ) ) ; org . glassfish . ... | org . junit . Assert . assertTrue ( responseBody . toLowerCase ( ) . contains ( "test_file" ) ) |
testHistoricBatchJobLogIncidentDeletion ( ) { org . camunda . bpm . engine . repository . ProcessDefinition processDefinition = testRule . deployAndGetDefinition ( instance ) ; org . camunda . bpm . engine . batch . Batch batch = helper . startAfterAsync ( "process1" , 3 , "user1" , processDefinition . getId ( ) ) ; he... | org . junit . Assert . assertEquals ( 0 , historicIncidents ) |
testCustomResources ( ) { final java . lang . String resourceName = "propertyForm:resourcesTable:topActionsGroup1:button1" 0 + ( generateRandomString ( ) ) ; org . glassfish . admingui . devtests . StandaloneTest standaloneTest = new org . glassfish . admingui . devtests . StandaloneTest ( ) ; org . glassfish . admingu... | org . junit . Assert . assertTrue ( isTextPresent ( resourceName ) ) |
testDocumentObjectResolverSetObject ( ) { org . nuxeo . ecm . core . api . model . resolver . PropertyObjectResolver objectResolver = doc . getObjectResolver ( org . nuxeo . ecm . core . resolver . TestObjectResolverProperties . XPATH ) ; objectResolver . setObject ( PrimaryColor . BLUE ) ; doc = session . createDocume... | org . junit . Assert . assertEquals ( PrimaryColor . BLUE , objectResolver . fetch ( ) ) |
test ( ) { final nl . bzk . migratiebrp . isc . jbpm . uc808 . PersoonslijstOverzichtBuilder builder = new nl . bzk . migratiebrp . isc . jbpm . uc808 . PersoonslijstOverzichtBuilder ( ) ; builder . voegPersoonslijstToe ( nl . bzk . migratiebrp . bericht . model . lo3 . Lo3Inhoud . parseInhoud ( "0149801181011001058046... | org . junit . Assert . assertNotNull ( overzicht ) |
testV8ScriptCompilationExceptionGetLineNumber ( ) { "<AssertPlaceHolder>" ; } getLineNumber ( ) { return lineNumber ; } | org . junit . Assert . assertEquals ( 4 , exception . getLineNumber ( ) ) |
testFailureCompressionNotWorking ( ) { if ( skip ) return ; long rawDataSize = writeRecords ( ( 10 * ( records1stBlock ) ) , false ) ; if ( ! ( compression . equalsIgnoreCase ( Compression . Algorithm . NONE . getName ( ) ) ) ) { "<AssertPlaceHolder>" ; } closeOutput ( ) ; } getPos ( ) { return ( ( org . apache . hadoo... | org . junit . Assert . assertTrue ( ( ( out . getPos ( ) ) < rawDataSize ) ) |
testDeleteUndeleteableFile ( ) { final java . io . IOException ioException = new java . io . IOException ( "Unable<sp>to<sp>delete" ) ; final java . nio . file . Path undeleteableFilePath = java . nio . file . Paths . get ( "UndeleteableFile" ) ; createFile ( undeleteableFilePath ) ; try ( com . liferay . portal . kern... | org . junit . Assert . assertSame ( ioException , e ) |
testUpstreamOma1 ( ) { final java . lang . String outPath = runJannovarOnVCFLine ( "/sv_header.vcf" , "1\t59012449\t.\tN\tG]1:42]\t.\t.\tSVTYPE=BND" ) ; final java . lang . String expected = "1\t59012449\t.\tN\tG]1:42]\t.\t.\t" + ( "SVANN=translocation&upstream_gene_variant&structural_variant&coding_transcript_variant"... | org . junit . Assert . assertEquals ( expected , actual ) |
testCleanDataSources ( ) { io . cloudslang . content . database . services . dbconnection . DBConnectionManager dbcManagerSpy = getDBConnectionManagerSpyWithPooling ( ) ; com . mchange . v2 . c3p0 . PooledDataSource dataSourceMock = mock ( com . mchange . v2 . c3p0 . PooledDataSource . class ) ; java . util . Hashtable... | org . junit . Assert . assertTrue ( dbcManagerSpy . dbmsPoolTable . isEmpty ( ) ) |
getAllOverwritableSupertypeFunctionsForResourceWithoutSupertypeFunctionsShouldReturnEmptyList ( ) { ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceEntity resource = createResourceWithType ( "resourceName" , 1 , createRootResourceType ( ) ) ; ch . puzzle . itc . mobiliar . business . function... | org . junit . Assert . assertTrue ( resourceSuperTypeFunctions . isEmpty ( ) ) |
testLongs1 ( ) { long val = 123456789101112L ; byte [ ] b = io . tetrapod . raft . RaftUtil . toBytes ( val ) ; long val2 = io . tetrapod . raft . RaftUtil . toLong ( b ) ; "<AssertPlaceHolder>" ; } toLong ( byte [ ] ) { return ( ( ( ( ( ( ( ( ( long ) ( data [ 0 ] ) ) << 56 ) + ( ( ( long ) ( ( data [ 1 ] ) & 255 ) ) ... | org . junit . Assert . assertEquals ( val , val2 ) |
testGetNoFeatures ( ) { org . geotoolkit . geometry . jts . JTSEnvelope2D env = new org . geotoolkit . geometry . jts . JTSEnvelope2D ( 592211 , 597000 , 4910947 , 4913500 , crs ) ; org . geotoolkit . index . quadtree . LazySearchCollection collection = new org . geotoolkit . index . quadtree . LazySearchCollection ( t... | org . junit . Assert . assertEquals ( 0 , collection . size ( ) ) |
reconnectDelayShouldIncreaseEveryTime ( ) { final java . util . concurrent . BlockingQueue < java . lang . Object > values = new java . util . concurrent . LinkedBlockingQueue < java . lang . Object > ( ) ; com . github . nkzawa . socketio . client . IO . Options opts = createOptions ( ) ; opts . reconnection = true ; ... | org . junit . Assert . assertThat ( reconnects [ 0 ] , org . hamcrest . CoreMatchers . is ( 5 ) ) |
shouldReturnIfPlayerIsAuthenticated ( ) { java . lang . String name = "Bobby" ; org . bukkit . entity . Player player = fr . xephi . authme . api . v3 . AuthMeApiTest . mockPlayerWithName ( name ) ; given ( playerCache . isAuthenticated ( name ) ) . willReturn ( true ) ; boolean result = api . isAuthenticated ( player ... | org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . equalTo ( true ) ) |
checkNumberOfHeroes ( ) { org . neo4j . graphdb . traversal . Traverser heroesTraverser = org . neo4j . rest . graphdb . MatrixDatabaseTest . getHeroes ( ) ; int numberOfHeroes = 0 ; for ( org . neo4j . graphdb . Path heroPath : heroesTraverser ) { numberOfHeroes ++ ; } "<AssertPlaceHolder>" ; } getHeroes ( ) { org . n... | org . junit . Assert . assertEquals ( 3 , numberOfHeroes ) |
testGetFileNameWithRewriting ( ) { com . google . gson . JsonParser parser = new com . google . gson . JsonParser ( ) ; try { com . google . gson . JsonElement tree = parser . parse ( new net . pms . util . java . io . FileReader ( org . apache . commons . io . FileUtils . toFile ( CLASS . getResource ( "prettified_fil... | org . junit . Assert . assertThat ( net . pms . util . FileUtil . getFileNamePrettified ( original ) ) |
testPropertyIsLessThanOrEqualToShortLiteral ( ) { net . opengis . filter . v_1_1_0 . FilterType filterType = cswFilterDelegate . propertyIsLessThanOrEqualTo ( propertyName , intLiteral ) ; java . lang . String cqlText = org . codice . ddf . spatial . ogc . csw . catalog . source . CswCqlTextFilter . getInstance ( ) . g... | org . junit . Assert . assertEquals ( propertyIsLessThanOrEqualTo , cqlText ) |
testSimpleEquality ( ) { com . github . davidmoten . rtree . geometry . Rectangle r = com . github . davidmoten . rtree . geometry . Geometries . rectangle ( 0 , 0 , 2 , 1 ) ; com . github . davidmoten . rtree . geometry . Rectangle r2 = com . github . davidmoten . rtree . geometry . Geometries . rectangle ( 0 , 0 , 2 ... | org . junit . Assert . assertTrue ( r . equals ( r2 ) ) |
cascadingClassWithNameStartingWithAnotherMockedClass ( mockit . GenericMockedTypesTest$Collaborator , mockit . GenericMockedTypesTest$Collaborator2 ) { new mockit . Expectations ( ) { { regularMock . doSomething ( ) ; } } ; "<AssertPlaceHolder>" ; } doSomething ( ) { } | org . junit . Assert . assertNotNull ( regularMock . doSomething ( ) ) |
testFindByPrimaryKeyExisting ( ) { com . liferay . message . boards . model . MBThreadFlag newMBThreadFlag = addMBThreadFlag ( ) ; com . liferay . message . boards . model . MBThreadFlag existingMBThreadFlag = _persistence . findByPrimaryKey ( newMBThreadFlag . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimary... | org . junit . Assert . assertEquals ( existingMBThreadFlag , newMBThreadFlag ) |
testCreateURL ( ) { java . util . List < slash . navigation . base . Wgs84Position > positions = new java . util . ArrayList ( ) ; positions . add ( asWgs84Position ( 10.02571156 , 53.57497745 ) ) ; positions . add ( asWgs84Position ( 10.20026067 , 53.57662034 ) ) ; positions . add ( asWgs84Position ( 10.35735078 , 53.... | org . junit . Assert . assertEquals ( expected , actual ) |
testSearchForExtension ( ) { ca . uhn . fhir . jpa . provider . dstu3 . SearchParameter eyeColourSp = new ca . uhn . fhir . jpa . provider . dstu3 . SearchParameter ( ) ; eyeColourSp . addBase ( "Patient" ) ; eyeColourSp . setCode ( "eyecolour" ) ; eyeColourSp . setType ( org . hl7 . fhir . dstu3 . model . Enumerations... | org . junit . Assert . assertThat ( foundResources , org . hamcrest . Matchers . contains ( p1id . getValue ( ) ) ) |
testNullProp ( ) { final java . lang . String input = "{<sp>\"obj\":<sp>[<sp>{<sp>\"nval\":<sp>null,<sp>\"val\":<sp>2<sp>},<sp>{<sp>\"val\":<sp>1<sp>}<sp>]<sp>}" ; org . pentaho . di . trans . steps . jsoninput . JsonInput jsonInput = createBasicTestJsonInput ( "$.obj[?(@.nval)].val" , new org . pentaho . di . core . r... | org . junit . Assert . assertEquals ( 1 , jsonInput . getLinesWritten ( ) ) |
testFirstRunnableThrows ( ) { final java . lang . RuntimeException ex = new java . lang . RuntimeException ( ) ; executor . execute ( new java . lang . Runnable ( ) { @ io . grpc . internal . Override public void run ( ) { runs . add ( 1 ) ; throw ex ; } } ) ; executor . execute ( new io . grpc . internal . Serializing... | org . junit . Assert . assertEquals ( java . util . Arrays . asList ( 1 , 2 , 3 ) , runs ) |
shouldFindPostsInSetOfIDsWithDynamicSql ( ) { org . apache . ibatis . session . SqlSession session = org . apache . ibatis . session . SqlSessionTest . sqlMapper . openSession ( ) ; try { java . util . List < org . apache . ibatis . domain . blog . Post > posts = session . selectList ( "org.apache.ibatis.domain.blog.ma... | org . junit . Assert . assertEquals ( 3 , posts . size ( ) ) |
testDecodeType3_2D_REVERSED ( ) { com . twelvemonkeys . imageio . plugins . tiff . InputStream stream = new com . twelvemonkeys . imageio . plugins . tiff . CCITTFaxDecoderStream ( new com . twelvemonkeys . imageio . plugins . tiff . ByteArrayInputStream ( com . twelvemonkeys . imageio . plugins . tiff . CCITTFaxDecode... | org . junit . Assert . assertArrayEquals ( imageData , bytes ) |
testCreateBusinessObjectDefinitionSubjectMatterExpert ( ) { org . finra . herd . model . api . xml . BusinessObjectDefinitionSubjectMatterExpertKey key = new org . finra . herd . model . api . xml . BusinessObjectDefinitionSubjectMatterExpertKey ( BDEF_NAMESPACE , BDEF_NAME , USER_ID ) ; org . finra . herd . model . ap... | org . junit . Assert . assertEquals ( businessObjectDefinitionSubjectMatterExpert , resultBusinessObjectDefinitionSubjectMatterExpert ) |
testWildcardArray ( ) { javax . ws . rs . client . Invocation . Builder request = org . jboss . resteasy . test . resource . param . MultiplePathSegmentTest . client . target ( generateURL ( "/a/b/c/array/3" ) ) . request ( ) ; javax . ws . rs . core . Response response = request . get ( ) ; "<AssertPlaceHolder>" ; res... | org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) ) |
testGetLogger ( ) { world . bentobox . bentobox . api . addons . AddonTest . TestClass test = new world . bentobox . bentobox . api . addons . AddonTest . TestClass ( ) ; "<AssertPlaceHolder>" ; } getLogger ( ) { return plugin . getLogger ( ) ; } | org . junit . Assert . assertEquals ( world . bentobox . bentobox . api . addons . AddonTest . plugin . getLogger ( ) , test . getLogger ( ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.