input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testHDFSConfigClusterUpdateQuorumJournalURLSpecifyingHostNamesDirectly ( ) { final java . lang . String expectedHostNameOne = "HDFS<sp>HA<sp>shared<sp>edits<sp>directory<sp>property<sp>should<sp>not<sp>have<sp>been<sp>modified,<sp>since<sp>FQDNs<sp>were<sp>specified." 3 ; final java . lang . String expectedHostNameTwo ...
org . junit . Assert . assertEquals ( "HDFS<sp>HA<sp>shared<sp>edits<sp>directory<sp>property<sp>should<sp>not<sp>have<sp>been<sp>modified,<sp>since<sp>FQDNs<sp>were<sp>specified." , expectedQuorumJournalURL , hdfsSiteProperties . get ( "dfs.namenode.shared.edits.dir" ) )
testCreateParameters ( ) { "<AssertPlaceHolder>" ; } createParameters ( ) { return new org . pentaho . platform . plugin . services . importexport . exportManifest . bindings . Parameters ( ) ; }
org . junit . Assert . assertNotNull ( factory . createParameters ( ) )
getHostName ( ) { org . apache . commons . configuration . HierarchicalConfiguration configuration = prepareConfiguration ( org . oscm . app . ror . LServerConfigurationTest . HOSTNAME , org . oscm . app . ror . LServerConfigurationTest . HOSTNAME ) ; lServerConfiguration = new org . oscm . app . ror . data . LServerCo...
org . junit . Assert . assertEquals ( org . oscm . app . ror . LServerConfigurationTest . HOSTNAME , lServerConfiguration . getHostName ( ) )
testDao ( ) { org . support . project . ormapping . gen . dao . CampanyDao campanyDao = org . support . project . di . Container . getComp ( org . support . project . ormapping . gen . dao . CampanyDao . class ) ; dataclear ( campanyDao ) ; org . support . project . ormapping . gen . entity . CampanyEntity entity = new...
org . junit . Assert . assertEquals ( 1 , campanyList . size ( ) )
testIsMetByShouldReturnFalseWhenThereIsASingleUnmetCriterion ( ) { org . mafagafogigante . dungeon . world . VisibilityCriteria criteria = new org . mafagafogigante . dungeon . world . VisibilityCriteria ( unmetCriterion ) ; "<AssertPlaceHolder>" ; } isMetBy ( org . mafagafogigante . dungeon . entity . creatures . Obse...
org . junit . Assert . assertFalse ( criteria . isMetBy ( org . mockito . Mockito . mock ( org . mafagafogigante . dungeon . entity . creatures . Observer . class ) ) )
test54071 ( ) { org . apache . poi . ss . usermodel . Workbook workbook = org . apache . poi . xssf . XSSFTestDataSamples . openSampleWorkbook ( "54071.xlsx" ) ; org . apache . poi . ss . usermodel . Sheet sheet = workbook . getSheetAt ( 0 ) ; int rows = sheet . getPhysicalNumberOfRows ( ) ; org . apache . poi . ss . u...
org . junit . Assert . assertEquals ( prev , cell . getDateCellValue ( ) )
testLocalTriangleThreshold ( ) { ops . run ( net . imagej . ops . Ops . Threshold . Triangle . class , out , in , new net . imglib2 . algorithm . neighborhood . RectangleShape ( 1 , false ) , new net . imglib2 . outofbounds . OutOfBoundsMirrorFactory < net . imglib2 . type . numeric . integer . ByteType , net . imglib2...
org . junit . Assert . assertEquals ( false , out . firstElement ( ) . get ( ) )
testSet_MolHandler_MolHandler ( ) { org . openscience . cdk . smiles . SmilesParser sp = new org . openscience . cdk . smiles . SmilesParser ( org . openscience . cdk . DefaultChemObjectBuilder . getInstance ( ) ) ; org . openscience . cdk . interfaces . IAtomContainer target1 = sp . parseSmiles ( "C\\C=C/Nc1cccc(c1)N(...
org . junit . Assert . assertTrue ( instance . isSubgraph ( true ) )
httpResponseTest ( ) { response = new com . aliyuncs . http . HttpResponse ( "test" ) ; "<AssertPlaceHolder>" ; } getSysUrl ( ) { return url ; }
org . junit . Assert . assertEquals ( "test" , response . getSysUrl ( ) )
testPriorityLevel15 ( ) { int n = jannovar . common . VariantType . priorityLevel ( VariantType . ncRNA_EXONIC ) ; "<AssertPlaceHolder>" ; } priorityLevel ( jannovar . common . VariantType ) { switch ( vt ) { case FS_DELETION : case FS_INSERTION : case NON_FS_SUBSTITUTION : case FS_SUBSTITUTION : case MISSENSE : case N...
org . junit . Assert . assertEquals ( 2 , n )
testIterateOverEmptyCrl ( ) { org . bouncycastle . cert . X509v2CRLBuilder crlBuilder = new org . bouncycastle . cert . X509v2CRLBuilder ( issuer , new java . util . Date ( ) ) ; org . bouncycastle . asn1 . x509 . AuthorityKeyIdentifier identifier = new org . bouncycastle . cert . jcajce . JcaX509ExtensionUtils ( ) . c...
org . junit . Assert . assertEquals ( 0 , streamedSerials . size ( ) )
testCreateEndpointWithTimeout ( ) { long timeout = 1999999L ; org . apache . camel . component . exec . ExecEndpoint e = createExecEndpoint ( ( "exec:test?timeout=" + timeout ) ) ; "<AssertPlaceHolder>" ; } getTimeout ( ) { return timeout ; }
org . junit . Assert . assertEquals ( timeout , e . getTimeout ( ) )
testLabels ( ) { handler . initialize ( ) ; javax . xml . parsers . DocumentBuilderFactory factory = javax . xml . parsers . DocumentBuilderFactory . newInstance ( ) ; javax . xml . parsers . DocumentBuilder builder = factory . newDocumentBuilder ( ) ; java . io . InputStream stream = getClass ( ) . getResourceAsStream...
org . junit . Assert . assertThat ( channel . getLabel ( ) , org . hamcrest . CoreMatchers . startsWith ( label ) )
testBufferEquals ( ) { final org . glassfish . grizzly . memory . HeapMemoryManager hmm = new org . glassfish . grizzly . memory . HeapMemoryManager ( ) ; final org . glassfish . grizzly . memory . ByteBufferManager bbm = new org . glassfish . grizzly . memory . ByteBufferManager ( ) ; final org . glassfish . grizzly ....
org . junit . Assert . assertEquals ( buffers [ i ] , buffers [ j ] )
readPostiveInt ( ) { final byte [ ] bytes = new byte [ ] { '1' , '0' , '\r' , '\n' } ; setupInputStreamRead ( bytes , 1 ) ; int actualInt = reader . readInt ( ) ; "<AssertPlaceHolder>" ; } readInt ( ) { int length = 0 ; byte [ ] allIntBytes = new byte [ 13 ] ; while ( ( allIntBytes [ ( length ++ ) ] = readByte ( ) ) !=...
org . junit . Assert . assertEquals ( 10 , actualInt )
testGetUitTeVoerenRegelsNaVerwerking ( ) { final java . util . List < nl . bzk . brp . business . regels . RegelInterface > uitTeVoerenRegelsNaVerwerking = getBedrijfsregelManagerImpl ( ) . getUitTeVoerenRegelsNaVerwerking ( SoortBericht . LVG_SYN_REGISTREER_AFNEMERINDICATIE ) ; "<AssertPlaceHolder>" ; } getUitTeVoeren...
org . junit . Assert . assertNotNull ( uitTeVoerenRegelsNaVerwerking )
getPartijTestNotExist ( ) { final java . lang . String partijCode = "500000" ; org . mockito . Mockito . doThrow ( new java . lang . IllegalArgumentException ( nl . bzk . migratiebrp . ggo . viewer . service . impl . BrpStamtabelServiceTest . MELDING_STRING ) ) . when ( dynamischeStamtabelRepository ) . getPartijByCode...
org . junit . Assert . assertEquals ( "500000" , resultGem )
testNull ( ) { "<AssertPlaceHolder>" ; } convert ( java . util . Date , org . simpleflatmapper . converter . Context ) { if ( in == null ) return null ; long time = in . getTime ( ) ; return com . google . protobuf . Timestamp . newBuilder ( ) . setSeconds ( ( time / 1000 ) ) . setNanos ( ( ( int ) ( TimeUnit . MILLISE...
org . junit . Assert . assertNull ( converter . convert ( null , null ) )
provideStubResponseFor ( ) { final net . jadler . Request req = prepareEmptyMockRequest ( ) ; final net . jadler . stubbing . HttpStub rule1 = mock ( net . jadler . stubbing . HttpStub . class ) ; final net . jadler . stubbing . Stubbing stubbing1 = mock ( net . jadler . stubbing . Stubbing . class ) ; when ( stubbing1...
org . junit . Assert . assertThat ( mocker . provideStubResponseFor ( req ) , org . hamcrest . Matchers . is ( resp1 ) )
testInMemoryDocumentRetrievesFileName ( ) { org . digidoc4j . DataFile dataFile = new org . digidoc4j . DataFile ( new byte [ ] { 65 } , "suura.txt" , "text/plain" ) ; "<AssertPlaceHolder>" ; } getName ( ) { return m_name ; }
org . junit . Assert . assertEquals ( "suura.txt" , dataFile . getName ( ) )
testNotEqualsWrongType ( ) { handleBreak ( new com . eclipsesource . v8 . debug . BreakHandler ( ) { @ com . eclipsesource . v8 . debug . Override public void onBreak ( final com . eclipsesource . v8 . debug . DebugHandler . DebugEvent event , final com . eclipsesource . v8 . debug . ExecutionState state , final com . ...
org . junit . Assert . assertFalse ( ( ( java . lang . Boolean ) ( result ) ) )
test2 ( ) { int result = comparator . compare ( "0.0.1" , "0.0.1" ) ; "<AssertPlaceHolder>" ; } compare ( java . lang . String , java . lang . String ) { com . b2international . snowowl . snomed . api . rest . AntPathWildcardMatcher . AntPatternComparator . PatternInfo info1 = new com . b2international . snowowl . snom...
org . junit . Assert . assertTrue ( ( result == 0 ) )
testCountWithNoRecords ( ) { int total = counDEtDataDefinitions ( _group ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 0 , total )
aRequiredParamShouldIdentifyItselfAsSuch ( ) { final com . lmax . simpledsl . DslParam param = new com . lmax . simpledsl . RequiredParam ( "foo" ) ; "<AssertPlaceHolder>" ; } isRequired ( ) { return true ; }
org . junit . Assert . assertTrue ( param . isRequired ( ) )
testMaxFunction ( ) { com . srotya . sidewinder . core . functions . list . MaxFunction f = new com . srotya . sidewinder . core . functions . list . MaxFunction ( ) ; double [ ] values = new double [ ] { 2.2 , 1.1 , 3.3 , 4.4 } ; java . util . List < com . srotya . sidewinder . core . storage . DataPoint > dps = new j...
org . junit . Assert . assertEquals ( 4.4 , result . getDataPoints ( ) . get ( 0 ) . getValue ( ) , 0 )
versionComparatorTest3 ( ) { int compare = VersionComparator . INSTANCE . compare ( null , "1.12.1c" ) ; "<AssertPlaceHolder>" ; } compare ( java . lang . String , java . lang . String ) { if ( version1 == version2 ) { return 0 ; } if ( ( version1 == null ) && ( version2 == null ) ) { return 0 ; } else if ( version1 ==...
org . junit . Assert . assertTrue ( ( compare < 0 ) )
testLargeRead ( ) { byte [ ] buf = new byte [ 1000 * 1000 ] ; int ret = reader ( ) . read ( buf ) ; "<AssertPlaceHolder>" ; } read ( byte [ ] ) { return read ( b , 0 , b . length ) ; }
org . junit . Assert . assertEquals ( ( 1000 * 1000 ) , ret )
shortCircuitedAvailableInGetFallbackUsingExecute ( ) { setUpTenacityCommand ( 2 , 100 ) ; final com . yammer . tenacity . core . TenacityCommand < ? > exceptionCommand = exceptionCommand ( ) ; exceptionCommand . execute ( ) ; while ( ! ( exceptionCommand . isCircuitBreakerOpen ( ) ) ) ; "<AssertPlaceHolder>" ; } shortC...
org . junit . Assert . assertTrue ( shortCircuitedCommand ( ) . execute ( ) )
findSavedUserById ( ) { user = repository . save ( user ) ; "<AssertPlaceHolder>" . hasValue ( user ) ; } findById ( java . lang . Long ) { return em . find ( example . springdata . jpa . showcase . core . Customer . class , id ) ; }
org . junit . Assert . assertThat ( repository . findById ( user . getId ( ) ) )
getPageCountReturnsOneForEmptySourceData ( ) { final int pageSize = 10 ; edu . stanford . bmir . protege . web . server . pagination . Pager < java . lang . String > pager = edu . stanford . bmir . protege . web . server . pagination . Pager . getPagerForPageSize ( java . util . Collections . < java . lang . String > e...
org . junit . Assert . assertEquals ( 1 , pager . getPageCount ( ) )
construct_noContext ( ) { org . apache . servicecomb . swagger . invocation . SwaggerInvocation invocation = new org . apache . servicecomb . swagger . invocation . SwaggerInvocation ( ) ; "<AssertPlaceHolder>" ; } getParentContext ( ) { return parentContext ; }
org . junit . Assert . assertNull ( invocation . getParentContext ( ) )
paths_cyclophane_odd ( ) { int [ ] [ ] cyclophane_even = org . openscience . cdk . graph . InitialCyclesTest . cyclophane_even ( ) ; org . openscience . cdk . graph . EssentialCycles essential = new org . openscience . cdk . graph . EssentialCycles ( cyclophane_even ) ; int [ ] [ ] paths = essential . paths ( ) ; int [...
org . junit . Assert . assertThat ( paths , org . hamcrest . CoreMatchers . is ( expected ) )
testExecute ( ) { when ( context . get ( ContextParameterNames . PERSOON_ID_LIJST_STRINGS ) ) . thenReturn ( persoonIdLijstStrings ) ; when ( identifierService . converteerLijstString ( anyList ( ) ) ) . thenReturn ( persoonIdLijst ) ; final boolean resultaat = converteerPersoonIdentifiersNaarIntStap . execute ( contex...
org . junit . Assert . assertFalse ( resultaat )
testAndNot ( ) { java . lang . String template = "<if(name&&!notThere)>works<else>fail<endif>" ; org . stringtemplate . v4 . ST st = new org . stringtemplate . v4 . ST ( template ) ; st . add ( "name" , "Ter" ) ; java . lang . String expected = "works" ; java . lang . String result = st . render ( ) ; "<AssertPlaceHold...
org . junit . Assert . assertEquals ( expected , result )
test_GetChildren_non_deep_Returns_No_Items_When_List_Empty ( ) { mmarquee . automation . controls . AutomationBase base = new mmarquee . automation . controls . AutomationBaseTest . ConcreteAutomationBase ( element ) ; java . util . List < mmarquee . automation . controls . AutomationBase > children = base . getChildre...
org . junit . Assert . assertEquals ( 0 , children . size ( ) )
testGetProjectsAllTypes ( ) { java . lang . Long teamId = 999L ; teamToFetch = new org . sagebionetworks . repo . model . Team ( ) ; teamToFetch . setId ( teamId . toString ( ) ) ; type = org . sagebionetworks . repo . model . ProjectListType . TEAM_PROJECTS ; for ( org . sagebionetworks . repo . model . ProjectListTyp...
org . junit . Assert . assertNotNull ( results )
testVerwerkBerichtIndienExceptionVoorTransactie ( ) { final nl . bzk . brp . model . bijhouding . BijhoudingsBericht bijhoudingsBericht = maakNieuwStandaardBericht ( null , maakStandaardActie ( ) ) ; doThrow ( new java . lang . RuntimeException ( "exception<sp>voor<sp>transactie" ) ) . when ( voorBerichtRegelStap ) . v...
org . junit . Assert . assertEquals ( 1 , bijhoudingResultaat . getMeldingen ( ) . size ( ) )
testLocateInNSnoModelNameWithAlias ( ) { final org . kie . dmn . model . api . Import i = makeImport ( "nsA" , "m1" , null ) ; final java . util . List < javax . xml . namespace . QName > available = java . util . Arrays . asList ( new javax . xml . namespace . QName ( "nsA" , "m1" ) , new javax . xml . namespace . QNa...
org . junit . Assert . assertTrue ( result . isLeft ( ) )
testValidationBuilder ( ) { com . cloudera . labs . envelope . validate . Validation v = com . cloudera . labs . envelope . validate . Validations . single ( ) . mandatoryPath ( "mandatory" ) ; "<AssertPlaceHolder>" ; } getKnownPaths ( ) { return com . google . common . collect . Sets . newHashSet ( ) ; }
org . junit . Assert . assertEquals ( v . getKnownPaths ( ) , com . google . common . collect . Sets . newHashSet ( "mandatory" ) )
testClearGitHubProfile ( ) { org . pac4j . oauth . profile . github . GitHubProfile profile = new org . pac4j . oauth . profile . github . GitHubProfile ( ) ; profile . setAccessToken ( "testToken" ) ; profile . clearSensitiveData ( ) ; "<AssertPlaceHolder>" ; } getAccessToken ( ) { return ( ( java . lang . String ) ( ...
org . junit . Assert . assertNull ( profile . getAccessToken ( ) )
testGetDefaultTimeout ( ) { org . bff . javampd . server . MPD mpd = mpdBuilder . build ( ) ; "<AssertPlaceHolder>" ; } getTimeout ( ) { return timeout ; }
org . junit . Assert . assertEquals ( 0 , mpd . getTimeout ( ) )
binarySearch ( ) { org . eclipse . collections . api . list . ListIterable < java . lang . Integer > sortedList = this . classUnderTest ( ) ; "<AssertPlaceHolder>" ; } binarySearch ( int ) { throw new java . lang . UnsupportedOperationException ( "BinarySearch<sp>is<sp>not<sp>implemented<sp>on<sp>CodePointAdapter" ) ; ...
org . junit . Assert . assertEquals ( ( - 1 ) , sortedList . binarySearch ( 1 ) )
testCreateBooleanJcrUuid ( ) { setupPermission ( "/a" , testPrincipal , true , PrivilegeConstants . JCR_READ , PrivilegeConstants . JCR_ADD_CHILD_NODES ) ; try { org . apache . jackrabbit . oak . api . Root testRoot = getTestRoot ( ) ; testRoot . refresh ( ) ; org . apache . jackrabbit . oak . util . NodeUtil a = new o...
org . junit . Assert . assertTrue ( e . isConstraintViolation ( ) )
selectTest ( ) { org . bugkillers . core . domain . QuestionDO questionDO = questionDOMapper . selectByPrimaryKey ( 1 ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( questionDO )
testDelete_Child ( ) { com . jmethods . catatumbo . entities . ParentEntity parent = new com . jmethods . catatumbo . entities . ParentEntity ( ) ; parent . setField1 ( "Parent<sp>for<sp>Delete<sp>Test!" ) ; parent = com . jmethods . catatumbo . EntityManagerTest . em . insert ( parent ) ; com . jmethods . catatumbo . ...
org . junit . Assert . assertTrue ( ( ( child != null ) && ( child2 == null ) ) )
checkingWithExpectMessageContainingShouldThrowAssertionErrorIfExpectedMessageIsDifferent ( ) { expectedException . expect ( net . usikkert . kouchat . junit . IllegalArgumentException . class ) ; expectedException . expectMessageContaining ( "something<sp>else" ) ; final java . lang . AssertionError error = runTestAndT...
org . junit . Assert . assertNotNull ( error )
testUploadFile ( ) { org . finra . herd . model . dto . S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto = new org . finra . herd . model . dto . S3FileTransferRequestParamsDto ( ) ; org . finra . herd . model . dto . S3FileTransferResultsDto s3FileTransferResultsDto = new org . finra . herd . model . dto ...
org . junit . Assert . assertEquals ( s3FileTransferResultsDto , result )
itShouldFetchValueWithDecimalPoint1 ( ) { java . lang . String inputValue = "junk00140,01.0junk" ; java . lang . String actual = hydrograph . engine . transformation . standardfunctions . NumericFunctions . decimalStrip ( inputValue , "," ) ; java . lang . String expected = "140,010" ; "<AssertPlaceHolder>" ; } decimal...
org . junit . Assert . assertEquals ( expected , actual )
Typenullmessage ( ) { org . odata4j . core . OProperty < ? > expected = org . odata4j . core . OProperties . string ( SentMessage . P_TYPE . getName ( ) , "message" ) ; org . odata4j . core . OProperty < ? > result = this . setDefaultValue ( SentMessage . P_TYPE . build ( ) , SentMessage . P_TYPE . getName ( ) , org . ...
org . junit . Assert . assertEquals ( expected . getValue ( ) , result . getValue ( ) )
testJAXBContext ( ) { "<AssertPlaceHolder>" ; javax . xml . bind . Unmarshaller m = cswContext . acquireUnmarshaller ( ) ; try { if ( ( entity ) != null ) { java . io . InputStream content = entity . getContent ( ) ; org . geosdi . geoplatform . xml . csw . v202 . CapabilitiesType cap = ( ( javax . xml . bind . JAXBEle...
org . junit . Assert . assertNotNull ( cswContext )
validationNullsAllAround ( ) { "<AssertPlaceHolder>" ; } validateUser ( java . lang . String , java . lang . String ) { org . candlepin . model . User user = this . userCurator . findByLogin ( username ) ; java . lang . String hashedPassword = org . candlepin . util . Util . hash ( password ) ; if ( ( ( user != null ) ...
org . junit . Assert . assertFalse ( this . service . validateUser ( null , null ) )
checkFoldersWithExistingChildrenAreNotLazyLoaded ( ) { item = newTreeItem ( new org . guvnor . structure . client . editors . fileexplorer . FileExplorerViewImplTest . TreeItemData ( FSTreeItem . FSType . FOLDER , "folder" , mock ( org . uberfire . backend . vfs . Path . class ) ) , new org . guvnor . structure . clien...
org . junit . Assert . assertFalse ( view . needsLoading ( item ) )
computeFactorForTimeSlice_day_summertime_adjustStartEnd ( ) { org . oscm . billingservice . business . calculation . revenue . model . TimeSlice timeSlice = newTimeSlice ( "2014-03-30<sp>00:00:00" , PricingPeriod . DAY ) ; long usagePeriodStart = org . oscm . test . DateTimeHandling . calculateMillis ( "2014-03-30<sp>0...
org . junit . Assert . assertEquals ( 1.0 , factor , 0 )
testParseBigLongInArray ( ) { final java . lang . Object doc = com . allanbank . mongodb . bson . json . Json . parse ( "{<sp>a<sp>:<sp>[<sp>12345678901<sp>]}" ) ; final com . allanbank . mongodb . bson . builder . DocumentBuilder b = com . allanbank . mongodb . bson . builder . BuilderFactory . start ( ) ; b . pushArr...
org . junit . Assert . assertEquals ( b . build ( ) , doc )
testReturnable1 ( ) { org . teiid . query . metadata . TransformationMetadata metadata = org . teiid . query . unittest . RealMetadataFactory . example1 ( ) ; addProc ( metadata , "sq2" , ( "CREATE<sp>VIRTUAL<sp>PROCEDURE<sp>BEGIN\n" + "SELECT<sp>e1,<sp>e2<sp>FROM<sp>pm1.g1;<sp>select<sp>e1,<sp>e2<sp>from<sp>pm1.g2<sp>...
org . junit . Assert . assertEquals ( 6 , dataMgr . getCommandHistory ( ) . size ( ) )
getIdSecondCategory ( ) { givenModelWithCategories ( java . util . Arrays . asList ( "cat1" , "cat2" , "cat3" ) ) ; java . lang . String result = model . getIdSecondCategory ( ) ; "<AssertPlaceHolder>" ; } getIdSecondCategory ( ) { return getCategory ( 1 ) . getCategoryId ( ) ; }
org . junit . Assert . assertEquals ( "cat2" , result )
testExtractPathFromFileUrl ( ) { final java . net . URL url = new java . net . URL ( "file:/C:/Users/me/workspace/log4j2/log4j-core/target/test-classes/log4j2-config.xml" ) ; final java . lang . String expected = "/C:/Users/me/workspace/log4j2/log4j-core/target/test-classes/log4j2-config.xml" ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertEquals ( expected , new org . apache . logging . log4j . core . config . plugins . util . ResolverUtil ( ) . extractPath ( url ) )
writeShouldSucceed ( ) { byte [ ] content = org . apache . flink . fs . s3 . common . utils . RefCountedFileTest . bytesOf ( "hello<sp>world" ) ; final org . apache . flink . fs . s3 . common . utils . RefCountedFile fileUnderTest = getClosedRefCountedFileWithContent ( content ) ; long fileLength = fileUnderTest . getL...
org . junit . Assert . assertEquals ( content . length , fileLength )
decode ( ) { final java . io . ByteArrayInputStream stream = new java . io . ByteArrayInputStream ( encoded ) ; final com . flagstone . transform . coder . SWFDecoder decoder = new com . flagstone . transform . coder . SWFDecoder ( stream ) ; final com . flagstone . transform . coder . Context context = new com . flags...
org . junit . Assert . assertNotNull ( fixture )
testHttpWithOpenIdConnectUrl ( ) { org . eclipse . microprofile . openapi . models . security . SecurityScheme . Type type = org . eclipse . microprofile . openapi . models . security . SecurityScheme . Type . HTTP ; com . ibm . ws . microprofile . openapi . impl . model . security . SecuritySchemeImpl httpWithOpenIdCo...
org . junit . Assert . assertEquals ( 1 , vh . getEventsSize ( ) )
test_plus_doubleRoundingMode_zero ( ) { org . joda . money . Money test = org . joda . money . TestMoney . GBP_2_34 . plus ( 0.0 , RoundingMode . UNNECESSARY ) ; "<AssertPlaceHolder>" ; } plus ( double , java . math . RoundingMode ) { return with ( money . plusRetainScale ( amountToAdd , roundingMode ) ) ; }
org . junit . Assert . assertSame ( org . joda . money . TestMoney . GBP_2_34 , test )
doesNotForwardRequiredCapabilitiesAsTheseAreVeryLegacy ( ) { try ( org . openqa . selenium . remote . NewSessionPayload payload = org . openqa . selenium . remote . NewSessionPayload . create ( com . google . common . collect . ImmutableMap . of ( "capabilities" , org . openqa . selenium . remote . server . EMPTY_MAP ,...
org . junit . Assert . assertNull ( seen . get ( "requiredCapabilities" ) )
simpleQueryInvalid ( ) { try { ds . query ( ( "SLCT<sp>*<sp>FROM<sp>" + ( table ) ) ) . get ( timeout ) ; "<AssertPlaceHolder>" ; } catch ( final io . trane . ndbc . NdbcException ex ) { } } get ( int ) { return notExpected ( ) ; }
org . junit . Assert . assertTrue ( false )
testDropFlashCookie ( ) { com . gargoylesoftware . htmlunit . html . HtmlPage page = webClient . getPage ( ( ( webUrl ) + "faces/flashDropCookie.xhtml" ) ) ; webClient . getOptions ( ) . setRedirectEnabled ( true ) ; com . gargoylesoftware . htmlunit . html . HtmlTextInput textInput = ( ( com . gargoylesoftware . htmlu...
org . junit . Assert . assertTrue ( ( newSize < currentSize ) )
iterate_loop ( ) { final org . exist . xquery . value . Item mockItem = org . exist . xquery . value . SingleItemIteratorTest . mockItem ( ) ; final org . exist . xquery . value . SequenceIterator it = new org . exist . xquery . value . SingleItemIterator ( mockItem ) ; int count = 0 ; while ( it . hasNext ( ) ) { it ....
org . junit . Assert . assertEquals ( 1 , count )
testLeeg ( ) { final nl . bzk . brp . util . hisvolledig . kern . PersoonHisVolledigImplBuilder builder = new nl . bzk . brp . util . hisvolledig . kern . PersoonHisVolledigImplBuilder ( nl . bzk . brp . model . algemeen . stamgegeven . kern . SoortPersoon . INGESCHREVENE ) ; final nl . bzk . brp . model . hisvolledig ...
org . junit . Assert . assertNull ( brpInhoud )
testAndWithNullable ( ) { com . hortonworks . streamline . streams . sql . Values v = testExpr ( com . google . common . collect . Lists . newArrayList ( "ADDR<sp>=<sp>'a'<sp>AND<sp>NAME<sp>=<sp>'a'" , "NAME<sp>=<sp>'a'<sp>AND<sp>ADDR<sp>=<sp>'a'" , "NAME<sp>=<sp>'x'<sp>AND<sp>ADDR<sp>=<sp>'a'" , "ADDR<sp>=<sp>'a'<sp>A...
org . junit . Assert . assertEquals ( new com . hortonworks . streamline . streams . sql . Values ( false , false , null , null ) , v )
testExtra ( ) { cn . jpush . api . push . model . notification . WinphoneNotification winphone = cn . jpush . api . push . model . notification . WinphoneNotification . newBuilder ( ) . addExtra ( "key2" , 222 ) . addExtra ( "key" , "value" ) . build ( ) ; com . google . gson . JsonObject json = new com . google . gson...
org . junit . Assert . assertEquals ( "" , json , winphone . toJSON ( ) )
testDelete ( ) { items . put ( "kbase" , newItem ( "kbase" ) ) ; presenter . onSelect ( "kbase" ) ; presenter . onRemove ( ) ; verify ( view ) . disableMakeDefault ( ) ; verify ( view ) . disableItemEditingButtons ( ) ; verify ( view ) . remove ( "kbase" ) ; verify ( form ) . clear ( ) ; verify ( form ) . makeReadOnly ...
org . junit . Assert . assertTrue ( items . isEmpty ( ) )
testRemoveByteReducesBuffer ( ) { buffer = org . smpp . util . ByteBufferTest . bufferOf ( org . smpp . util . ByteBufferTest . A , org . smpp . util . ByteBufferTest . B , org . smpp . util . ByteBufferTest . C ) ; buffer . removeByte ( ) ; "<AssertPlaceHolder>" ; } length ( ) { if ( ( buffer ) == null ) { return 0 ; ...
org . junit . Assert . assertEquals ( 2 , buffer . length ( ) )
formatNullThrown ( ) { final java . lang . String previousLineSeparatorProperty = java . lang . System . getProperty ( org . apache . tomee . jul . formatter . SimpleTomEEFormatterTest . LINE_SEPARATOR_KEY ) ; try { final java . lang . String lineSeparatorValue = "\n" ; final java . lang . String logMessage = "An<sp>ex...
org . junit . Assert . assertEquals ( expectedFormatOutput , actualFormatOutput )
testConstructor ( ) { java . util . concurrent . ConcurrentMap < java . lang . String , java . lang . ref . Reference < java . lang . Object > > innerConcurrentMap = new java . util . concurrent . ConcurrentHashMap ( ) ; com . liferay . petra . concurrent . ConcurrentReferenceValueHashMap < java . lang . String , java ...
org . junit . Assert . assertSame ( innerConcurrentMap , concurrentReferenceValueHashMap . innerConcurrentMap )
testIndexOf_06_SmallData ( ) { org . riversun . finbin . BinarySearcher bs = new org . riversun . finbin . BinarySearcher ( ) ; byte [ ] srcBytes = SMALL_SIZE_TEST_BYTES ; java . lang . String searchText = "world" ; byte [ ] searchBytes = getBytes ( searchText ) ; final int startIndex = 0 ; final int endIndex = 29 ; fi...
org . junit . Assert . assertEquals ( expected , resultVal )
test_GetTab_By_Name ( ) { when ( element . findFirst ( mmarquee . automation . BaseAutomationTest . isTreeScope ( TreeScope . Descendants ) , any ( ) ) ) . thenReturn ( targetElement ) ; mmarquee . automation . controls . AutomationTab tab = spyWndw . getTab ( mmarquee . automation . controls . Search . getBuilder ( "m...
org . junit . Assert . assertEquals ( targetElement , tab . getElement ( ) )
shouldCreateOverridenManagerFactory ( ) { victim = new ro . isdc . wro . manager . factory . DefaultWroManagerFactory ( new java . util . Properties ( ) ) { @ ro . isdc . wro . manager . factory . Override protected ro . isdc . wro . manager . factory . WroManagerFactory newManagerFactory ( ) { return new ro . isdc . w...
org . junit . Assert . assertEquals ( ro . isdc . wro . manager . factory . ConfigurableWroManagerFactory . class , victim . getFactory ( ) . getClass ( ) )
sendSucceedsCallsPublish ( com . microsoft . azure . sdk . iot . device . transport . mqtt . Mqtt ) { final byte [ ] actualPayload = "TestMessage" . getBytes ( ) ; final com . microsoft . azure . sdk . iot . device . transport . IotHubTransportMessage testMessage = new com . microsoft . azure . sdk . iot . device . tra...
org . junit . Assert . assertTrue ( testRequestMap . isEmpty ( ) )
given_aCyclycGraph ( ) { final java . io . File file = fr . gouv . vitam . common . PropertiesUtils . getResourceFile ( "ingest_acyc.json" ) ; final com . fasterxml . jackson . databind . JsonNode json = fr . gouv . vitam . common . json . JsonHandler . getFromFile ( file ) ; final fr . gouv . vitam . common . graph . ...
org . junit . Assert . assertFalse ( dc . isCyclic ( ) )
givenUsersWithSameNameInDB_WhenFindAllByName_ThenReturnStreamOfUsers ( ) { com . baeldung . domain . user . User user1 = new com . baeldung . domain . user . User ( ) ; user1 . setName ( USER_NAME_ADAM ) ; user1 . setEmail ( USER_EMAIL ) ; userRepository . save ( user1 ) ; com . baeldung . domain . user . User user2 = ...
org . junit . Assert . assertThat ( foundUsersStream . count ( ) )
testServerNameAndInstanceParsingNull ( ) { final net . sf . jsqlparser . schema . Server server = new net . sf . jsqlparser . schema . Server ( null ) ; "<AssertPlaceHolder>" ; } getFullyQualifiedName ( ) { if ( ( ( ( ( serverName ) != null ) && ( ! ( serverName . isEmpty ( ) ) ) ) && ( ( instanceName ) != null ) ) && ...
org . junit . Assert . assertEquals ( "" , server . getFullyQualifiedName ( ) )
testCopyIntArrayIntIntArrayImgOfT ( ) { final int [ ] input = new int [ ] { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 } ; final int [ ] offsets = new int [ ] { 0 , 0 , 8 } ; final int [ ] [ ] strides = new int [ ] [ ] { new int [ ] { 1 , 3 } , new int [ ] { 3 , 1 } , new int [ ] { - 1 , - 3 } } ; final int [ ] [ ] [ ] expected...
org . junit . Assert . assertEquals ( expected [ i ] [ y ] [ x ] , ra . get ( ) . get ( ) , 0 )
testValidator_fail_for_old_file ( ) { long now = 1000L ; when ( file . lastModified ( ) ) . thenReturn ( now ) ; "<AssertPlaceHolder>" ; } validate ( T ) { boolean retVal = false ; java . io . File file = ( ( java . io . File ) ( obj ) ) ; if ( fileAgeValidator . validate ( file ) ) { results . addFile ( file . getPath...
org . junit . Assert . assertFalse ( instance . validate ( file ) )
getSurroundingCellsNotNearEdges ( ) { com . fundynamic . d2tm . game . map . Cell cell = makeCell ( 10 , 10 ) ; java . util . List < com . fundynamic . d2tm . game . map . Cell > surroundingCells = cell . getSurroundingCells ( ) ; "<AssertPlaceHolder>" ; } getSurroundingCells ( ) { return java . util . Arrays . asList ...
org . junit . Assert . assertEquals ( 8 , surroundingCells . size ( ) )
testEventSubscriptionMapReadValue ( ) { org . msgpack . type . Value subscriberId1Key = org . msgpack . type . ValueFactory . createRawValue ( "subscriber_id1" ) ; org . msgpack . type . Value subscriberId2Key = org . msgpack . type . ValueFactory . createRawValue ( "subscriber_id2" ) ; org . msgpack . type . Value sub...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( true ) )
testUsePdfTitleAsTitleTrue ( ) { java . io . InputStream stream = java . lang . Thread . currentThread ( ) . getContextClassLoader ( ) . getResourceAsStream ( "sample.pdf" ) ; java . lang . String title = "TheTitle" ; pdfInputTransformer . setUsePdfTitleAsTitle ( true ) ; when ( documentInformation . getTitle ( ) ) . t...
org . junit . Assert . assertThat ( metacard . getTitle ( ) , org . hamcrest . Matchers . is ( title ) )
test_stats_get ( ) { com . sendgrid . SendGrid sg = new com . sendgrid . SendGrid ( "SENDGRID_API_KEY" , true ) ; sg . setHost ( "localhost:4010" ) ; sg . addRequestHeader ( "X-Mock" , "200" ) ; com . sendgrid . Request request = new com . sendgrid . Request ( ) ; request . setMethod ( Method . GET ) ; request . setEnd...
org . junit . Assert . assertEquals ( 200 , response . getStatusCode ( ) )
shouldSignalNewKey ( ) { java . lang . String key1 = uniqueString ( 3 ) ; java . lang . String key2 = uniqueString ( 3 ) ; java . sql . Array array1 = createJdbcArray ( key1 ) ; java . sql . Array array2 = createJdbcArray ( key2 ) ; given ( resultSet . getArray ( annis . sqlgen . PostgreSqlArraySolutionKeyTest . keyCol...
org . junit . Assert . assertThat ( key . isNewKey ( ) , org . hamcrest . CoreMatchers . is ( true ) )
shouldReturnResultsWithScanAndScrollForGivenCriteriaQuery ( ) { java . util . List < org . springframework . data . elasticsearch . core . IndexQuery > entities = org . springframework . data . elasticsearch . core . ElasticsearchTemplateTests . createSampleEntitiesWithMessage ( "Test<sp>message" , 30 ) ; elasticsearch...
org . junit . Assert . assertThat ( sampleEntities . size ( ) , is ( equalTo ( 30 ) ) )
testUsesWindowsTheme ( ) { registerTheme ( Constants . THEME_ID_WINDOWS ) ; com . eclipsesource . tabris . test . util . TabrisRequest request = environment . getRequest ( ) ; request . setHeader ( Constants . USER_AGENT , Constants . ID_WINDOWS ) ; provider . accept ( request ) ; java . lang . String currentTheme = ( ...
org . junit . Assert . assertEquals ( Constants . THEME_ID_WINDOWS , currentTheme )
aisBusTest ( ) { dk . dma . ais . bus . AisBus aisBus = dk . dma . ais . bus . AisBusFactory . get ( "src/main/resources/aisbus-test.xml" ) ; int threadCount = java . lang . Thread . activeCount ( ) ; aisBus . start ( ) ; aisBus . startConsumers ( ) ; aisBus . startProviders ( ) ; try { java . lang . Thread . sleep ( 8...
org . junit . Assert . assertEquals ( threadCount , java . lang . Thread . activeCount ( ) )
testIntValuePositive3 ( ) { byte [ ] aBytes = new byte [ ] { 56 , 13 , 78 , - 12 , - 5 , 56 , 100 } ; int sign = 1 ; int resInt = - 184862620 ; int aNumber = new java . math . BigInteger ( sign , aBytes ) . intValue ( ) ; "<AssertPlaceHolder>" ; } intValue ( ) { return ( ( int ) ( value ) ) ; }
org . junit . Assert . assertTrue ( ( aNumber == resInt ) )
testEscapeNull4 ( ) { final java . io . StringWriter sw = new java . io . StringWriter ( ) ; try ( final org . apache . commons . csv . CSVPrinter printer = new org . apache . commons . csv . CSVPrinter ( sw , CSVFormat . DEFAULT . withEscape ( null ) ) ) { printer . print ( "\\\\" ) ; } "<AssertPlaceHolder>" ; } toStr...
org . junit . Assert . assertEquals ( "\\\\" , sw . toString ( ) )
shouldProvidePassingTestToRunner ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
testSerialization ( ) { com . google . cloud . bigtable . config . BigtableOptions options = com . google . cloud . bigtable . config . BigtableOptions . builder ( ) . setProjectId ( "project" ) . setInstanceId ( "instance" ) . setUserAgent ( "foo" ) . build ( ) ; java . io . ByteArrayOutputStream bos = new java . io ....
org . junit . Assert . assertEquals ( options , deserialized )
testHashCode ( ) { java . lang . String message = "message" ; java . lang . Throwable throwable = new java . lang . Throwable ( ) ; com . liferay . petra . process . local . LocalProcessLog localProcessLog = new com . liferay . petra . process . local . LocalProcessLog ( ProcessLog . Level . DEBUG , message , throwable...
org . junit . Assert . assertEquals ( localProcessLog . hashCode ( ) , com . liferay . petra . lang . HashUtil . hash ( hash , throwable ) )
handleEvent_PercentType99invertPercentTrue_returnPercentType0 ( ) { org . openhab . binding . zwave . internal . converter . ZWaveMultiLevelSwitchConverter sut = new org . openhab . binding . zwave . internal . converter . ZWaveMultiLevelSwitchConverter ( controller ) ; java . util . Map < java . lang . String , java ....
org . junit . Assert . assertEquals ( new org . eclipse . smarthome . core . library . types . PercentType ( 0 ) , state )
threeCoordinateLineBothCoordinateInBoundary3 ( ) { com . vividsolutions . jts . geom . Polygon splitee = ( ( com . vividsolutions . jts . geom . Polygon ) ( org . locationtech . tools . geometry . split . SplitTestUtil . read ( "POLYGON<sp>((10<sp>30,<sp>30<sp>30,<sp>30<sp>10,<sp>10<sp>10,<sp>10<sp>30))" ) ) ) ; com . ...
org . junit . Assert . assertTrue ( splitee . isValid ( ) )
testOnErrorRunnableIsCalled ( ) { java . lang . RuntimeException throwable = new java . lang . RuntimeException ( ) ; java . util . concurrent . atomic . AtomicBoolean onErrorWasCalled = new java . util . concurrent . atomic . AtomicBoolean ( ) ; org . apache . beam . runners . dataflow . harness . test . TestStreams ....
org . junit . Assert . assertTrue ( onErrorWasCalled . get ( ) )
testGetPatternFinderFunctionStringEListOfCharactersMappingCase2 ( ) { java . lang . String expectedResult = "TRANSLATE(name<sp>,<sp>\'abcdefghijklmnopqrstuvwxyzçâêîôûéèùïöüABCDEFGHIJKLMNOPQRSTUVWXYZÇÂÊÎÔÛÉÈÙÏÖÜ0123456789Default\'<sp>,<sp>\'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9999...
org . junit . Assert . assertEquals ( expectedResult , patternFinderFunction )
testTransfer ( ) { org . fusesource . amqp . codec . Transfer in = new org . fusesource . amqp . codec . Transfer ( ) ; in . setHandle ( 0L ) ; in . setDeliveryTag ( new org . fusesource . hawtbuf . AsciiBuffer ( "0" ) . buffer ( ) ) ; in . setDeliveryID ( 0L ) ; in . setSettled ( false ) ; in . setAborted ( false ) ; ...
org . junit . Assert . assertEquals ( in . toString ( ) , out . toString ( ) )
runTest ( ) { boolean result = checkNoError ( "Social_Activities_Move_Entry_to_Section" ) ; "<AssertPlaceHolder>" ; } getNoErrorMsg ( ) { return noErrorMsg ; }
org . junit . Assert . assertTrue ( getNoErrorMsg ( ) , result )