input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
failedToSendResponseToClient ( ) { org . mule . runtime . api . util . Reference < java . lang . Throwable > exceptionReference = new org . mule . runtime . api . util . Reference ( ) ; when ( completionHandler . onCompletion ( same ( event ) , same ( mockParameters ) ) ) . thenReturn ( reactor . core . publisher . Mon...
org . junit . Assert . assertThat ( exceptionReference . get ( ) , org . hamcrest . CoreMatchers . equalTo ( runtimeException ) )
testValues ( ) { org . jacop . Store store = new org . jacop . Store ( ) ; int xLength = 4 ; int xSize = 7 ; org . jacop . IntVar [ ] x = getIntVars ( store , "x" , xLength , xSize ) ; org . jacop . IntVar n = new org . jacop . IntVar ( store , "sum" , 0 , 1 ) ; org . jacop . Values values = new org . jacop . Values ( ...
org . junit . Assert . assertThat ( noOfSolutions , org . hamcrest . CoreMatchers . is ( xSize ) )
testSchemaCapture ( ) { org . apache . ode . utils . xsd . SchemaCaptureTest . __log . debug ( ( "GETTING<sp>RESOURCE<sp>" + ( org . apache . ode . utils . TestResources . getRetailerSchema ( ) ) ) ) ; java . io . InputStream xsdStream = org . apache . ode . utils . TestResources . getRetailerSchema ( ) . openStream ( ...
org . junit . Assert . assertEquals ( 5 , s . size ( ) )
testIsInstanceOf_withMessage ( ) { org . apache . commons . lang3 . Validate . isInstanceOf ( java . lang . String . class , "hi" , "Error" ) ; org . apache . commons . lang3 . Validate . isInstanceOf ( org . apache . commons . lang3 . Integer . class , 1 , "Error" ) ; try { org . apache . commons . lang3 . Validate . ...
org . junit . Assert . assertEquals ( "Error" , e . getMessage ( ) )
test_print_strict ( ) { setStrict ( true ) ; getFormatter ( ) . formatTo ( dta , buf ) ; "<AssertPlaceHolder>" ; } toString ( ) { return "Localized:<sp>" + ( this . actualMatcher ) ; }
org . junit . Assert . assertEquals ( buf . toString ( ) , "" )
testGetPropertyCount ( ) { setupPermission ( "/a" , testPrincipal , false , PrivilegeConstants . REP_READ_PROPERTIES ) ; testRoot . refresh ( ) ; org . apache . jackrabbit . oak . api . Tree a = testRoot . getTree ( "/a" ) ; "<AssertPlaceHolder>" ; } getPropertyCount ( ) { org . apache . jackrabbit . oak . api . Tree t...
org . junit . Assert . assertEquals ( 0 , a . getPropertyCount ( ) )
testBackendGetAllIdentifiersNoRecordsReturnsNone ( ) { java . util . Iterator < org . apache . jackrabbit . core . data . DataIdentifier > allIdentifiers = backend . getAllIdentifiers ( ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { return ( current . next ) != null ; }
org . junit . Assert . assertFalse ( allIdentifiers . hasNext ( ) )
testQueryListAllShardsBuilderWhen ( ) { java . lang . String address = null ; java . lang . Integer id = 1 ; com . ctrip . platform . dal . dao . sqlbuilder . FreeSelectSqlBuilder < java . util . List < com . ctrip . platform . dal . dao . shard . DalQueryDaoTest . ClientTestModel > > query = new com . ctrip . platform...
org . junit . Assert . assertTrue ( ( ( l . size ( ) ) > 0 ) )
when_null ( ) { context . checking ( new org . jmock . Expectations ( ) { { allowing ( mockFilterConfig ) . getInitParameter ( IsisSessionFilter . PASS_THRU_KEY ) ; will ( returnValue ( null ) ) ; } } ) ; final java . util . List < java . lang . String > x = isisSessionFilter . lookupAndParsePassThru ( mockFilterConfig...
org . junit . Assert . assertThat ( x . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
testOAuthTokenExceptionString ( ) { try { throw new com . smartsheet . api . oauth . OAuthTokenException ( "message" ) ; } catch ( com . smartsheet . api . oauth . OAuthTokenException e ) { "<AssertPlaceHolder>" ; } } getMessage ( ) { return message ; }
org . junit . Assert . assertEquals ( "message" , e . getMessage ( ) )
test15GetXUserGroups ( ) { java . util . List < org . apache . ranger . view . VXGroup > vXGroupList = new java . util . ArrayList < org . apache . ranger . view . VXGroup > ( ) ; final org . apache . ranger . view . VXGroup vXGroup1 = vxGroup ( ) ; vXGroup1 . setName ( "users" ) ; vXGroup1 . setDescription ( "users<sp...
org . junit . Assert . assertNotNull ( dbVXGroupList )
shouldReturnTrueIfDeliveryDateIsNotLessThanOneYear ( ) { org . ei . drishti . util . SafeMap safeMap = new org . ei . drishti . util . SafeMap ( ) ; safeMap . put ( "serviceProvidedDate" , "2012-03-01" ) ; safeMap . put ( "referenceDate" , "2011-01-01" ) ; boolean didRuleApply = rule . apply ( safeMap ) ; "<AssertPlace...
org . junit . Assert . assertFalse ( didRuleApply )
testSimple ( ) { org . eclipse . reddeer . core . condition . WidgetIsFound isFound = new org . eclipse . reddeer . core . condition . WidgetIsFound ( org . eclipse . swt . widgets . TableItem . class ) ; "<AssertPlaceHolder>" ; } test ( ) { return ( job . getState ( ) ) == ( state ) ; }
org . junit . Assert . assertTrue ( isFound . test ( ) )
testUpdateBucketBatch ( ) { com . intuit . wasabi . experimentobjects . BucketList bucketList = mock ( com . intuit . wasabi . experimentobjects . BucketList . class , com . intuit . wasabi . repository . database . RETURNS_DEEP_STUBS ) ; java . util . List < com . intuit . wasabi . experimentobjects . Bucket > list = ...
org . junit . Assert . assertThat ( result , org . hamcrest . core . Is . is ( bucketList ) )
testAlterTableChangeLocation ( ) { java . util . Map < java . lang . String , java . util . Collection < java . lang . String > > update = new java . util . HashMap ( ) ; update . put ( org . apache . sentry . service . thrift . TestFullUpdateModifier . DB . toLowerCase ( ) , java . util . Collections . singleton ( org...
org . junit . Assert . assertEquals ( expected , update )
testEqualsForIdenticalPackages ( ) { java . lang . String packageName = "package.name" ; java . lang . String version = "1.0.0" ; org . apache . aries . application . modelling . ImportedPackage package1 = instantiatePackage ( packageName , version ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( package1 , package1 )
shouldInjectMixedSort ( ) { com . couchbase . client . java . search . SearchQuery p = new com . couchbase . client . java . search . SearchQuery ( null , null ) . sort ( "_score" , sortId ( ) . descending ( true ) , "bar" ) ; com . couchbase . client . java . document . json . JsonObject result = com . couchbase . cli...
org . junit . Assert . assertEquals ( expected , result )
createActivator ( ) { wizardAction . openNewLiferayModuleWizard ( ) ; wizardAction . newModule . prepareMaven ( project . getName ( ) , com . liferay . ide . ui . module . tests . ACTIVATOR ) ; wizardAction . finish ( ) ; jobAction . waitForNoRunningJobs ( ) ; viewAction . project . openUpdateMavenProjectDialog ( com ....
org . junit . Assert . assertTrue ( viewAction . project . visibleFileTry ( com . liferay . ide . ui . module . tests . NewModuleProjectWizardLiferayWorkspaceMavenTests . liferayWorkspace . getModuleFiles ( project . getName ( ) ) ) )
convertToStringNull ( ) { java . lang . String s = converter . toString ( null , null , null ) ; "<AssertPlaceHolder>" ; } toString ( java . lang . String , java . lang . String , java . lang . String ) { if ( value == null ) { return null ; } return new java . lang . String ( value ) ; }
org . junit . Assert . assertNull ( s )
deveObterNumeroNFInicialComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . evento . inutilizacao . NFRetornoEventoInutilizacaoDados dados = new com . fincatto . documentofiscal . nfe400 . classes . evento . inutilizacao . NFRetornoEventoInutilizacaoDados ( ) ; final java . lang . String num...
org . junit . Assert . assertEquals ( numeroNFInicial , dados . getNumeroNFInicial ( ) )
testEmpty ( ) { org . geoserver . web . StringValidatable validatable = new org . geoserver . web . StringValidatable ( "" ) ; new org . geoserver . web . data . resource . BasicResourceConfig . ResourceNameValidator ( ) . validate ( validatable ) ; "<AssertPlaceHolder>" ; } isValid ( ) { return errorList . isEmpty ( )...
org . junit . Assert . assertFalse ( validatable . isValid ( ) )
testGeost ( ) { "<AssertPlaceHolder>" ; } testUsingGeost ( java . lang . String [ ] ) { if ( ( args . length ) == 0 ) { for ( int i = 0 ; i < ( org . jacop . examples . fd . PerfectSquare . squares ( ) . length ) ; i ++ ) { System . out . println ( ( "Problem<sp>no.<sp>" + i ) ) ; org . jacop . examples . fd . PerfectS...
org . junit . Assert . assertThat ( org . jacop . examples . fd . PerfectSquare . testUsingGeost ( new java . lang . String [ ] { "1" } ) , org . hamcrest . CoreMatchers . is ( true ) )
getValueMessage ( ) { org . openhab . binding . zwave . internal . protocol . commandclass . ZWaveBinarySwitchCommandClass cls = ( ( org . openhab . binding . zwave . internal . protocol . commandclass . ZWaveBinarySwitchCommandClass ) ( getCommandClass ( CommandClass . COMMAND_CLASS_SWITCH_BINARY ) ) ) ; org . openhab...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( msg . getPayloadBuffer ( ) , expectedResponseV1 ) )
onApplicationEventHandlesIllegalStateException ( ) { org . apache . geode . cache . client . ClientCache mockClientCache = org . mockito . Mockito . mock ( org . apache . geode . cache . client . ClientCache . class ) ; org . mockito . Mockito . doThrow ( new java . lang . IllegalStateException ( "test" ) ) . when ( mo...
org . junit . Assert . assertThat ( clientCacheFactoryBean . isReadyForEvents ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testGetMLEDetailsBios ( ) { System . out . println ( "getMLEDetailsBios" ) ; com . intel . mtwilson . wlm . business . MleBO instance = new com . intel . mtwilson . wlm . business . MleBO ( ) ; com . intel . mtwilson . datatypes . MleData bios = getBiosMle ( ) ; com . intel . mtwilson . datatypes . MleData resultBios =...
org . junit . Assert . assertNotNull ( resultBios )
testRenameAutonomousArea ( ) { org . apache . directory . api . ldap . model . entry . Entry autonomousArea = new org . apache . directory . api . ldap . model . entry . DefaultEntry ( "ou=autonomousArea,<sp>ou=system" , "ObjectClass:<sp>top" , "ObjectClass:<sp>organizationalUnit" , "ou:<sp>autonomousArea" , "administr...
org . junit . Assert . assertTrue ( true )
test3 ( ) { org . evosuite . Properties . CLIENT_ON_THREAD = true ; org . evosuite . Properties . PRINT_TO_SYSTEM = true ; org . evosuite . Properties . TIMEOUT = 5000000 ; org . evosuite . testcase . DefaultTestCase tc = org . evosuite . symbolic . SymbolicObserverTest . build_test_input_3 ( ) ; System . out . println...
org . junit . Assert . assertEquals ( 2 , branch_conditions . size ( ) )
manageCreationProcess_VSERVER_RETRIEVEGUEST ( ) { org . oscm . app . iaas . data . FlowState newState = vServerProcessor . manageCreationProcess ( null , null , paramHandler , FlowState . VSERVER_RETRIEVEGUEST , null ) ; "<AssertPlaceHolder>" ; } manageCreationProcess ( java . lang . String , java . lang . String , org...
org . junit . Assert . assertEquals ( FlowState . FINISHED , newState )
testReturnsTabrisClient ( ) { "<AssertPlaceHolder>" ; } getClient ( ) { return new com . eclipsesource . tabris . internal . TabrisSWTClient ( ) ; }
org . junit . Assert . assertTrue ( ( ( provider . getClient ( ) ) instanceof com . eclipsesource . tabris . internal . TabrisSWTClient ) )
testInvalidTableNameParser ( ) { java . lang . String sql = "select<sp>sum(gmv_ag)<sp>as<sp>gmv,_cpgnname<sp>from<sp>group<sp>by<sp>_cpgnname<sp>having<sp>sum(gmv_ag)<sp>>0<sp>limit<sp>300" ; com . ebay . pulsar . analytics . query . sql . SQLTranslator sqlTranslator = org . mockito . Mockito . mock ( com . ebay . puls...
org . junit . Assert . assertTrue ( true )
constructorInvalidDate ( ) { thrown . expect ( com . aliyuncs . auth . IllegalArgumentException . class ) ; java . lang . String ak = "ak" ; java . lang . String sk = "sk" ; java . lang . String token = "token" ; java . lang . String expiration = "2018-12-12-12:12:12" ; long duration = 600L ; com . aliyuncs . auth . In...
org . junit . Assert . assertNull ( credentials )
testJavaVersionLogInfoAndOutputFuture ( ) { org . zeroturnaround . exec . ProcessResult result = new org . zeroturnaround . exec . ProcessExecutor ( ) . command ( "java" , "-version" ) . redirectOutput ( org . zeroturnaround . exec . stream . slf4j . Slf4jStream . of ( "testJavaVersionLogInfoAndOutputFuture" ) . asInfo...
org . junit . Assert . assertFalse ( org . apache . commons . lang3 . StringUtils . isEmpty ( str ) )
writeOutTheFileListRoots ( ) { com . javafortesters . chap019files . exercises . File [ ] roots = com . javafortesters . chap019files . exercises . File . listRoots ( ) ; "<AssertPlaceHolder>" ; for ( com . javafortesters . chap019files . exercises . File aFile : roots ) { System . out . println ( aFile . getAbsolutePa...
org . junit . Assert . assertTrue ( ( ( roots . length ) > 0 ) )
testComputeTableSplitKeys ( ) { if ( com . splicemachine . derby . impl . load . HBaseBulkLoadIT . notSupported ) return ; java . lang . String sql = "<sp>select<sp>conglomeratenumber<sp>from<sp>sys.systables<sp>t,<sp>sys.sysconglomerates<sp>c,<sp>sys.sysschemas<sp>s<sp>" + "<sp>select<sp>conglomeratenumber<sp>from<sp>...
org . junit . Assert . assertEquals ( expected , s )
validate_shouldFailIfAConceptIsNotSpecified ( ) { org . openmrs . Drug drug = new org . openmrs . Drug ( ) ; org . springframework . validation . Errors errors = new org . springframework . validation . BindException ( drug , "drug" ) ; new org . openmrs . validator . ConceptDrugValidator ( ) . validate ( drug , errors...
org . junit . Assert . assertTrue ( errors . hasErrors ( ) )
testTransformWithMatch ( ) { org . eurekastreams . server . persistence . mappers . ldap . AttributesToDisplayNameSuffixTransformer sut ; sut = new org . eurekastreams . server . persistence . mappers . ldap . AttributesToDisplayNameSuffixTransformer ( "foo" , "^.+Esquire,<sp>D.F.A.$" , "<sp>(LOL)" ) ; javax . naming ....
org . junit . Assert . assertEquals ( "<sp>(LOL)" , result )
testChangeCEST2CET ( ) { java . util . Calendar start = new java . util . GregorianCalendar ( java . util . TimeZone . getTimeZone ( "Europe/Berlin" ) ) ; start . clear ( ) ; start . set ( 2017 , Calendar . OCTOBER , 29 , 1 , 30 , 0 ) ; javax . ejb . ScheduleExpression schedule = new javax . ejb . ScheduleExpression ( ...
org . junit . Assert . assertNotNull ( firstTimeout )
testCompareToGreaterThan ( ) { java . lang . String org = "apache" ; java . lang . String name = "some-new-module" ; org . apache . ivy . core . module . id . ModuleId moduleId = new org . apache . ivy . core . module . id . ModuleId ( org , name ) ; java . lang . String name2 = "the-new-module" ; org . apache . ivy . ...
org . junit . Assert . assertTrue ( ( ( moduleId2 . compareTo ( moduleId ) ) > 0 ) )
testPlanWithPropertyRestrictionsEnabled ( ) { org . apache . jackrabbit . oak . spi . state . NodeBuilder builder = nodeState . builder ( ) ; builder . child ( "oak:index" ) . child ( "solr" ) . setProperty ( "propertyRestrictions" , true ) ; nodeState = builder . getNodeState ( ) ; org . apache . jackrabbit . oak . qu...
org . junit . Assert . assertEquals ( 1 , plans . size ( ) )
testReserve01 ( ) { org . terasoluna . tourreservation . app . reservetour . ReserveTourForm form = new org . terasoluna . tourreservation . app . reservetour . ReserveTourForm ( ) ; org . terasoluna . tourreservation . domain . service . reserve . ReserveTourOutput output = new org . terasoluna . tourreservation . dom...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( output ) )
robustnessFrom ( ) { boolean exceptionCaught = false ; try { greycat . Tasks . newTask ( ) . then ( inject ( null ) ) . execute ( _graph , null ) ; } catch ( java . lang . RuntimeException npe ) { exceptionCaught = true ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( "Unexpected<sp>exception<sp>...
org . junit . Assert . assertEquals ( true , exceptionCaught )
testGetReferencedElements ( ) { java . lang . String [ ] expected = new java . lang . String [ ] { "item" } ; doReturn ( expected ) . when ( reportPreProcessorCore ) . getReferencedElements ( metaData , element , null ) ; java . lang . String [ ] result = metaData . getReferencedElements ( element , null ) ; "<AssertPl...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
shouldReturnSame ( ) { org . simmetrics . StringDistance s = new org . simmetrics . builders . StringDistances . ForString ( metric ) ; "<AssertPlaceHolder>" ; } create ( org . simmetrics . Distance ) { if ( distance instanceof org . simmetrics . StringDistance ) { return ( ( org . simmetrics . StringDistance ) ( dista...
org . junit . Assert . assertSame ( s , org . simmetrics . builders . StringDistances . create ( s ) )
testEqualsFalseDiffId ( ) { com . cloud . utils . nio . Link link1 = mock ( com . cloud . utils . nio . Link . class ) ; com . cloud . agent . manager . ConnectedAgentAttache agentAttache1 = new com . cloud . agent . manager . ConnectedAgentAttache ( null , 1 , null , link1 , false ) ; com . cloud . agent . manager . C...
org . junit . Assert . assertFalse ( agentAttache1 . equals ( agentAttache2 ) )
getActive_shouldReturnFalseIfNotVoidedAndDateLaterThanEndDate ( ) { org . openmrs . PatientState patientState = new org . openmrs . PatientState ( ) ; patientState . setStartDate ( leftRange ) ; patientState . setEndDate ( rightRange ) ; patientState . setVoided ( false ) ; boolean active = patientState . getActive ( r...
org . junit . Assert . assertFalse ( active )
fileExists_getInputFormatNameBeforeRead ( ) { net . coobird . thumbnailator . tasks . io . URLImageSource source = new net . coobird . thumbnailator . tasks . io . URLImageSource ( new java . net . URL ( "file:test-resources/Thumbnailator/grid.png" ) ) ; try { source . getInputFormatName ( ) ; } catch ( java . lang . I...
org . junit . Assert . assertEquals ( "Input<sp>has<sp>not<sp>been<sp>read<sp>yet." , e . getMessage ( ) )
shouldNotTranslateURIToFilePath ( ) { java . lang . String uri = "/src/C:/dev/trunk/rpux_trunk/client/tests/src/form/field/TU_DateRange.js" ; java . util . regex . Pattern pattern = java . util . regex . Pattern . compile ( "/srcy/(.*)/tests(.*)" ) ; jscover . util . UriFileTranslatorReg translator = new jscover . util...
org . junit . Assert . assertThat ( translator . convertUriToFile ( uri ) , org . hamcrest . Matchers . equalTo ( "/src/C:/dev/trunk/rpux_trunk/client/tests/src/form/field/TU_DateRange.js" ) )
array ( ) { com . querydsl . core . types . FactoryExpression < java . lang . String [ ] > expr = com . querydsl . core . types . Projections . array ( java . lang . String [ ] . class , com . querydsl . core . types . ExpressionUtils . path ( java . lang . String . class , "p1" ) , com . querydsl . core . types . Expr...
org . junit . Assert . assertEquals ( java . lang . String [ ] . class , expr . newInstance ( "1" , "2" ) . getClass ( ) )
testSetVDiskId ( ) { propertyHandler = new org . oscm . app . iaas . PropertyHandler ( settings ) ; propertyHandler . setVDiskId ( "vdiskid" ) ; java . lang . String vdiskid = propertyHandler . getVDiskId ( ) ; "<AssertPlaceHolder>" ; } getVDiskId ( ) { return props . getValidatedProperty ( org . oscm . app . iaas . Pr...
org . junit . Assert . assertEquals ( "vdiskid" , vdiskid )
parseOption ( ) { java . lang . String testDir = alluxio . client . cli . fs . FileSystemShellUtilsTest . resetLocalFileHierarchy ( mLocalAlluxioCluster ) ; int ret = mFsShell . run ( "copyFromLocal" , "--thread" , "1" , "--buffersize" , "1024" , ( testDir + "/*/foo*" ) , "/testDir" ) ; "<AssertPlaceHolder>" ; } resetL...
org . junit . Assert . assertEquals ( 0 , ret )
testWriteStringToCompressed ( ) { java . lang . String markdown = "This<sp>is<sp>a<sp>test<sp>**markdown**<sp>that<sp>will<sp>be<sp>compressed." ; java . io . ByteArrayOutputStream baos = new java . io . ByteArrayOutputStream ( ) ; java . nio . charset . Charset charset = java . nio . charset . Charset . forName ( "UTF...
org . junit . Assert . assertEquals ( markdown , unzippedString )
testCreateEndpointWithArgs ( ) { java . lang . String args = "arg1<sp>arg2<sp>arg3" ; org . apache . camel . component . exec . ExecEndpoint e = createExecEndpoint ( ( "exec:test?args=" + ( args . replaceAll ( "<sp>" , "+" ) ) ) ) ; "<AssertPlaceHolder>" ; } getArgs ( ) { return args ; }
org . junit . Assert . assertEquals ( args , e . getArgs ( ) )
appliesCertInfoIfConfigured ( ) { org . appenders . log4j2 . elasticsearch . CertInfo < org . elasticsearch . common . settings . Settings . Builder > certInfo = org . mockito . Mockito . mock ( org . appenders . log4j2 . elasticsearch . CertInfo . class ) ; org . elasticsearch . common . settings . Settings . Builder ...
org . junit . Assert . assertEquals ( settingsBuilder , builderArgumentCaptor . getValue ( ) )
testGetStrongMessage ( ) { final org . kie . workbench . common . dmn . client . editors . types . common . DataType dataType = mock ( org . kie . workbench . common . dmn . client . editors . types . common . DataType . class ) ; final java . lang . String expectedWarningMessage = "*Expected<sp>strong<sp>message.*" ; ...
org . junit . Assert . assertEquals ( expectedWarningMessage , actualWarningMessage )
validateInvalidOrg1 ( ) { net . maritimecloud . identityregistry . model . database . Organization invalidOrg = new net . maritimecloud . identityregistry . model . database . Organization ( ) ; invalidOrg . setName ( "Test<sp>Org" ) ; invalidOrg . setMrn ( "urn:mrn:mcl:org:test" ) ; invalidOrg . setAddress ( "Test<sp>...
org . junit . Assert . assertEquals ( 2 , violations . size ( ) )
testRetrieveAttributesNoSubject ( ) { java . util . Map < java . lang . String , java . util . SortedSet < java . lang . String > > subjectAttributes = ddf . security . SubjectUtils . getSubjectAttributes ( null ) ; "<AssertPlaceHolder>" ; } entrySet ( ) { return map . entrySet ( ) ; }
org . junit . Assert . assertThat ( subjectAttributes . entrySet ( ) , org . hamcrest . core . Is . is ( org . hamcrest . Matchers . empty ( ) ) )
testValid05 ( ) { org . terasoluna . gfw . web . token . transaction . TransactionToken token = new org . terasoluna . gfw . web . token . transaction . TransactionToken ( "aaa" , null , "456" ) ; boolean valid = token . valid ( ) ; "<AssertPlaceHolder>" ; } valid ( ) { return false ; }
org . junit . Assert . assertFalse ( valid )
test02 ( ) { net . pms . formats . ADPCM aDPCM0 = new net . pms . formats . ADPCM ( ) ; net . pms . formats . Format format1 = aDPCM0 . getSecondaryFormat ( ) ; "<AssertPlaceHolder>" ; } getSecondaryFormat ( ) { return secondaryFormat ; }
org . junit . Assert . assertNull ( format1 )
findByStudyInstanceUID_shouldSelectStudy_whenStudyInstanceUIDMatches ( ) { org . dcm4chee . archive . entity . Study study = ( ( org . dcm4chee . archive . entity . Study ) ( org . dcm4chee . archive . entity . StudyIT . entityManager . createNamedQuery ( org . dcm4chee . archive . entity . Study . FIND_BY_STUDY_INSTAN...
org . junit . Assert . assertThat ( study . getPk ( ) , org . hamcrest . CoreMatchers . is ( 1L ) )
testLongParseSuccess ( ) { java . lang . Long num = com . rometools . rome . io . impl . NumberParser . parseLong ( "1" ) ; "<AssertPlaceHolder>" ; } parseLong ( java . lang . String ) { if ( null != str ) { try { return new java . lang . Long ( java . lang . Long . parseLong ( str . trim ( ) ) ) ; } catch ( final java...
org . junit . Assert . assertEquals ( new java . lang . Long ( 1L ) , num )
autorisatieOngeldigLeveringsautorisatieDatumAanvangInToekomst ( ) { toegangLeveringsAutorisatie . getLeveringsautorisatie ( ) . setDatumIngang ( nl . bzk . algemeenbrp . util . common . DatumUtil . morgen ( ) ) ; final boolean isGeldig = service . isAutorisatieGeldig ( toegangLeveringsAutorisatie , dienst ) ; "<AssertP...
org . junit . Assert . assertFalse ( isGeldig )
testPrettySerialize ( ) { java . lang . String tree = "<sp>(ADVP<sp>(RB<sp>ever))\n" 1 + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<sp>(NP-TMP<sp>(NN<sp>today)))\n" 1 + "<sp>(S\n" ) + "<sp>(S\n" 5 ) + "<sp>(ADVP<sp>(RB<sp>ever))\n" 0 ) + "<sp>(PP<sp>(IN<sp>of)\n" 2 ) + "<sp>...
org . junit . Assert . assertEquals ( tree , actual )
testExonOverlapNoFrameshiftOma1 ( ) { final java . lang . String outPath = runJannovarOnVCFLine ( "/sv_header.vcf" , "1\t58946843\t.\tN\t<INV>\t.\t.\tSVTYPE=INV;END=58946946" ) ; final java . lang . String expected = "1\t58946843\t.\tN\t<INV>\t.\t.\tEND=58946946;" + ( "SVANN=inversion&structural_variant&coding_transcri...
org . junit . Assert . assertEquals ( expected , actual )
testTrim ( ) { java . lang . String str = "test" ; java . lang . String dataString = org . apache . ranger . common . StringUtil . trim ( str ) ; "<AssertPlaceHolder>" ; } trim ( java . lang . String ) { return str != null ? str . trim ( ) : null ; }
org . junit . Assert . assertEquals ( str , dataString )
testUnassignRequiredRolesFromUser ( ) { long [ ] userIds = addUsers ( ) ; com . liferay . portal . kernel . service . RoleServiceUtil . addUserRoles ( userIds [ 0 ] , addRequiredRoles ( ) ) ; com . liferay . portal . kernel . model . User user = com . liferay . portal . kernel . service . UserLocalServiceUtil . getUser...
org . junit . Assert . assertEquals ( currentUserRoles . toString ( ) , initialUserRoles . size ( ) , currentUserRoles . size ( ) )
testToGetterNames_Boolean_Uppercase ( ) { java . lang . String result = makeResults ( "MYField" , true ) ; "<AssertPlaceHolder>" ; } makeResults ( java . lang . String , boolean ) { java . lang . String lombokResult = de . plushnikov . intellij . plugin . thirdparty . LombokHandlerUtil . toGetterName ( de . plushnikov ...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . equalTo ( "MYField" ) )
eb06_gone ( ) { try { org . apache . juneau . rest . client . remote . EndToEndInterfaceTest . ieb . gone ( ) ; org . junit . Assert . fail ( ) ; } catch ( org . apache . juneau . rest . client . remote . Gone e ) { "<AssertPlaceHolder>" ; } } getMessage ( ) { return msg ; }
org . junit . Assert . assertEquals ( "foo" , e . getMessage ( ) )
testGetUsedArguments ( ) { org . pentaho . di . job . JobExecutionConfiguration executionConfiguration = new org . pentaho . di . job . JobExecutionConfiguration ( ) ; org . pentaho . di . job . JobMeta jobMeta = new org . pentaho . di . job . JobMeta ( ) ; jobMeta . jobcopies = new java . util . ArrayList ( ) ; java ....
org . junit . Assert . assertEquals ( 2 , executionConfiguration . getArguments ( ) . size ( ) )
shouldReturnCompleteFeedbackEntity ( ) { feedbackService . save ( roomId , 0 , "user-id-one" ) ; feedbackService . save ( roomId , 3 , "user-id-two" ) ; de . thm . arsnova . model . Feedback expected = new de . thm . arsnova . model . Feedback ( 1 , 0 , 0 , 1 ) ; de . thm . arsnova . model . Feedback actual = feedbackS...
org . junit . Assert . assertEquals ( expected , actual )
testUserDefinedAggregateParsing ( ) { org . teiid . query . parser . Query actualCommand = ( ( org . teiid . query . parser . Query ) ( org . teiid . query . parser . QueryParser . getQueryParser ( ) . parseCommand ( "SELECT<sp>foo(ALL<sp>x,<sp>y)" , new org . teiid . query . parser . ParseInfo ( ) ) ) ) ; "<AssertPlac...
org . junit . Assert . assertEquals ( "SELECT<sp>foo(ALL<sp>x,<sp>y)" , actualCommand . toString ( ) )
queryPredicate9 ( ) { int begin = 1 ; int end = 10 ; com . aerospike . client . query . Statement stmt = new com . aerospike . client . query . Statement ( ) ; stmt . setNamespace ( args . namespace ) ; stmt . setSetName ( com . aerospike . test . sync . query . TestQueryPredExp . setName ) ; stmt . setFilter ( com . a...
org . junit . Assert . assertEquals ( 7 , count )
shouldRemoveBatchWhenAllGroupEmpty ( ) { org . openkilda . wfm . topology . flow . transactions . FlowCommandRegistry registry = new org . openkilda . wfm . topology . flow . transactions . FlowCommandRegistry ( ) ; java . util . UUID batchId = registerBatchWith2Groups ( registry ) ; registry . pollNextGroup ( org . op...
org . junit . Assert . assertTrue ( registry . isBatchEmpty ( batchId ) )
multipleGetClassCallsReturnSameValue ( ) { java . lang . Object a = new java . lang . Object ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertSame ( a . getClass ( ) , a . getClass ( ) )
testGetValueWithAttr ( ) { java . util . Map < java . lang . String , java . lang . Object > forms = new java . util . HashMap ( ) ; forms . put ( "name" , "value" ) ; new mockit . Expectations ( ) { { request . getAttribute ( RestConst . FORM_PARAMETERS ) ; result = forms ; } } ; org . apache . servicecomb . common . ...
org . junit . Assert . assertEquals ( "value" , value )
testPauseContainerEvent ( ) { java . util . Map < org . apache . hadoop . yarn . api . records . ContainerId , org . apache . hadoop . yarn . server . nodemanager . containermanager . launcher . ContainerLaunch > dummyMap = java . util . Collections . synchronizedMap ( new java . util . HashMap < org . apache . hadoop ...
org . junit . Assert . assertEquals ( 1 , dummyMap . size ( ) )
testObjectNodeStreamReaderWOGetNodeCall ( ) { org . ebayopensource . turmeric . runtime . tests . service1 . sample . types1 . MyMessage msg = org . ebayopensource . turmeric . runtime . tests . common . util . TestUtils . createTestMessage ( 1 ) ; msg . setError ( null ) ; org . ebayopensource . turmeric . runtime . c...
org . junit . Assert . assertEquals ( msg , msg1 )
forEachWith ( ) { com . gs . collections . api . collection . MutableCollection < java . lang . Integer > result = com . gs . collections . impl . set . mutable . UnifiedSet . newSet ( ) ; this . classUnderTest ( ) . forEachWith ( ( argument1 , argument2 ) -> result . add ( ( argument1 + argument2 ) ) , 0 ) ; "<AssertP...
org . junit . Assert . assertEquals ( this . classUnderTest ( ) , result )
entitiesAreSortedByDepths ( ) { com . btc . redg . runtime . EntitySorter entitySorter = new com . btc . redg . runtime . EntitySorter ( ) ; com . btc . redg . runtime . EntitySorterTest . Entity leafEntity1 = new com . btc . redg . runtime . EntitySorterTest . Entity ( "leafEntity1" ) ; com . btc . redg . runtime . En...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( leafEntity1 , leafEntity2 , leafEntity3 , nonLeaf2 , nonLeaf1 , nonLeaf3 , superDependentNode ) , sortedEntities )
findUsingGenericClientBySearch ( ) { final ca . uhn . fhir . jaxrs . server . example . Bundle results = ca . uhn . fhir . jaxrs . server . example . JaxRsPatientProviderTest . client . search ( ) . forResource ( ca . uhn . fhir . jaxrs . server . example . Patient . class ) . where ( Patient . NAME . matchesExactly ( ...
org . junit . Assert . assertEquals ( results . getEntry ( ) . size ( ) , 1 )
testReplaceNullRegex ( ) { createTabWithNaNs ( ) ; try { expectFailure ( "select<sp>replace(null,<sp>'$3<sp>$<sp>$1',<sp>'2015-03-10')<sp>from<sp>tab<sp>limit<sp>2" ) ; } catch ( com . questdb . ex . ParserException e ) { "<AssertPlaceHolder>" ; } } getPosition ( ) { return com . questdb . parser . sql . QueryError . I...
org . junit . Assert . assertEquals ( 15 , com . questdb . parser . sql . QueryError . getPosition ( ) )
testGetItemsException ( ) { boolean exceptionThrown = false ; try { wd . open ( org . finra . jtaf . ewd . widget . element . html . HtmlListTest . url ) ; org . finra . jtaf . ewd . widget . element . html . HtmlList htmlList = new org . finra . jtaf . ewd . widget . element . html . HtmlList ( brokenLocator ) ; htmlL...
org . junit . Assert . assertTrue ( exceptionThrown )
testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereNoPrimaryKeysExist ( ) { long pk1 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; long pk2 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; java . util . Set < java . io . Serializable > primaryKeys = ne...
org . junit . Assert . assertTrue ( userNotificationEvents . isEmpty ( ) )
testHasOut ( ) { zmq . Ctx ctx = zmq . ZMQ . createContext ( ) ; zmq . SocketBase pub = null ; try { pub = ctx . createSocket ( ZMQ . ZMQ_SUB ) ; int events = pub . getSocketOpt ( ZMQ . ZMQ_EVENTS ) ; "<AssertPlaceHolder>" ; } finally { zmq . ZMQ . close ( pub ) ; zmq . ZMQ . term ( ctx ) ; } } is ( int ) { return ( ge...
org . junit . Assert . assertThat ( events , org . hamcrest . CoreMatchers . is ( 0 ) )
testGetEventByUID2 ( ) { java . lang . String dummyId = "1234-5678-9012-3456" ; org . ff4j . audit . Event evt1 = new org . ff4j . audit . Event ( SOURCE_JAVA , TARGET_FEATURE , "f1" , ACTION_CREATE ) ; evt1 . setUuid ( dummyId ) ; repo . saveEvent ( evt1 ) ; java . lang . Thread . sleep ( 100 ) ; org . ff4j . audit . ...
org . junit . Assert . assertNotNull ( evt )
test39getPolicyForVersionNumber ( ) { org . apache . ranger . biz . XXDataHistDao xDataHistDao = org . mockito . Mockito . mock ( org . apache . ranger . biz . XXDataHistDao . class ) ; org . apache . ranger . biz . XXDataHist xDataHist = org . mockito . Mockito . mock ( org . apache . ranger . biz . XXDataHist . class...
org . junit . Assert . assertNull ( dbRangerPolicy )
testIsUpperLinkisync ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( true ) )
testCase64 ( ) { org . evosuite . testcase . DefaultTestCase tc = buildTestCase64 ( ) ; java . util . List < org . evosuite . symbolic . BranchCondition > branch_conditions = executeTest ( tc ) ; "<AssertPlaceHolder>" ; } size ( ) { return theTest . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , branch_conditions . size ( ) )
testConvertStringToTimestampType ( ) { java . lang . String timestampStringRepresentation = "2018/04/11<sp>16:45:15.000000000" ; java . sql . Timestamp expectedTimestamp = java . sql . Timestamp . valueOf ( "2018-04-11<sp>16:45:15.000000000" ) ; org . pentaho . di . core . row . value . ValueMetaBase base = new org . p...
org . junit . Assert . assertEquals ( expectedTimestamp , timestamp )
testPrepareAndCompareWithRealDataNullEncrypted ( ) { java . lang . String clientHelloHex = "0100005a0303a0cc405d6b7ee21942c74223e74c1de5935c1390ea0994a010cd8d0853fc2c87000004003b00ff0100002d00230000000d0020001e060106020603050105020503040104020403030103020303020102020203000f000101" ; java . lang . String serverHelloHex ...
org . junit . Assert . assertArrayEquals ( de . rub . nds . modifiablevariable . util . ArrayConverter . hexStringToByteArray ( finishedHex ) , protocolMessageBytes )
getSubcsriptionsForManagersWithPagination ( ) { java . util . Set < org . oscm . internal . types . enumtypes . SubscriptionStatus > states = java . util . EnumSet . of ( SubscriptionStatus . ACTIVE , SubscriptionStatus . PENDING , SubscriptionStatus . EXPIRED , SubscriptionStatus . PENDING_UPD , SubscriptionStatus . S...
org . junit . Assert . assertNotNull ( list )
testSetIORProxyHostToIP ( ) { java . util . Properties props = new java . util . Properties ( ) ; props . setProperty ( "jacorb.ior_proxy_host" , "192.168.1.1" ) ; final java . lang . String profileDetails = getProfileDetails ( props ) ; "<AssertPlaceHolder>" ; } indexOf ( java . lang . Object ) { cmpr . element ( obj ...
org . junit . Assert . assertTrue ( profileDetails , ( ( profileDetails . indexOf ( "192.168.1.1" ) ) >= 0 ) )
testGet ( ) { com . streamsets . pipeline . api . impl . TypeSupport tt = new com . streamsets . pipeline . api . impl . TestTypeSupport . TTypeSupport ( ) ; java . lang . Object o = new java . lang . Object ( ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { return ( ( T ) ( com . streamsets . pipeline . ap...
org . junit . Assert . assertSame ( o , tt . get ( o ) )
nietUitvoerbaarAutorisatiesNull ( ) { org . springframework . test . util . ReflectionTestUtils . setField ( selectie , "selectietaakAutorisatieList" , null ) ; "<AssertPlaceHolder>" ; } isUitvoerbaar ( ) { org . junit . Assert . assertTrue ( selectie . isUitvoerbaar ( ) ) ; }
org . junit . Assert . assertFalse ( selectie . isUitvoerbaar ( ) )
testNullIsNull ( ) { java . util . Map < java . lang . String , java . lang . String > result = serializer . deserialize ( null ) ; "<AssertPlaceHolder>" ; } deserialize ( java . io . InputStream ) { return org . apache . nifi . persistence . TemplateDeserializer . deserialize ( new javax . xml . transform . stream . S...
org . junit . Assert . assertNull ( result )
testDisablesBadgeNumber ( ) { com . eclipsesource . tabris . internal . AppImpl app = new com . eclipsesource . tabris . internal . AppImpl ( ) ; app . setBadgeNumber ( SWT . NONE ) ; "<AssertPlaceHolder>" ; } getBadgeNumber ( ) { return badgeNumber ; }
org . junit . Assert . assertEquals ( 0 , app . getBadgeNumber ( ) )
isNotWriteableForTypeNotAnnotatedWithXmlRootElement ( ) { "<AssertPlaceHolder>" ; } isWriteable ( java . lang . Class , java . lang . reflect . Type , java . lang . annotation . Annotation [ ] , javax . ws . rs . core . MediaType ) { return type . isAssignableFrom ( org . everrest . sample . book . Book . class ) ; }
org . junit . Assert . assertFalse ( writer . isWriteable ( java . lang . String . class , null , null , null ) )
testAttributeTypeAsNumber ( ) { final java . lang . Object obj = new software . amazon . awssdk . services . dynamodb . pojos . AutoKeyAndVal < java . lang . String > ( ) { @ software . amazon . awssdk . services . dynamodb . datamodeling . DynamoDbTyped ( software . amazon . awssdk . services . dynamodb . datamodeling...
org . junit . Assert . assertEquals ( DynamoDbAttributeType . N , val . attributeType ( ) )
testPrepareWithClosedEntityGroup ( ) { this . parent . close ( ) ; com . alibaba . wasp . fserver . SplitTransaction st = new com . alibaba . wasp . fserver . SplitTransaction ( this . parent , com . alibaba . wasp . fserver . TestSplitTransaction . GOOD_SPLIT_ROW , com . alibaba . wasp . fserver . TestSplitTransaction...
org . junit . Assert . assertFalse ( st . prepare ( ) )
validate13606ResponseAgainstSchema ( ) { java . lang . StringBuilder xml13606Response = new java . lang . StringBuilder ( ) ; try ( @ se . skl . skltpservices . npoadapter . mapper . SuppressWarnings ( "resource" ) java . util . Scanner inputStringScanner = new java . util . Scanner ( getClass ( ) . getResourceAsStream...
org . junit . Assert . assertTrue ( true )
listenersFiredInRegisteredOrder ( ) { com . vaadin . flow . dom . Element element = com . vaadin . flow . dom . ElementFactory . createDiv ( ) ; java . util . List < java . lang . Integer > eventOrder = new java . util . ArrayList ( ) ; for ( int i = 0 ; i < 10 ; i ++ ) { final int j = i ; element . addEventListener ( ...
org . junit . Assert . assertArrayEquals ( new java . lang . Object [ ] { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } , eventOrder . toArray ( ) )