input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testGetBagSubSchema ( ) { org . apache . pig . ResourceSchema . ResourceFieldSchema [ ] bagSubFieldSchemas = new org . apache . pig . ResourceSchema . ResourceFieldSchema [ 1 ] ; bagSubFieldSchemas [ 0 ] = new org . apache . pig . ResourceSchema . ResourceFieldSchema ( ) . setName ( "innertuple" ) . setDescription ( "T...
org . junit . Assert . assertEquals ( expected . toString ( ) , actual . toString ( ) )
testGetIpAddress ( ) { java . lang . String ipAddress = provider . getIPAddress ( ) ; java . lang . String expectedIpAddress = java . net . InetAddress . getLocalHost ( ) . getCanonicalHostName ( ) ; "<AssertPlaceHolder>" ; } getCanonicalHostName ( ) { return canonicalHostName ; }
org . junit . Assert . assertEquals ( expectedIpAddress , ipAddress )
testIsReadOnly04 ( ) { javax . el . BeanNameELResolver resolver = createBeanNameELResolver ( ) ; javax . el . ELContext context = new javax . el . StandardELContext ( javax . el . ELManager . getExpressionFactory ( ) ) ; resolver . isReadOnly ( context , new java . lang . Object ( ) , javax . el . TestBeanNameELResolve...
org . junit . Assert . assertFalse ( context . isPropertyResolved ( ) )
testPriorityLevel25 ( ) { int n = jannovar . common . VariantType . priorityLevel ( VariantType . ERROR ) ; "<AssertPlaceHolder>" ; } priorityLevel ( jannovar . common . VariantType ) { switch ( vt ) { case FS_DELETION : case FS_INSERTION : case NON_FS_SUBSTITUTION : case FS_SUBSTITUTION : case MISSENSE : case NON_FS_D...
org . junit . Assert . assertEquals ( 10 , n )
getVersionGets_pattern1 ( ) { java . lang . String validString = "$iothub/twin/res/$version=7" ; com . microsoft . azure . sdk . iot . device . transport . mqtt . TopicParser testParser = new com . microsoft . azure . sdk . iot . device . transport . mqtt . TopicParser ( validString ) ; java . lang . String status = mo...
org . junit . Assert . assertNull ( status )
testFindByPrimaryKeyExisting ( ) { com . liferay . portal . security . audit . storage . model . AuditEvent newAuditEvent = addAuditEvent ( ) ; com . liferay . portal . security . audit . storage . model . AuditEvent existingAuditEvent = _persistence . findByPrimaryKey ( newAuditEvent . getPrimaryKey ( ) ) ; "<AssertPl...
org . junit . Assert . assertEquals ( existingAuditEvent , newAuditEvent )
testDynAnyTypeCode ( ) { java . lang . String msg ; org . omg . CORBA . TypeCode tc = null ; org . omg . DynamicAny . DynSequence dynAny = null ; tc = orb . get_primitive_tc ( TCKind . tk_long ) ; tc = orb . create_sequence_tc ( Bound . value , tc ) ; dynAny = createDynAnyFromTypeCode ( tc ) ; msg = "Incorrect<sp>TypeC...
org . junit . Assert . assertTrue ( msg , dynAny . type ( ) . equal ( tc ) )
testCanSerialiseEdgeElement ( ) { final uk . gov . gchq . gaffer . data . element . Edge edge = new uk . gov . gchq . gaffer . data . element . Edge . Builder ( ) . group ( TestGroups . EDGE ) . source ( "source" ) . dest ( "destination" ) . directed ( true ) . build ( ) ; final byte [ ] serialisedEdge = elementSeriali...
org . junit . Assert . assertEquals ( edge , deserialisedElement )
testParseObjectIdInArray ( ) { final java . lang . Object doc = com . allanbank . mongodb . bson . json . Json . parse ( "{<sp>a<sp>:<sp>[ObjectId('4e9d87aa5825b60b637815a6')]<sp>}" ) ; final com . allanbank . mongodb . bson . builder . DocumentBuilder b = com . allanbank . mongodb . bson . builder . BuilderFactory . s...
org . junit . Assert . assertEquals ( b . build ( ) , doc )
testStoresSku ( ) { com . eclipsesource . tabris . tracking . internal . piwik . model . ecommerce . EcommerceItem ecommerceItem = new com . eclipsesource . tabris . tracking . internal . piwik . model . ecommerce . EcommerceItem ( "foo" ) ; ecommerceItem . setSku ( "foo" ) ; "<AssertPlaceHolder>" ; } getSku ( ) { retu...
org . junit . Assert . assertEquals ( "foo" , ecommerceItem . getSku ( ) )
testIsNotEmpty01 ( ) { org . terasoluna . gfw . common . message . ResultMessages messages = new org . terasoluna . gfw . common . message . ResultMessages ( ( ( org . terasoluna . gfw . common . message . ResultMessageType ) ( ERROR ) ) ) . add ( "foo" ) ; "<AssertPlaceHolder>" ; } isNotEmpty ( ) { return ! ( list . i...
org . junit . Assert . assertThat ( messages . isNotEmpty ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testMetaOnlyQueryResultHasCorrectMeasuresWhenSomeAggregationsAreIncompatible ( ) { io . datakernel . cube . http . CubeQuery queryAffectingNonCompatibleAggregations = io . datakernel . cube . http . CubeQuery . create ( ) . withAttributes ( "date" , "advertiser" ) . withMeasures ( "impressions" , "incompatible_measure"...
org . junit . Assert . assertEquals ( expectedMeasures , metadata . getMeasures ( ) )
extractVariablesTest ( ) { org . s1ck . gdl . model . predicates . expressions . Comparison a = new org . s1ck . gdl . model . predicates . expressions . Comparison ( new org . s1ck . gdl . model . comparables . PropertySelector ( "a" , "label" ) , org . s1ck . gdl . utils . Comparator . EQ , new org . s1ck . gdl . mod...
org . junit . Assert . assertEquals ( reference , not . getVariables ( ) )
getKey ( ) { org . candlepin . policy . ValidationWarning vw = new org . candlepin . policy . ValidationWarning ( "foobarbaz" ) ; "<AssertPlaceHolder>" ; } getResourceKey ( ) { return resourceKey ; }
org . junit . Assert . assertEquals ( "foobarbaz" , vw . getResourceKey ( ) )
getDeviceUDIDTest ( ) { java . lang . String deviceSerial = driver . getSessionDetail ( "deviceUDID" ) . toString ( ) ; "<AssertPlaceHolder>" ; } toString ( ) { return getWrappedElement ( ) . toString ( ) ; }
org . junit . Assert . assertNotNull ( deviceSerial )
resolveValidNetworkId_id_deterministic ( ) { org . oscm . app . ror . client . LPlatformClient lPlatformClient = mock ( org . oscm . app . ror . client . LPlatformClient . class ) ; org . oscm . app . ror . data . LPlatformConfiguration lPlatformConfiguration = mock ( org . oscm . app . ror . data . LPlatformConfigurat...
org . junit . Assert . assertEquals ( NETWORKID1 , resolvedId )
testParseHintComment ( ) { java . lang . String sql = "SELECT<sp>/*+<sp>FIRST_ROWS<sp>*/<sp>*<sp>FROM<sp>emp" ; jp . co . future . uroborosql . parser . SqlParser parser = new jp . co . future . uroborosql . parser . SqlParserImpl ( sql ) ; jp . co . future . uroborosql . context . SqlContext ctx = sqlContextFactory . ...
org . junit . Assert . assertEquals ( "1" , sql , ctx . getExecutableSql ( ) )
testEqualsReflexivity ( ) { java . lang . String tableIdentifier1 = "table1" ; java . lang . String columnIdentifier1 = "column1" ; de . metanome . algorithm_integration . ColumnIdentifier identifier1 = new de . metanome . algorithm_integration . ColumnIdentifier ( tableIdentifier1 , columnIdentifier1 ) ; "<AssertPlace...
org . junit . Assert . assertEquals ( identifier1 , identifier1 )
testSetEffectiveClientRequestPolicy ( ) { engine = new org . apache . cxf . ws . policy . PolicyEngineImpl ( ) ; org . apache . cxf . service . model . EndpointInfo ei = createMockEndpointInfo ( ) ; org . apache . cxf . service . model . BindingOperationInfo boi = createMockBindingOperationInfo ( ) ; org . apache . cxf...
org . junit . Assert . assertSame ( effectivePolicy , engine . getEffectiveClientRequestPolicy ( ei , boi , ( ( org . apache . cxf . transport . Conduit ) ( null ) ) , msg ) )
testProjectHook ( ) { org . gitlab4j . api . models . ProjectHook hook = org . gitlab4j . api . JsonUtils . unmarshalResource ( org . gitlab4j . api . models . ProjectHook . class , "hook.json" ) ; "<AssertPlaceHolder>" ; } compareJson ( T , java . lang . String ) { java . io . InputStreamReader reader = new java . io ...
org . junit . Assert . assertTrue ( org . gitlab4j . api . JsonUtils . compareJson ( hook , "hook.json" ) )
testCannotAddNullDependency ( ) { final org . springframework . roo . project . maven . Pom pom = getMinimalPom ( org . springframework . roo . project . maven . PomTest . POM ) ; "<AssertPlaceHolder>" ; } canAddDependency ( org . springframework . roo . project . Dependency , boolean ) { return ( ( newDependency != nu...
org . junit . Assert . assertFalse ( pom . canAddDependency ( null , false ) )
testDeleteSegmentsEntry ( ) { com . liferay . segments . model . SegmentsEntry segmentsEntry = com . liferay . segments . test . util . SegmentsTestUtil . addSegmentsEntry ( _group . getGroupId ( ) ) ; _segmentsEntryLocalService . deleteSegmentsEntry ( segmentsEntry . getSegmentsEntryId ( ) ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertEquals ( 0 , _segmentsEntryLocalService . getSegmentsEntriesCount ( _group . getGroupId ( ) , false ) )
testTroubleNumbers ( ) { int [ ] troubleNumbers = new int [ ] { 14 , 1 , 30 , 31 , 4 , 21 , 8 , 37 , 39 } ; zemberek . core . collections . UIntMap < java . lang . String > map = new zemberek . core . collections . UIntMap ( ) ; for ( int number : troubleNumbers ) { map . put ( number , java . lang . String . valueOf (...
org . junit . Assert . assertEquals ( "15" , map . get ( 15 ) )
testPatentMetricAddSuccess ( ) { com . alibaba . craftsman . dto . PatentMetricAddCmd patentMetricAddCmd = new com . alibaba . craftsman . dto . PatentMetricAddCmd ( ) ; patentMetricAddCmd . setOperater ( "jack<sp>ma" ) ; com . alibaba . craftsman . dto . clientobject . PatentMetricCO patentMetricCO = new com . alibaba...
org . junit . Assert . assertTrue ( response . isSuccess ( ) )
testManageBarrierResultsShouldBeOK ( ) { java . lang . String barrierPath = "/stratio/decision/barrier" ; when ( nodeReply . getErrorCode ( ) ) . thenReturn ( ReplyCode . KO_GENERAL_ERROR . getCode ( ) ) ; when ( nodeReply . getDescription ( ) ) . thenReturn ( ReplyCode . KO_GENERAL_ERROR . getMessage ( ) ) ; com . str...
org . junit . Assert . assertEquals ( ReplyCode . KO_GENERAL_ERROR . getCode ( ) , reply . getErrorCode ( ) )
testGetUnknownEvent ( ) { com . zsmartsystems . zigbee . dongle . telegesis . internal . protocol . TelegesisEvent event = com . zsmartsystems . zigbee . dongle . telegesis . internal . TelegesisEventFactory . getTelegesisFrame ( stringToIntArray ( "UNKNOWN:1234,1234567890ABCDEF" ) ) ; "<AssertPlaceHolder>" ; } stringT...
org . junit . Assert . assertNull ( event )
responseIsPermissionDenied ( ) { final java . lang . Throwable permissionDenied = new com . google . api . client . googleapis . json . GoogleJsonResponseException ( new com . google . api . client . http . HttpResponseException . Builder ( 403 , "Forbidden" , new com . google . api . client . http . HttpHeaders ( ) ) ...
org . junit . Assert . assertThat ( com . spotify . styx . util . GcpUtil . isPermissionDenied ( permissionDenied ) , org . hamcrest . Matchers . is ( true ) )
testUnionWithBothEmptyAuthorizations ( ) { "<AssertPlaceHolder>" ; } union ( java . lang . Iterable , java . lang . Iterable ) { java . util . LinkedList < byte [ ] > aggregatedAuthorizations = com . google . common . collect . Lists . newLinkedList ( ) ; datawave . security . util . AuthorizationsUtil . addTo ( aggreg...
org . junit . Assert . assertEquals ( new org . apache . accumulo . core . security . Authorizations ( ) , datawave . security . util . AuthorizationsUtil . union ( new org . apache . accumulo . core . security . Authorizations ( ) , new org . apache . accumulo . core . security . Authorizations ( ) ) )
canWriteTest ( ) { org . kaaproject . kaa . server . operations . service . filter . el . GenericRecordPropertyAccessor accessor = new org . kaaproject . kaa . server . operations . service . filter . el . GenericRecordPropertyAccessor ( ) ; "<AssertPlaceHolder>" ; } canWrite ( org . springframework . expression . Eval...
org . junit . Assert . assertFalse ( accessor . canWrite ( null , null , null ) )
shouldGetCorrectParentPathElement2 ( ) { final org . openspotlight . federation . domain . artifact . PathElement pathElement = org . openspotlight . federation . domain . artifact . PathElement . createFromPathString ( "/a/b/c/d/e" ) ; final org . openspotlight . federation . domain . artifact . PathElement parentPath...
org . junit . Assert . assertThat ( pathElement . getParent ( ) , org . hamcrest . core . Is . is ( parentPathElement ) )
testIsKeyConstraint ( ) { com . picocontainer . gems . constraints . Constraint c = new com . picocontainer . gems . constraints . IsKey ( com . picocontainer . testmodel . SimpleTouchable . class ) ; com . picocontainer . ComponentAdapter < com . picocontainer . testmodel . DependsOnTouchable > forAdapter = container ...
org . junit . Assert . assertEquals ( com . picocontainer . testmodel . SimpleTouchable . class , inst . getClass ( ) )
countShouldUseConjuctionBetweenAllParameters ( ) { java . lang . String sku = "sku" ; java . lang . String subscriptionId = "subscriptionId" ; java . lang . String poolContract = "contract" ; org . candlepin . model . Product skuProduct = createTransientMarketingProduct ( sku ) ; skuProduct = createProduct ( skuProduct...
org . junit . Assert . assertEquals ( 1 , count )
testWholeFileInvalidRecord ( ) { com . streamsets . pipeline . stage . destination . s3 . AmazonS3Target amazonS3Target = createS3targetWithWholeFile ( ) ; com . streamsets . pipeline . sdk . TargetRunner targetRunner = new com . streamsets . pipeline . sdk . TargetRunner . Builder ( com . streamsets . pipeline . stage...
org . junit . Assert . assertEquals ( 1 , targetRunner . getErrorRecords ( ) . size ( ) )
testIsReadOnly_Gets_Result_From_Value_Pattern ( ) { mmarquee . automation . AutomationElement element = org . mockito . Mockito . mock ( mmarquee . automation . AutomationElement . class ) ; mmarquee . automation . pattern . Value value = org . mockito . Mockito . mock ( mmarquee . automation . pattern . Value . class ...
org . junit . Assert . assertTrue ( val )
mockObject ( ) { com . eclipsesource . json . JsonObject jsonObject = org . mockito . Mockito . mock ( com . eclipsesource . json . JsonObject . class ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( jsonObject )
testIsNietIngezetene ( ) { org . mockito . Mockito . when ( bral0106 . isIngezetene ( org . mockito . Matchers . any ( nl . bzk . brp . model . logisch . kern . Persoon . class ) ) ) . thenReturn ( false ) ; final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > resultaat = brby0913 . voerRegelUi...
org . junit . Assert . assertEquals ( 1 , resultaat . size ( ) )
testInitialiseWithClassName ( ) { org . mule . runtime . core . api . object . AbstractObjectFactory factory = getUninitialisedObjectFactory ( ) ; factory . setObjectClassName ( java . lang . Object . class . getName ( ) ) ; ( ( org . mule . runtime . core . internal . context . MuleContextWithRegistry ) ( muleContext ...
org . junit . Assert . assertNotNull ( factory . getInstance ( muleContext ) )
testDataIsImportedFromShapefileWithFilter ( ) { try { configuration . setEcqlFilter ( "LAND_KM<sp><<sp>3000<sp>OR<sp>STATE_NAME<sp>=<sp>'California'" ) ; executeAction ( "shp" ) ; "<AssertPlaceHolder>" ; } catch ( it . geosolutions . geobatch . flow . event . action . ActionException e ) { org . junit . Assert . fail (...
org . junit . Assert . assertTrue ( ( ( getRecordCountFromDatabase ( "test" ) ) == 3 ) )
testGetDPIReturnsSafeCopy ( ) { org . eclipse . swt . graphics . Point dpi1 = device . getDPI ( ) ; dpi1 . x = - 123 ; dpi1 . y = - 456 ; org . eclipse . swt . graphics . Point dpi2 = device . getDPI ( ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) return true ; if ( obj == null ...
org . junit . Assert . assertFalse ( dpi1 . equals ( dpi2 ) )
testLista ( ) { log . debug ( "Debiera<sp>monstrar<sp>lista<sp>ordenes<sp>de<sp>pago" ) ; mx . edu . um . mateo . contabilidad . web . Usuario usuario = this . obtieneUsuario ( ) ; this . authenticate ( usuario , usuario . getPassword ( ) , new java . util . ArrayList < org . springframework . security . core . Granted...
org . junit . Assert . assertNotNull ( orden . getId ( ) )
testUnexpectedException ( ) { int rc = run ( "test" , "--throw-unknown" ) ; verify ( console ) . error ( startsWith ( "Unknown<sp>error" ) , eq ( "--throw-unknown<sp>was<sp>set" ) ) ; "<AssertPlaceHolder>" ; } run ( org . slf4j . Logger , java . lang . String [ ] ) { return org . kitesdk . cli . TestUtil . run ( consol...
org . junit . Assert . assertEquals ( 1 , rc )
testChildLayoutFriendlyURL ( ) { com . liferay . portal . kernel . service . ServiceContext serviceContext = com . liferay . portal . kernel . test . util . ServiceContextTestUtil . getServiceContext ( ) ; com . liferay . portal . kernel . model . UserGroup userGroup = com . liferay . portal . kernel . service . UserGr...
org . junit . Assert . assertNotNull ( actualURL )
testFromOidNull ( ) { ca . uhn . fhir . model . primitive . UriDt uri = ca . uhn . fhir . model . primitive . UriDt . fromOid ( null ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return myValue ; }
org . junit . Assert . assertEquals ( null , uri . getValue ( ) )
testProcessSongBadLine ( ) { java . lang . String testDate = "1990" ; org . bff . javampd . processor . DateTagProcessor dateTagProcessor = new org . bff . javampd . processor . DateTagProcessor ( ) ; org . bff . javampd . song . MPDSong song = new org . bff . javampd . song . MPDSong ( "testFile" , "testName" ) ; java...
org . junit . Assert . assertNull ( song . getYear ( ) )
booleanWrapper ( ) { model . setMyBoolean ( true ) ; com . google . appengine . api . datastore . Entity entity = meta . modelToEntity ( model ) ; com . google . appengine . api . datastore . Key key = ds . put ( entity ) ; com . google . appengine . api . datastore . Entity entity2 = ds . get ( key ) ; org . slim3 . d...
org . junit . Assert . assertThat ( model2 . getMyBoolean ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . kernel . model . Layout . class , _dynamicQueryClassLoader ) ; dynamicQuery . add ( com . lifera...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
defaultOnlyFilesIsFalse ( ) { de . taimos . pipeline . aws . S3FindFilesStep step = new de . taimos . pipeline . aws . S3FindFilesStep ( "my-bucket" , false , false ) ; "<AssertPlaceHolder>" ; } isOnlyFiles ( ) { return this . onlyFiles ; }
org . junit . Assert . assertFalse ( step . isOnlyFiles ( ) )
testJavaKeyWordIdentifier ( ) { javax . el . ExpressionFactory factory = javax . el . ExpressionFactory . newInstance ( ) ; javax . el . ELContext context = new org . apache . jasper . el . ELContextImpl ( factory ) ; org . apache . el . parser . TesterBeanA beanA = new org . apache . el . parser . TesterBeanA ( ) ; be...
org . junit . Assert . assertNotNull ( e )
testFindByPrimaryKeyExisting ( ) { com . liferay . invitation . invite . members . model . MemberRequest newMemberRequest = addMemberRequest ( ) ; com . liferay . invitation . invite . members . model . MemberRequest existingMemberRequest = _persistence . findByPrimaryKey ( newMemberRequest . getPrimaryKey ( ) ) ; "<As...
org . junit . Assert . assertEquals ( existingMemberRequest , newMemberRequest )
testGetVersionNumber ( ) { "<AssertPlaceHolder>" ; } getVersionNumber ( ) { return 3 ; }
org . junit . Assert . assertTrue ( ( ( props . getVersionNumber ( ) ) > 0 ) )
testBuildGetCount ( ) { com . sap . core . odata . api . processor . ODataResponse objODataResponse = null ; try { objODataResponse = com . sap . core . odata . processor . core . jpa . ODataJPAResponseBuilder . build ( 1 , getODataJPAContext ( ) ) ; } catch ( com . sap . core . odata . processor . api . jpa . exceptio...
org . junit . Assert . assertNotNull ( objODataResponse )
testReadFileSetOk ( ) { for ( nl . lxtreme . ols . test . data . File dataFile : this . dataFiles ) { System . err . println ( ( "Reading<sp>" + dataFile ) ) ; final nl . lxtreme . ols . test . data . FileReader reader = new nl . lxtreme . ols . test . data . FileReader ( dataFile ) ; try { nl . lxtreme . ols . test . ...
org . junit . Assert . assertNotNull ( this . dataSet . getCapturedData ( ) )
testMutate ( ) { org . apache . commons . math . genetics . BinaryMutation mutation = new org . apache . commons . math . genetics . BinaryMutation ( ) ; for ( int i = 0 ; i < 20 ; i ++ ) { org . apache . commons . math . genetics . DummyBinaryChromosome original = new org . apache . commons . math . genetics . DummyBi...
org . junit . Assert . assertEquals ( 1 , numDifferent )
testGetDpdkLatestPortNumberUsedExistingDpdkPorts ( ) { org . mockito . Mockito . when ( com . cloud . utils . script . Script . runSimpleBashScript ( org . mockito . Matchers . anyString ( ) ) ) . thenReturn ( ( ( OvsVifDriver . DPDK_PORT_PREFIX ) + ( java . lang . String . valueOf ( com . cloud . hypervisor . kvm . re...
org . junit . Assert . assertEquals ( com . cloud . hypervisor . kvm . resource . OvsVifDriverTest . dpdkPortNumber , driver . getDpdkLatestPortNumberUsed ( ) )
mustUnbiasObjectsNoLongerClaimed ( ) { createPool ( ) ; stormpot . Poolable obj = pool . claim ( stormpot . PoolTest . longTimeout ) ; obj . release ( ) ; java . util . concurrent . atomic . AtomicReference < stormpot . GenericPoolable > ref = new java . util . concurrent . atomic . AtomicReference ( ) ; join ( forkFut...
org . junit . Assert . assertThat ( ref . get ( ) , is ( obj ) )
testProxyPostRequest ( ) { org . apache . ambari . server . proxy . ProxyService ps = new org . apache . ambari . server . proxy . ProxyService ( ) ; org . apache . ambari . server . controller . internal . URLStreamProvider streamProviderMock = org . powermock . api . easymock . PowerMock . createNiceMock ( org . apac...
org . junit . Assert . assertSame ( resultForPostRequest , responseMock )
testGetPropertyExpanding ( ) { java . lang . String expandingValue = propertyReference ( org . dcache . util . configuration . ConfigurationPropertiesTests . SIMPLE_PROPERTY_NAME ) ; _standardProperties . setProperty ( org . dcache . util . configuration . ConfigurationPropertiesTests . EXPANDING_PROPERTY_NAME , expand...
org . junit . Assert . assertEquals ( expandingValue , _standardProperties . getProperty ( org . dcache . util . configuration . ConfigurationPropertiesTests . EXPANDING_PROPERTY_NAME ) )
testIndexPutWithValueGreaterThanLength ( ) { java . lang . String DIR = org . apache . hadoop . hbase . index . coprocessor . regionserver . TestIndexRegionObserver . UTIL . getDataTestDir ( "TestStore" ) . toString ( ) ; org . apache . hadoop . fs . Path basedir = new org . apache . hadoop . fs . Path ( ( DIR + "TestI...
org . junit . Assert . assertTrue ( returnVal )
shouldNotInvokeGeoLiteApiIfCountryListsAreEmpty ( ) { given ( settings . getProperty ( ProtectionSettings . COUNTRIES_WHITELIST ) ) . willReturn ( java . util . Collections . emptyList ( ) ) ; given ( settings . getProperty ( ProtectionSettings . COUNTRIES_BLACKLIST ) ) . willReturn ( java . util . Collections . emptyL...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . equalTo ( true ) )
testTimeout ( ) { final org . apache . hadoop . hdfs . server . datanode . checker . List < org . apache . hadoop . hdfs . server . datanode . checker . FsVolumeSpi > volumes = org . apache . hadoop . hdfs . server . datanode . checker . Collections . singletonList ( org . apache . hadoop . hdfs . server . datanode . c...
org . junit . Assert . assertThat ( failedVolumes . size ( ) , org . hamcrest . core . Is . is ( 1 ) )
testDismissCache_xor ( ) { org . roaringbitmap . FastRankRoaringBitmap fast = prepareFastWithComputedCache ( ) ; fast . xor ( new org . roaringbitmap . RoaringBitmap ( ) ) ; "<AssertPlaceHolder>" ; } isCacheDismissed ( ) { return ! ( cumulatedCardinalitiesCacheIsValid ) ; }
org . junit . Assert . assertTrue ( fast . isCacheDismissed ( ) )
testNameNodeAdded ( ) { final org . apache . oozie . fluentjob . api . action . MapReduceActionBuilder builder = getBuilderInstance ( ) ; builder . withNameNode ( org . apache . oozie . fluentjob . api . action . TestMapReduceActionBuilder . NAME_NODE ) ; final org . apache . oozie . fluentjob . api . action . MapReduc...
org . junit . Assert . assertEquals ( org . apache . oozie . fluentjob . api . action . TestMapReduceActionBuilder . NAME_NODE , mrAction . getNameNode ( ) )
testLessThanRecordThresholdCount ( ) { int thresholdCount = 5 ; int uploadCheckPeriod = 2000 ; org . kaaproject . kaa . client . logging . LogStorageStatus logStorageStatus = org . mockito . Mockito . mock ( org . kaaproject . kaa . client . logging . LogStorageStatus . class ) ; org . mockito . Mockito . when ( logSto...
org . junit . Assert . assertEquals ( strategy . checkUploadNeeded ( logStorageStatus ) , LogUploadStrategyDecision . NOOP )
testArraySort_RandomArray ( ) { int [ ] numbers = new int [ ] { 12 , 3 , 4 , 1 } ; int [ ] expected = new int [ ] { 1 , 3 , 4 , 12 } ; java . util . Arrays . sort ( numbers ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertArrayEquals ( expected , numbers )
testFullAuthorizationListChangedReceivedEvent ( ) { listener . handle ( new io . motown . operatorapi . viewmodel . AuthorizationListChangedEvent ( CHARGING_STATION_ID , LIST_VERSION , AuthorizationListUpdateType . FULL , IDENTIFYING_TOKENS , IDENTITY_CONTEXT ) ) ; io . motown . operatorapi . viewmodel . persistence . ...
org . junit . Assert . assertTrue ( ( ( cs . getLocalAuths ( ) . size ( ) ) == ( io . motown . operatorapi . viewmodel . IDENTIFYING_TOKENS . size ( ) ) ) )
testFromJson ( ) { com . fasterxml . jackson . databind . JsonNode jsonNode = com . fasterxml . jackson . databind . node . JsonNodeFactory . withExactBigDecimals ( true ) . numberNode ( BigDecimal . TEN ) ; java . lang . Object fromJson = bigDecimalType . fromJson ( jsonNode ) ; "<AssertPlaceHolder>" ; } fromJson ( co...
org . junit . Assert . assertTrue ( ( fromJson instanceof java . math . BigDecimal ) )
isNullOrWhiteSpaceNotEmpty ( ) { java . lang . String value = "XXX" ; java . lang . Boolean expResult = false ; new mockit . Expectations ( ) { com . microsoft . azure . sdk . iot . deps . util . Tools tools ; { tools . isNullOrEmpty ( anyString ) ; } } ; java . lang . Boolean result = com . microsoft . azure . sdk . i...
org . junit . Assert . assertEquals ( expResult , result )
jsonFromPositionShouldReturnJSON ( ) { org . apache . storm . tuple . Tuple tuple = mock ( org . apache . storm . tuple . Tuple . class ) ; when ( tuple . getBinary ( 1 ) ) . thenReturn ( "{\"field\":\"value\"}" . getBytes ( org . apache . metron . common . message . UTF_8 ) ) ; org . json . simple . JSONObject expecte...
org . junit . Assert . assertEquals ( expected , messageGetStrategy . get ( tuple ) )
testCleanPasswordFromEncodedRequestString ( ) { final java . lang . String input = "name=SS1&provider=SMB&zoneid=5a60af2b-3025-4f2a-9ecc-8e33bf2b94e3&url=cifs%3A%2F%2F10.102.192" + ".150%2FSMB-Share%2Fsowmya%2Fsecondary%3Fuser%3Dsowmya%26password%3DXXXXX%40123%26domain%3DBLR" ; final java . lang . String expected = "na...
org . junit . Assert . assertEquals ( result , expected )
testCreateServiceWithExistingId ( ) { java . lang . String id = "message-service" ; java . lang . String serviceClass = flex . messaging . services . MessageService . class . getName ( ) ; broker . createService ( id , serviceClass ) ; try { broker . createService ( id , serviceClass ) ; org . junit . Assert . fail ( "...
org . junit . Assert . assertEquals ( ce . getNumber ( ) , error )
testSearchPathSpecified ( ) { folder . newFile ( "aatest.xml" ) ; java . io . File [ ] files = sut . getFiles ( "samplePrefix.xml" , "test.xml" , folder . getRoot ( ) . getAbsolutePath ( ) ) ; "<AssertPlaceHolder>" ; } getRoot ( ) { return root ; }
org . junit . Assert . assertEquals ( 1 , files . length )
testFindUserWithIllegalArgument ( ) { java . lang . String USER = "test" ; createUser ( USER ) ; org . exoplatform . services . organization . User user = userHandler_ . findUserByName ( null ) ; "<AssertPlaceHolder>" ; user = userHandler_ . findUserByName ( "sdg*Ssd\"sd\'sd%" ) ; org . junit . Assert . assertTrue ( ( ...
org . junit . Assert . assertTrue ( ( user == null ) )
testAppendSlashes ( ) { java . util . regex . Pattern p = java . util . regex . Pattern . compile ( "\\\\" ) ; java . util . regex . Matcher m = p . matcher ( "one\\cat\\two\\cats\\in\\the\\yard" ) ; java . lang . StringBuffer sb = new java . lang . StringBuffer ( ) ; while ( m . find ( ) ) { m . appendReplacement ( sb...
org . junit . Assert . assertEquals ( "one\\cat\\two\\cats\\in\\the\\yard" , sb . toString ( ) )
testOrderByEliminationWithPrimaryKey ( ) { sqlText = "select<sp>*<sp>from<sp>(select<sp>a1,<sp>a2<sp>from<sp>t1,<sp>t2<sp>where<sp>a1=a2)<sp>dt<sp>order<sp>by<sp>a1<sp>{limit<sp>10}" ; expected = "select<sp>a1,b1<sp>from<sp>t1<sp>left<sp>join<sp>t2<sp>--splice-properties<sp>index=null,<sp>joinStrategy=merge\n<sp>on<sp>...
org . junit . Assert . assertEquals ( expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) )
createUser ( ) { logger . debug ( "create<sp>User" ) ; java . lang . Long id = userDAO . create ( new fr . valtech . angularspring . app . domain . User ( "N" , "L" ) ) ; logger . debug ( ( "User<sp>created<sp>-<sp>id<sp>:<sp>" + id ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( id )
testUpdate ( ) { java . util . List < software . amazon . awssdk . services . dynamodb . mapper . NumberSetAttributeClass > objs = new java . util . ArrayList < software . amazon . awssdk . services . dynamodb . mapper . NumberSetAttributeClass > ( ) ; for ( int i = 0 ; i < 5 ; i ++ ) { software . amazon . awssdk . ser...
org . junit . Assert . assertEquals ( replacement , util . load ( software . amazon . awssdk . services . dynamodb . mapper . NumberSetAttributeClass . class , obj . getKey ( ) ) )
getArrayFirstDateFromArray ( ) { org . spincast . core . json . JsonArray array2 = getJsonManager ( ) . createArray ( ) ; array2 . add ( new java . util . Date ( ) ) ; array2 . add ( "titi" ) ; org . spincast . core . json . JsonArray array = getJsonManager ( ) . createArray ( ) ; array . add ( "nope" ) ; array . add (...
org . junit . Assert . assertNotNull ( arrayFirst )
testOnVisitorGetDamageNotInWorld ( ) { when ( iwm . inWorld ( any ( org . bukkit . World . class ) ) ) . thenReturn ( false ) ; when ( iwm . inWorld ( any ( org . bukkit . Location . class ) ) ) . thenReturn ( false ) ; org . bukkit . event . entity . EntityDamageEvent e = new org . bukkit . event . entity . EntityDama...
org . junit . Assert . assertFalse ( e . isCancelled ( ) )
testChemObjectChangeEvent_Object ( ) { org . openscience . cdk . event . ChemObjectChangeEvent event = new org . openscience . cdk . event . ChemObjectChangeEvent ( new org . openscience . cdk . Atom ( ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( event )
testConvertBlank ( ) { java . lang . Double result = underTest . convert ( "<sp>" ) ; "<AssertPlaceHolder>" ; } convert ( java . lang . String ) { if ( "S" . equalsIgnoreCase ( value ) ) { return Size . TINY ; } else if ( "M" . equalsIgnoreCase ( value ) ) { return Size . NORMAL ; } else if ( "L" . equalsIgnoreCase ( v...
org . junit . Assert . assertNull ( result )
testNewChemObject ( ) { org . openscience . cdk . interfaces . IChemObjectBuilder builder = org . openscience . cdk . AbstractChemObjectBuilderTest . rootObject . getBuilder ( ) ; org . openscience . cdk . interfaces . IChemObject model = builder . newInstance ( org . openscience . cdk . interfaces . IChemObject . clas...
org . junit . Assert . assertNotNull ( model )
writeHeadersUsingVoidPromise ( ) { final java . lang . Throwable cause = new java . lang . RuntimeException ( "fake<sp>exception" ) ; when ( writer . writeHeaders ( eq ( ctx ) , eq ( io . netty . handler . codec . http2 . DefaultHttp2ConnectionEncoderTest . STREAM_ID ) , any ( io . netty . handler . codec . http2 . Htt...
org . junit . Assert . assertFalse ( promise . isVoid ( ) )
testMarkSupported ( ) { java . io . Reader reader = new org . kocakosm . pitaya . io . ConcatReader ( mock ( java . io . Reader . class ) ) ; "<AssertPlaceHolder>" ; } markSupported ( ) { return false ; }
org . junit . Assert . assertFalse ( reader . markSupported ( ) )
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . portal . lock . model . Lock > locks = _persistence . fetchByPrimaryKeys ( primaryKeys ) ...
org . junit . Assert . assertTrue ( locks . isEmpty ( ) )
testThatFailsWithCategoryB ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( false )
remove_paradox ( ) { com . psddev . dari . util . SparseSet set = new com . psddev . dari . util . SparseSet ( "+a" ) ; set . remove ( "a" ) ; "<AssertPlaceHolder>" ; } contains ( java . lang . Object ) { if ( ! ( item instanceof java . lang . String ) ) { return false ; } java . lang . String itemString = ( ( java . l...
org . junit . Assert . assertEquals ( false , set . contains ( "a" ) )
respondsWithErrorWhenUnlockingNullPatient ( ) { org . phenotips . recordLocking . script . RecordLockingService lockingService = this . mocker . getComponentUnderTest ( ) ; "<AssertPlaceHolder>" ; } unlockPatient ( java . lang . String ) { org . phenotips . data . Patient patient = this . pr . get ( patientID ) ; retur...
org . junit . Assert . assertEquals ( HttpStatus . SC_BAD_REQUEST , lockingService . unlockPatient ( ( ( org . phenotips . data . Patient ) ( null ) ) ) )
testWordInMultipleFieldsQueryWithStopWords3 ( ) { java . lang . String query = "skin<sp>rash" ; java . util . ArrayList < java . lang . String > attributeNames = new java . util . ArrayList ( ) ; attributeNames . add ( keywordTestConstants . ABSTRACT ) ; java . util . List < edu . uci . ics . texera . api . span . Span...
org . junit . Assert . assertTrue ( contains )
createKeyWrapper_invalid_pgp_key ( ) { final net . ripe . db . whois . common . rpsl . RpslObject rpslObject = net . ripe . db . whois . common . rpsl . RpslObject . parse ( ( "" + ( ( ( ( ( ( ( ( ( ( "key-cert:<sp>PGPKEY-28F6CD6C\n" + "fingerpr:<sp>1C40<sp>500A<sp>1DC4<sp>A8D8<sp>D3EA<sp>ABF9<sp>EE99<sp>1EE2<sp>28F6<s...
org . junit . Assert . assertNull ( keyWrapper )
testMutableIds ( ) { for ( int rmicCompatible : getRMICCompatible ( ) ) { com . ibm . ws . ejbcontainer . jitdeploy . AbstractStubTestBase . TestMutableIds stub = createStub ( com . ibm . ws . ejbcontainer . jitdeploy . AbstractStubTestBase . TestMutableIds . class , rmicCompatible ) ; org . omg . CORBA . portable . Ob...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( idsClone ) , java . util . Arrays . asList ( objectImpl . _ids ( ) ) )
testWithNameWhenSameName ( ) { final com . allanbank . mongodb . bson . element . ObjectId id = new com . allanbank . mongodb . bson . element . ObjectId ( ) ; final com . allanbank . mongodb . bson . element . ObjectIdElement element = new com . allanbank . mongodb . bson . element . ObjectIdElement ( "foo" , id ) ; "...
org . junit . Assert . assertSame ( element , element . withName ( "foo" ) )
testRecordUitGroep_MetFormeleHistorie_MetVerantwoordingcategorieD_formeelGeldig ( ) { final nl . bzk . brp . domain . leveringmodel . MetaRecord record = geefRecordUitGroep ( Element . PERSOON_AFNEMERINDICATIE_STANDAARD ) ; final nl . bzk . brp . domain . leveringmodel . persoon . PeilmomentHistorievormPredicate predic...
org . junit . Assert . assertTrue ( predicate . apply ( record ) )
testDelete_Object ( ) { com . jmethods . catatumbo . entities . LongId entity = com . jmethods . catatumbo . DatastoreBatchTest . em . insert ( new com . jmethods . catatumbo . entities . LongId ( ) ) ; com . jmethods . catatumbo . DatastoreBatch batch = com . jmethods . catatumbo . DatastoreBatchTest . em . newBatch (...
org . junit . Assert . assertNull ( retrievedEntity )
testNietIngeschreveneOuderTeJong ( ) { final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > overtreders = brby0143 . voerRegelUit ( null , maakNieuweSituatie ( nl . bzk . brp . bijhouding . business . regels . impl . bijhouding . afstamming . acties . erkenning . BRBY0143Test . IDENTIFICERENDE_...
org . junit . Assert . assertEquals ( 1 , overtreders . size ( ) )
testGetHasTypeRefs ( ) { final org . kie . workbench . common . dmn . api . definition . v1_1 . InputClauseLiteralExpression literalExpression = mock ( org . kie . workbench . common . dmn . api . definition . v1_1 . InputClauseLiteralExpression . class ) ; final org . kie . workbench . common . dmn . api . definition ...
org . junit . Assert . assertEquals ( expectedHasTypeRefs , actualHasTypeRefs )
testGetComponentClass ( ) { org . jboss . test . faces . FacesEnvironment . FacesRequest facesRequest = startFacesRequest ( ) ; javax . faces . context . FacesContext facesContext = javax . faces . context . FacesContext . getCurrentInstance ( ) ; org . richfaces . component . AbstractExtendedDataTable component = ( ( ...
org . junit . Assert . assertEquals ( org . richfaces . component . AbstractExtendedDataTable . class , renderer . getComponentClass ( ) )
awaitOperationSupportsSpecifyingZeroAsPollDelay ( ) { new org . awaitility . Asynch ( fakeRepository ) . perform ( ) ; with ( ) . pollDelay ( Duration . ZERO ) . pollInterval ( Duration . ONE_HUNDRED_MILLISECONDS ) . then ( ) . await ( ) . until ( fakeRepositoryValueEqualsOne ( ) ) ; "<AssertPlaceHolder>" ; } getValue ...
org . junit . Assert . assertEquals ( 1 , fakeRepository . getValue ( ) )
testAlternateNamePolicy ( ) { java . util . List < org . apache . beam . sdk . values . Row > bottomRow = java . util . stream . IntStream . rangeClosed ( 0 , 2 ) . mapToObj ( ( i ) -> org . apache . beam . sdk . values . Row . withSchema ( org . apache . beam . sdk . schemas . transforms . UnnestTest . SIMPLE_SCHEMA )...
org . junit . Assert . assertEquals ( org . apache . beam . sdk . schemas . transforms . UnnestTest . UNNESTED2_SCHEMA_ALTERNATE , unnested . getSchema ( ) )
test1170825 ( ) { org . jfree . data . time . TimeSeries s1 = new org . jfree . data . time . TimeSeries ( "Series1" ) ; org . jfree . data . time . TimeSeriesCollection dataset = new org . jfree . data . time . TimeSeriesCollection ( ) ; dataset . addSeries ( s1 ) ; try { dataset . getSeries ( 1 ) ; } catch ( java . l...
org . junit . Assert . assertTrue ( false )
seedJobShouldGetPriorityFromOverridingJobDefinitionPriorityWithCascade ( ) { org . camunda . bpm . engine . batch . Batch batch = helper . migrateProcessInstancesAsync ( 1 ) ; org . camunda . bpm . engine . management . JobDefinition seedJobDefinition = helper . getSeedJobDefinition ( batch ) ; managementService . setO...
org . junit . Assert . assertEquals ( org . camunda . bpm . engine . test . api . mgmt . BatchPriorityTest . CUSTOM_PRIORITY , seedJob . getPriority ( ) )