input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testNewMessageHasNoUnderlyingPropertiesSection ( ) { org . apache . qpid . jms . provider . amqp . message . AmqpJmsMessageFacade amqpMessageFacade = createNewMessageFacade ( ) ; "<AssertPlaceHolder>" ; } getProperties ( ) { return properties ; }
org . junit . Assert . assertNull ( amqpMessageFacade . getProperties ( ) )
logRollbackAndRetrieve ( ) { org . mule . runtime . core . internal . util . journal . queue . XaTxQueueTransactionJournal transactionJournal = new org . mule . runtime . core . internal . util . journal . queue . XaTxQueueTransactionJournal ( temporaryFolder . getRoot ( ) . getAbsolutePath ( ) , muleContext ) ; transa...
org . junit . Assert . assertThat ( allEntries . size ( ) , org . hamcrest . core . Is . is ( 0 ) )
testsetProperty ( ) { list . add ( c1 ) ; list . setProperty ( "prop1" , new java . lang . Integer ( 1 ) ) ; "<AssertPlaceHolder>" ; } get ( java . lang . Object ) { return chunkedData . get ( key ) ; }
org . junit . Assert . assertEquals ( "1" , list . properties . get ( "prop1" ) . toString ( ) )
testHandleNullValues ( ) { final java . util . Map < java . lang . String , java . lang . String > map1 = new java . util . LinkedHashMap ( ) ; map1 . put ( "foo" , "bar" ) ; map1 . put ( "hello" , null ) ; map1 . put ( "lorem" , "ipsum" ) ; final org . datacleaner . util . convert . MapStringToStringConverter c = new ...
org . junit . Assert . assertEquals ( map1 , map2 )
getFilterEntityIdNotEqualWithNoPatternTest ( ) { com . orange . ngsi . model . EntityId entityIdRegisterOrSubscribe = new com . orange . ngsi . model . EntityId ( "A" , "string" , false ) ; com . orange . ngsi . model . EntityId entityIdsearch = new com . orange . ngsi . model . EntityId ( "B" , "string" , false ) ; co...
org . junit . Assert . assertFalse ( entityIdPredicate . test ( entityIdRegisterOrSubscribe ) )
testGetUniqueUrlTitleShortensToMaxLength ( ) { long classNameId = com . liferay . portal . kernel . service . ClassNameLocalServiceUtil . getClassNameId ( com . liferay . portal . kernel . model . User . class ) ; int maxLength = com . liferay . portal . kernel . model . ModelHintsUtil . getMaxLength ( com . liferay . ...
org . junit . Assert . assertEquals ( maxLength , uniqueUrlTitle . length ( ) )
equalsDifferentConsumer ( ) { org . candlepin . auth . UserPrincipal up = new org . candlepin . auth . UserPrincipal ( "admin" , null , true ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) { return true ; } if ( obj == null ) { return false ; } if ( ( getClass ( ) ) != ( obj . get...
org . junit . Assert . assertFalse ( user . equals ( up ) )
documentIsValid ( ) { "<AssertPlaceHolder>" ; fish . payara . microprofile . openapi . spec . OpenApiValidator . validate ( jsonDocument ) ; }
org . junit . Assert . assertNotNull ( document )
peek_NotFresh ( ) { cache . put ( org . cache2k . test . core . BasicLongCacheOperationsTest . KEY , org . cache2k . test . core . BasicLongCacheOperationsTest . VALUE ) ; statistics ( ) . putCount . expect ( 1 ) . expectAllZero ( ) ; cache . expireAt ( org . cache2k . test . core . BasicLongCacheOperationsTest . KEY ,...
org . junit . Assert . assertNull ( cache . peek ( org . cache2k . test . core . BasicLongCacheOperationsTest . KEY ) )
testDisableMarkupIsIgnored ( ) { decorator . setData ( RWT . MARKUP_ENABLED , Boolean . TRUE ) ; decorator . setData ( RWT . MARKUP_ENABLED , Boolean . FALSE ) ; "<AssertPlaceHolder>" ; } getData ( java . lang . String ) { if ( ( dataTable ) == null ) return null ; return ( ( java . lang . String ) ( dataTable . get ( ...
org . junit . Assert . assertEquals ( Boolean . TRUE , decorator . getData ( RWT . MARKUP_ENABLED ) )
notify_withWorkerFinishedFailure ( ) { failureCollector . notify ( oomeFailure ) ; "<AssertPlaceHolder>" ; } getFailureCount ( ) { return ( criticalFailureCounter . get ( ) ) + ( nonCriticalFailureCounter . get ( ) ) ; }
org . junit . Assert . assertEquals ( 1 , failureCollector . getFailureCount ( ) )
getNearestHouse_OneHouse ( ) { java . util . TreeSet < com . gisgraphy . domain . geoloc . entity . HouseNumber > houses = new java . util . TreeSet < com . gisgraphy . domain . geoloc . entity . HouseNumber > ( ) ; com . vividsolutions . jts . geom . Point houseLocation = com . gisgraphy . helper . GeolocHelper . crea...
org . junit . Assert . assertEquals ( new com . gisgraphy . reversegeocoding . HouseNumberDistance ( house , com . gisgraphy . helper . GeolocHelper . distance ( searchPoint , houseLocation ) ) , nearestHouse )
test_parseObjectKey_whitspace ( java . lang . String , java . lang . String ) { org . joda . beans . ser . json . JsonInput input = new org . joda . beans . ser . json . JsonInput ( new java . io . StringReader ( ( text + "\"<sp>\t\n\r:" ) ) ) ; "<AssertPlaceHolder>" ; } parseObjectKey ( ) { if ( ( cachedObjectKey ) !=...
org . junit . Assert . assertEquals ( input . parseObjectKey ( ) , expected )
testRenameZeroLengthFile ( ) { long time = java . lang . System . currentTimeMillis ( ) ; java . lang . String name = ( "target/" + time ) + ".json" ; com . intuit . karate . FileUtils . writeToFile ( new java . io . File ( name ) , "" ) ; com . intuit . karate . FileUtils . renameFileIfZeroBytes ( name ) ; java . io ....
org . junit . Assert . assertTrue ( file . exists ( ) )
testSerializeMap ( ) { java . util . Map < java . lang . String , java . lang . String > map = com . google . common . collect . Maps . newHashMap ( ) ; map . put ( "key1" , "value1" ) ; map . put ( "key2" , "value2" ) ; java . lang . String mapStr = org . apache . kylin . common . util . JsonUtil . writeValueAsString ...
org . junit . Assert . assertEquals ( map , map2 )
parseUpdateStatementExample2 ( ) { net . sourceforge . pmd . lang . plsql . ast . ASTInput input = parsePLSQL ( loadTestResource ( "UpdateStatementExample2.pls" ) ) ; "<AssertPlaceHolder>" ; } loadTestResource ( java . lang . String ) { try { return org . apache . commons . io . IOUtils . toString ( this . getClass ( )...
org . junit . Assert . assertNotNull ( input )
testRequestCachedEntity ( ) { com . hp . alm . ali . idea . entity . EntityRef ref = new com . hp . alm . ali . idea . entity . EntityRef ( "defect" , 86 ) ; com . hp . alm . ali . idea . model . Entity entity = new com . hp . alm . ali . idea . model . Entity ( ref . type , ref . id ) ; entity . setProperty ( "status"...
org . junit . Assert . assertEquals ( "New" , entity . getPropertyValue ( "status" ) )
copyInputStreamValidWriterNegBufSz ( ) { java . lang . String probe = "A<sp>string<sp>⍅ï" ; java . io . StringWriter writer = new org . apache . maven . shared . utils . io . IOUtilTest . DontCloseStringWriter ( ) ; org . apache . maven . shared . utils . io . IOUtil . copy ( new java . io . ByteArrayInputStream ( prob...
org . junit . Assert . assertThat ( writer . toString ( ) . getBytes ( ) , org . hamcrest . CoreMatchers . is ( probe . getBytes ( ) ) )
createFileSystem ( ) { java . lang . String dir = org . apache . hadoop . test . TestDirHelper . getTestDir ( ) . getAbsolutePath ( ) ; java . lang . String services = org . apache . hadoop . util . StringUtils . join ( "," , java . util . Arrays . asList ( org . apache . hadoop . lib . service . instrumentation . Inst...
org . junit . Assert . assertNotNull ( fs )
getPossibleOutcomes_shouldGetOutcomesForASet ( ) { executeDataSet ( org . openmrs . api . ProgramWorkflowServiceTest . PROGRAM_WITH_OUTCOMES_XML ) ; java . util . List < org . openmrs . Concept > possibleOutcomes = org . openmrs . api . context . Context . getProgramWorkflowService ( ) . getPossibleOutcomes ( 4 ) ; "<A...
org . junit . Assert . assertEquals ( 4 , possibleOutcomes . size ( ) )
testCreateSchemaWithEmptyCRS ( ) { java . io . File file = new java . io . File ( "test.shp" ) ; final java . net . URI toURI = file . toURI ( ) ; final org . geotoolkit . data . shapefile . ShapefileFeatureStore ds = new org . geotoolkit . data . shapefile . ShapefileFeatureStore ( toURI ) ; final org . apache . sis ....
org . junit . Assert . assertEquals ( "test" , ds . getName ( ) . toString ( ) )
testStopLoadBalancerListener ( ) { try { com . fit2cloud . aliyun . slb . model . request . StopLoadBalancerListenerRequest request = new com . fit2cloud . aliyun . slb . model . request . StopLoadBalancerListenerRequest ( ) ; request . setLoadBalancerId ( loadBalancerId ) ; request . setListenerPort ( 443 ) ; com . fi...
org . junit . Assert . assertTrue ( true )
getAsString_noLineBreak ( ) { java . lang . String value = "abc" ; java . lang . String expected = "abc" ; java . lang . String actual = converter . getAsString ( context , component , value ) ; "<AssertPlaceHolder>" ; } getAsString ( javax . faces . context . FacesContext , javax . faces . component . UIComponent , ja...
org . junit . Assert . assertEquals ( expected , actual )
testApplicationsApplicationIdPut ( ) { org . wso2 . carbon . apimgt . rest . api . store . impl . TestUtil . printTestMethodName ( ) ; java . lang . String applicationId = java . util . UUID . randomUUID ( ) . toString ( ) ; java . lang . String accessToken = java . util . UUID . randomUUID ( ) . toString ( ) ; java . ...
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
testClear ( ) { org . openqa . selenium . WebElement text = driver . findElement ( org . openqa . selenium . By . xpath ( "//textfield[1]" ) ) ; text . sendKeys ( "12" ) ; text . clear ( ) ; "<AssertPlaceHolder>" ; } getText ( ) { logger . info ( ( "Getting<sp>text<sp>for<sp>element:<sp>" + ( this . toString ( ) ) ) ) ...
org . junit . Assert . assertEquals ( text . getText ( ) , "" )
testDefaultInstanceBehaviour ( ) { boolean isLeader = ( ( java . lang . Boolean ) ( junitx . util . PrivateAccessor . getField ( scheduler , "isLeader" ) ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertFalse ( isLeader )
testPDDeferredReqSetInboundStandardMode ( ) { gov . hhs . fha . nhinc . configuration . jmx . PassthruMXBeanRegistry registry = gov . hhs . fha . nhinc . configuration . jmx . PassthruMXBeanRegistry . getInstance ( ) ; gov . hhs . fha . nhinc . configuration . IConfiguration . serviceEnum serviceName = gov . hhs . fha ...
org . junit . Assert . assertEquals ( true , standard )
testListStatusFilterWithNoMatches ( ) { org . apache . hadoop . fs . Path [ ] testDirs = new org . apache . hadoop . fs . Path [ ] { getTestRootPath ( org . apache . hadoop . fs . FSMainOperationsBaseTest . fSys , org . apache . hadoop . fs . FSMainOperationsBaseTest . TEST_DIR_AAA2 ) , getTestRootPath ( org . apache ....
org . junit . Assert . assertEquals ( 0 , filteredPaths . length )
equals_A$Object ( ) { java . lang . String commandClassName = "dsfsdf" ; com . github . seratch . taskun . scheduler . crond . CrontabCommandClassNameElement target = new com . github . seratch . taskun . scheduler . crond . CrontabCommandClassNameElement ( commandClassName ) ; java . lang . Object obj = null ; boolean...
org . junit . Assert . assertEquals ( expected , actual )
testHashCode ( ) { super . testEquals ( ) ; com . gs . collections . api . set . primitive . ImmutableByteSet set1 = this . newWith ( ( ( byte ) ( 1 ) ) , ( ( byte ) ( 31 ) ) , ( ( byte ) ( 32 ) ) ) ; com . gs . collections . api . set . primitive . ImmutableByteSet set2 = this . newWith ( ( ( byte ) ( 32 ) ) , ( ( byt...
org . junit . Assert . assertEquals ( set1 . hashCode ( ) , set2 . hashCode ( ) )
testExportedLinksUploaded ( ) { org . nuxeo . ecm . core . blob . BlobInfo blobInfo = newBlobInfo ( ) ; blobInfo . key = ( ( ( ( org . nuxeo . ecm . liveconnect . google . drive . TestGoogleDriveBlobProvider . PREFIX ) + ":" ) + ( USERID ) ) + ":" ) + ( JPEG_FILEID ) ; org . nuxeo . ecm . core . blob . ManagedBlob blob...
org . junit . Assert . assertTrue ( map . isEmpty ( ) )
testGetMajorIsotope_Nonelement ( ) { org . openscience . cdk . config . IsotopeFactory isofac = org . openscience . cdk . config . Isotopes . getInstance ( ) ; org . openscience . cdk . interfaces . IIsotope isotope = isofac . getMajorIsotope ( "E" ) ; "<AssertPlaceHolder>" ; } getMajorIsotope ( java . lang . String ) ...
org . junit . Assert . assertNull ( isotope )
getProcessInstanceIdFromActivityInstanceId ( ) { final org . bonitasoft . engine . bpm . process . DesignProcessDefinition designProcessDefinition = org . bonitasoft . engine . test . BuildTestUtil . buildProcessDefinitionWithHumanAndAutomaticSteps ( java . util . Arrays . asList ( "step1" , "step2" ) , java . util . A...
org . junit . Assert . assertEquals ( pi0 . getId ( ) , processInstanceId )
getName ( ) { java . lang . String name = "name" ; io . robe . hibernate . criteria . api . Order order = io . robe . hibernate . criteria . api . Order . asc ( name ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( order . getName ( ) , name )
testHasNestedElementWhenNodeHasNestedElement ( ) { final java . util . Optional < org . kie . workbench . common . dmn . api . definition . HasExpression > hasExpression = java . util . Optional . ofNullable ( mock ( org . kie . workbench . common . dmn . api . definition . HasExpression . class ) ) ; final java . util...
org . junit . Assert . assertTrue ( factory . hasNestedElement ( node ) )
convertsMultipleMapsToRedisServerReturnsCollectionCorrectly ( ) { java . util . List < java . util . Map < java . lang . String , java . lang . String > > vals = java . util . Arrays . asList ( getRedisServerInfoMap ( "mymaster" , 23697 ) , getRedisServerInfoMap ( "yourmaster" , 23680 ) ) ; java . util . List < org . s...
org . junit . Assert . assertThat ( servers . size ( ) , org . hamcrest . core . Is . is ( vals . size ( ) ) )
testing4 ( ) { org . specrunner . converters . core . ConverterEnumValue ce = new org . specrunner . converters . core . ConverterEnumValue ( ) ; for ( org . specrunner . converter . enumeration . ItemStatus i : org . specrunner . converter . enumeration . ItemStatus . values ( ) ) { java . lang . Object obj = ce . con...
org . junit . Assert . assertEquals ( i . name ( ) , obj )
testThrowCheckedException ( ) { java . io . IOException expected = new java . io . IOException ( "EXPECTED<sp>ERROR" ) ; java . io . IOException actual = null ; try { org . slieb . throwables . BinaryOperatorWithThrowable . aBinaryOperatorThatUnsafelyThrowsUnchecked ( ( v1 , v2 ) -> { throw expected ; } ) . apply ( nul...
org . junit . Assert . assertEquals ( expected , actual )
startsWith_A$Seq_Nil ( ) { com . m3 . scalaflavor4j . Seq < java . lang . Integer > seq = com . m3 . scalaflavor4j . Seq . apply ( ) ; com . m3 . scalaflavor4j . Seq < java . lang . Integer > that = com . m3 . scalaflavor4j . Seq . apply ( 1 , 2 ) ; boolean actual = seq . startsWith ( that ) ; boolean expected = false ...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
getConfiguredDaysInMs_default ( ) { long expectedDays = 4 * ( org . oscm . configurationservice . bean . BillingOffsetTest . DAY_IN_MS ) ; long result = configServiceBean . getConfiguredDaysInMs ( expectedDays ) ; "<AssertPlaceHolder>" ; } getConfiguredDaysInMs ( long ) { java . math . BigDecimal configuredDays = null ...
org . junit . Assert . assertEquals ( expectedDays , result )
testReactionSpecification_String_String_String_String ( ) { org . openscience . cdk . reaction . ReactionSpecification spec = new org . openscience . cdk . reaction . ReactionSpecification ( org . openscience . cdk . reaction . ReactionSpecificationTest . REAC_REF , org . openscience . cdk . reaction . ReactionSpecific...
org . junit . Assert . assertNotNull ( spec )
testValidFolderName ( ) { org . pentaho . platform . web . http . api . resources . services . FileService fs = mock ( org . pentaho . platform . web . http . api . resources . services . FileService . class ) ; doCallRealMethod ( ) . when ( fs ) . doCreateDirSafe ( anyString ( ) ) ; doCallRealMethod ( ) . when ( fs ) ...
org . junit . Assert . assertTrue ( fs . doCreateDirSafe ( "New<sp>Folder" ) )
create_MailOperationException_NotInternal ( ) { ctrl . init ( ) ; when ( us . createNewUser ( any ( org . oscm . internal . usermanagement . POUserAndSubscriptions . class ) , anyString ( ) ) ) . thenThrow ( new org . oscm . internal . types . exception . MailOperationException ( ) ) ; org . oscm . ui . dialog . mp . c...
org . junit . Assert . assertEquals ( BaseBean . OUTCOME_ERROR , outcome )
testAcceptInValidParameter3 ( ) { final org . openspotlight . graph . query . console . ConsoleState state = new org . openspotlight . graph . query . console . ConsoleState ( null ) ; state . setInput ( "clear<sp>something" ) ; "<AssertPlaceHolder>" ; } accept ( org . openspotlight . graph . query . console . ConsoleS...
org . junit . Assert . assertThat ( command . accept ( state ) , org . hamcrest . core . Is . is ( false ) )
testGetShowLoadedDriversOnly ( ) { classUnderTest . setShowLoadedDriversOnly ( true ) ; "<AssertPlaceHolder>" ; } getShowLoadedDriversOnly ( ) { return _showLoadedDriversOnly ; }
org . junit . Assert . assertEquals ( true , classUnderTest . getShowLoadedDriversOnly ( ) )
saveAPredefinedClassificationWithSomeAlreadyExistingAxisValues ( ) { java . lang . String componentInstanceId = resources . componentInstanceWithAPredefinedClassification ( ) ; com . silverpeas . pdc . model . PdcClassification theExistingClassification = resources . predefinedClassificationForComponentInstance ( compo...
org . junit . Assert . assertThat ( savedClassification , is ( equalTo ( theNewClassification ) ) )
getPreferredProcessorsWithJP2 ( ) { java . util . List < ? > expected = java . util . List . of ( edu . illinois . library . cantaloupe . processor . KakaduNativeProcessor . class , edu . illinois . library . cantaloupe . processor . OpenJpegProcessor . class , edu . illinois . library . cantaloupe . processor . ImageM...
org . junit . Assert . assertEquals ( expected , instance . getPreferredProcessors ( Format . JP2 ) )
shouldRejectWhenHostIdIsSet ( ) { backup . setHostId ( 69 ) ; org . openstack . atlas . api . validation . results . ValidatorResult result = validator . validate ( backup , org . openstack . atlas . api . mgmt . validation . validators . POST ) ; "<AssertPlaceHolder>" ; } passedValidation ( ) { return expectationResul...
org . junit . Assert . assertFalse ( result . passedValidation ( ) )
testFilterWithDotNotation ( ) { io . katharsis . queryspec . QuerySpec expectedSpec = new io . katharsis . queryspec . QuerySpec ( io . katharsis . resource . mock . models . Task . class ) ; expectedSpec . addFilter ( new io . katharsis . queryspec . FilterSpec ( java . util . Arrays . asList ( "project" , "name" ) , ...
org . junit . Assert . assertEquals ( expectedSpec , actualSpec )
testGetWithNoSet ( ) { java . lang . String key = "test" ; java . util . Set < com . github . pmerienne . trident . cf . testing . TestValue > set = this . state . get ( key ) ; "<AssertPlaceHolder>" ; } get ( K ) { java . util . Set < V > results = new java . util . HashSet < V > ( ) ; redis . clients . jedis . Jedis ...
org . junit . Assert . assertTrue ( set . isEmpty ( ) )
testGetParametersWithDefaultEntityAndDisabledStatus ( ) { unit . setActive ( false ) ; org . lnu . is . domain . degree . Degree entity = new org . lnu . is . domain . degree . Degree ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashMap < java . lang . String , ja...
org . junit . Assert . assertEquals ( expected , actual )
testRequestGetHistoricalData ( ) { java . util . List < com . sumzerotrading . data . BarData > barData = new java . util . ArrayList ( ) ; barData . add ( new com . sumzerotrading . data . BarData ( ) ) ; com . sumzerotrading . data . Ticker ticker = new com . sumzerotrading . data . StockTicker ( "ABC" ) ; int durati...
org . junit . Assert . assertEquals ( barData , client . requestHistoricalData ( ticker , duration , unit , barSize , sizeUnit , showProperty ) )
testIpv6MulticastFwdClass ( ) { org . onosproject . net . flow . TrafficTreatment treatment = org . onosproject . net . flow . DefaultTrafficTreatment . builder ( ) . pushVlan ( ) . setVlanId ( org . onosproject . pipelines . fabric . pipeliner . VLAN_100 ) . build ( ) ; org . onosproject . net . flowobjective . Filter...
org . junit . Assert . assertEquals ( expectedTranslation , actualTranslation )
clearTimePartForCalendar ( ) { java . util . Date date = new java . util . Date ( ) ; java . util . Calendar cal = java . util . Calendar . getInstance ( ) ; cal . setTime ( date ) ; java . util . Calendar cal2 = java . util . Calendar . getInstance ( ) ; cal2 . setTime ( date ) ; cal . set ( Calendar . HOUR_OF_DAY , 0...
org . junit . Assert . assertThat ( org . slim3 . util . DateUtil . clearTimePart ( cal2 ) , org . hamcrest . CoreMatchers . is ( cal ) )
testExceptionTranslationTx ( ) { logger . info ( "Testing<sp>exception<sp>translation<sp>for<sp>proxied<sp>service" ) ; org . springframework . web . servlet . HandlerExecutionChain chain = handler . getHandler ( requestService ) ; org . gwtwidgets . server . spring . GWTRPCServiceExporter exporter = ( ( org . gwtwidge...
org . junit . Assert . assertTrue ( ( t instanceof org . gwtwidgets . server . spring . test . common . CustomException ) )
testSerialization ( ) { org . jfree . chart . needle . ArrowNeedle n1 = new org . jfree . chart . needle . ArrowNeedle ( false ) ; org . jfree . chart . needle . ArrowNeedle n2 = ( ( org . jfree . chart . needle . ArrowNeedle ) ( org . jfree . chart . TestUtilities . serialised ( n1 ) ) ) ; "<AssertPlaceHolder>" ; } eq...
org . junit . Assert . assertTrue ( n1 . equals ( n2 ) )
testSimpleWithDecimals ( ) { org . apache . commons . math3 . geometry . euclidean . threed . Vector3D c = new org . apache . commons . math3 . geometry . euclidean . threed . Vector3D ( 1.23 , 1.43 , 1.63 ) ; java . lang . String expected = ( ( ( ( ( "{1" + ( getDecimalCharacter ( ) ) ) + "23;<sp>1" ) + ( getDecimalCh...
org . junit . Assert . assertEquals ( expected , actual )
equalsBothMarketplaceIdNull ( ) { org . oscm . vo . VOMarketplace mp1 = new org . oscm . vo . VOMarketplace ( ) ; mp1 . setMarketplaceId ( null ) ; mp1 . setName ( "1" ) ; org . oscm . vo . VOMarketplace mp2 = new org . oscm . vo . VOMarketplace ( ) ; mp2 . setMarketplaceId ( null ) ; mp2 . setName ( "2" ) ; "<AssertPl...
org . junit . Assert . assertFalse ( mp1 . equals ( mp2 ) )
shouldHaveZeroTests ( ) { parse ( "zeroTests.xml" ) ; "<AssertPlaceHolder>" ; } size ( ) { return indexByClassname . size ( ) ; }
org . junit . Assert . assertThat ( index . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
testName ( ) { java . lang . String fixture = "name" ; this . libshout . setName ( fixture ) ; "<AssertPlaceHolder>" ; } getName ( ) { return com . gmail . kunicins . olegs . libshout . Libshout . shout_get_name ( this . instance ) ; }
org . junit . Assert . assertEquals ( fixture , this . libshout . getName ( ) )
testJVMId ( ) { org . apache . hadoop . mapred . JVMId jvmid = new org . apache . hadoop . mapred . JVMId ( "test" , 1 , true , 2 ) ; org . apache . hadoop . mapred . JVMId jvmid1 = org . apache . hadoop . mapred . JVMId . forName ( "jvm_test_0001_m_000002" ) ; "<AssertPlaceHolder>" ; } compareTo ( org . apache . hadoo...
org . junit . Assert . assertEquals ( 0 , jvmid . compareTo ( jvmid1 ) )
testGetString_oneLine ( ) { java . lang . String expected = "108" ; java . io . InputStream stream = new java . io . ByteArrayInputStream ( expected . getBytes ( ) ) ; java . lang . String actual = com . google . android . gcm . server . Sender . getString ( stream ) ; "<AssertPlaceHolder>" ; } getString ( java . io . ...
org . junit . Assert . assertEquals ( expected , actual )
getPreferredProcessorsWhenOnlyAssignedIsSet ( ) { edu . illinois . library . cantaloupe . config . Configuration config = edu . illinois . library . cantaloupe . config . Configuration . getInstance ( ) ; config . setProperty ( "processor.ManualSelectionStrategy.pdf" , edu . illinois . library . cantaloupe . processor ...
org . junit . Assert . assertEquals ( expected , instance . getPreferredProcessors ( Format . PDF ) )
testFindUsersOfGroup ( ) { try ( com . syncleus . ferma . tx . Tx tx = tx ( ) ) { com . gentics . mesh . core . data . root . UserRoot userRoot = meshRoot ( ) . getUserRoot ( ) ; com . gentics . mesh . core . data . User extraUser = userRoot . create ( "extraUser" , user ( ) ) ; group ( ) . addUser ( extraUser ) ; role...
org . junit . Assert . assertEquals ( 2 , userPage . getTotalElements ( ) )
findSmileysShouldHandleEmptyStrings ( ) { final java . util . List < net . usikkert . kouchat . android . smiley . Smiley > smileys = locator . findSmileys ( "" ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { org . junit . Assert . assertFalse ( net . usikkert . kouchat . util . Tools . isEmpty ( "a" ) ) ; org . junit . As...
org . junit . Assert . assertTrue ( smileys . isEmpty ( ) )
returnRegisteredAppDictionaryWithoutDiscovery ( ) { quickfix . DefaultDataDictionaryProvider provider = new quickfix . DefaultDataDictionaryProvider ( false ) ; provider . addApplicationDictionary ( new quickfix . ApplVerID ( FIX44 ) , quickfix . DefaultDataDictionaryProviderTest . dictionaryForTest1 ) ; provider . add...
org . junit . Assert . assertThat ( dd , is ( quickfix . DefaultDataDictionaryProviderTest . dictionaryForTest2 ) )
testECDSAEncryptedKey ( ) { java . security . KeyPair keyPair = null ; try { keyPair = instance . decodePrivateKey ( "src/test/resources/ecdsa_encrypted" , "passphrase" ) ; } catch ( java . io . IOException e ) { org . opendaylight . aaa . encrypt . PKIUtilTest . LOG . error ( "Can<sp>not<sp>find<sp>file" , e ) ; } "<A...
org . junit . Assert . assertNotNull ( keyPair )
testSpecificSuppressionMulitpleValues2 ( ) { net . sourceforge . pmd . Report rpt = new net . sourceforge . pmd . Report ( ) ; runTestFromString ( net . sourceforge . pmd . lang . java . SuppressWarningsTest . TEST9_MULTIPLE_VALUES_2 , new net . sourceforge . pmd . FooRule ( ) , rpt , net . sourceforge . pmd . lang . L...
org . junit . Assert . assertEquals ( 0 , rpt . size ( ) )
testClose ( ) { final java . util . concurrent . atomic . AtomicBoolean closed = new java . util . concurrent . atomic . AtomicBoolean ( false ) ; java . io . InputStream is = new java . io . InputStream ( ) { public int read ( ) throws java . io . IOException { return 0 ; } @ org . nucleus8583 . core . charset . spi ....
org . junit . Assert . assertTrue ( closed . get ( ) )
firstCoversSecondObjectMismatchType ( ) { com . fasterxml . jackson . databind . JsonNode node1 = org . batfish . common . util . BatfishObjectMapper . mapper ( ) . createObjectNode ( ) . set ( "key1" , new com . fasterxml . jackson . databind . node . TextNode ( "value" ) ) ; com . fasterxml . jackson . databind . Jso...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . equalTo ( false ) )
testMatchesFuzzyString ( ) { final com . allanbank . mongodb . bson . Document t = com . allanbank . mongodb . bson . builder . BuilderFactory . start ( ) . addString ( "c" , "1.0" ) . build ( ) ; final com . allanbank . mongodb . bson . Document [ ] tags = new com . allanbank . mongodb . bson . Document [ ] { com . al...
org . junit . Assert . assertFalse ( prefs . matches ( t ) )
inject_static_field_inherited ( ) { com . artemis . World w = new com . artemis . World ( new com . artemis . WorldConfiguration ( ) . setSystem ( new com . artemis . WireTest . ManagerWithStaticField ( ) ) ) ; w . process ( ) ; "<AssertPlaceHolder>" ; } process ( ) { if ( checkProcessing ( ) ) { begin ( ) ; processSys...
org . junit . Assert . assertNotNull ( com . artemis . WireTest . ManagerWithStaticField . mapper )
testExistsZipConfig ( ) { setFunctionFound ( true ) ; java . lang . Boolean result = lambdaDeployService . deployLambda ( getDeployConfig ( ) , getFunctionCode ( ) , UpdateModeValue . Config ) ; calledGetFunction ( ) ; calledCreateFunction ( false ) ; calledUpdateCode ( false ) ; calledUpdateConfiguration ( true ) ; "<...
org . junit . Assert . assertTrue ( result )
shouldBuildGraphAndGetGraphIdFromTableName ( ) { final uk . gov . gchq . gaffer . accumulostore . AccumuloProperties properties = uk . gov . gchq . gaffer . accumulostore . AccumuloProperties . loadStoreProperties ( uk . gov . gchq . gaffer . commonutil . StreamUtil . storeProps ( uk . gov . gchq . gaffer . accumulosto...
org . junit . Assert . assertEquals ( "tableName" , graph . getGraphId ( ) )
test_getName ( ) { "<AssertPlaceHolder>" ; } getName ( ) { return "System" ; }
org . junit . Assert . assertEquals ( "System" , rules . getName ( ) )
messages ( ) { "<AssertPlaceHolder>" ; } messages ( ) { org . junit . Assert . assertThat ( facebook . messages ( ) , org . hamcrest . CoreMatchers . instanceOf ( facebook4j . MessageMethods . class ) ) ; }
org . junit . Assert . assertThat ( facebook . messages ( ) , org . hamcrest . CoreMatchers . instanceOf ( facebook4j . MessageMethods . class ) )
testLong2int ( ) { java . lang . Long l = java . lang . Long . valueOf ( 59 ) ; int x = org . nutz . castor . Castors . me ( ) . cast ( l , org . nutz . castor . Long . class , int . class ) ; "<AssertPlaceHolder>" ; } cast ( java . util . Date , java . lang . Class , java . lang . String [ ] ) { return org . nutz . la...
org . junit . Assert . assertEquals ( 59 , x )
testBatchImageSparkTransform ( ) { int seed = 12345 ; java . io . File f0 = new org . nd4j . linalg . io . ClassPathResource ( "datavec-spark-inference/testimages/class1/A.jpg" ) . getFile ( ) ; java . io . File f1 = new org . nd4j . linalg . io . ClassPathResource ( "datavec-spark-inference/testimages/class1/B.png" ) ...
org . junit . Assert . assertEquals ( 3 , fromBase64 . size ( 0 ) )
shouldAcceptValidMavenVersions ( ) { java . lang . String versionWithoutQualifier = "1.2.3" ; java . lang . String versionWithQualifier = "1.2.3-SNAPSHOT" ; java . lang . String versionWithNumericQualifier = "1.2.3-456" ; java . lang . String versionWithArbitraryQualifier = "1.2.3-Ab_45" ; java . lang . String versionW...
org . junit . Assert . assertTrue ( areAllValid )
deveGerarConsultaComNSU ( ) { final com . fincatto . documentofiscal . nfe . classes . distribuicao . NFDistribuicaoConsultaNSU distribuicaoNSU = new com . fincatto . documentofiscal . nfe . classes . distribuicao . NFDistribuicaoConsultaNSU ( ) ; distribuicaoNSU . setNsu ( "000000000000015" ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertEquals ( "000000000000015" , distribuicaoNSU . getNsu ( ) )
testNorm1AlongDimension ( ) { org . nd4j . linalg . api . ndarray . INDArray arr = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 8 , 8 ) . reshape ( 2 , 4 ) ; org . nd4j . linalg . api . ndarray . INDArray arrNorm1 = arr . norm2 ( 1 ) ; org . nd4j . linalg . api . ndarray . INDArray assertion = org . nd4j . lin...
org . junit . Assert . assertEquals ( assertion , arrNorm1 )
forEachWith ( ) { java . util . concurrent . atomic . AtomicInteger integer = new java . util . concurrent . atomic . AtomicInteger ( ) ; new org . eclipse . collections . impl . list . fixed . EmptyList ( ) . forEachWith ( ( argument1 , argument2 ) -> integer . incrementAndGet ( ) , null ) ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertEquals ( 0 , integer . get ( ) )
testJarFile ( ) { java . io . File [ ] f = new java . io . File [ ] { new java . io . File ( "./src/test/resources/test.jar.extension" ) } ; java . lang . String [ ] s = new java . lang . String [ ] { "eu/infomas/annotation" } ; java . io . InputStream stream = new eu . infomas . annotation . ClassFileIterator ( f , s ...
org . junit . Assert . assertNotNull ( stream )
testRemovePropertyLocation ( ) { java . lang . String propName = propertyLocation . getName ( ) ; "<AssertPlaceHolder>" ; verify ( child , times ( 1 ) ) . removeProperty ( propName ) ; } remove ( ) { com . google . common . base . Preconditions . checkState ( ( ! ( isEmpty ( ) ) ) , "Cannot<sp>remove<sp>item<sp>from<sp...
org . junit . Assert . assertTrue ( propertyLocation . remove ( ) )
equals_firstAndSecondValueDiffers_shouldBeFalse ( ) { com . vaadin . v7 . data . util . filter . Between b1 = new com . vaadin . v7 . data . util . filter . Between ( "foo" , 0 , null ) ; com . vaadin . v7 . data . util . filter . Between b2 = new com . vaadin . v7 . data . util . filter . Between ( "foo" , 1 , 2 ) ; "...
org . junit . Assert . assertFalse ( b1 . equals ( b2 ) )
testDelegatesNotify ( ) { com . eclipsesource . tabris . internal . AppImpl app = new com . eclipsesource . tabris . internal . AppImpl ( ) ; com . eclipsesource . tabris . app . AppListener listener = mock ( com . eclipsesource . tabris . app . AppListener . class ) ; app . addEventListener ( com . eclipsesource . tab...
org . junit . Assert . assertSame ( com . eclipsesource . tabris . internal . PAUSE , captor . getValue ( ) . getType ( ) )
testOnEndermanGriefAllowed ( ) { Flags . ENDERMAN_GRIEFING . setSetting ( world . bentobox . bentobox . listeners . flags . worldsettings . EndermanListenerTest . world , true ) ; world . bentobox . bentobox . listeners . flags . worldsettings . EndermanListener listener = new world . bentobox . bentobox . listeners . ...
org . junit . Assert . assertFalse ( e . isCancelled ( ) )
testCreateTrustManagerDefaultTrustManager ( ) { org . apache . hadoop . yarn . server . webproxy . ProxyCA proxyCA = new org . apache . hadoop . yarn . server . webproxy . ProxyCA ( ) ; proxyCA . init ( ) ; javax . net . ssl . X509TrustManager defaultTrustManager = org . mockito . Mockito . mock ( javax . net . ssl . X...
org . junit . Assert . assertArrayEquals ( defaultTrustManager . getAcceptedIssuers ( ) , trustManager . getAcceptedIssuers ( ) )
testExecuteInBatchesWithNoEntriesInBatch ( ) { final java . util . List < java . lang . Object > objects = new java . util . ArrayList < java . lang . Object > ( ) ; final int batchSize = 2 ; java . util . List batchCountList = runExecuteInBatches ( objects , batchSize ) ; "<AssertPlaceHolder>" ; } size ( ) { return si...
org . junit . Assert . assertEquals ( 0 , batchCountList . size ( ) )
testMatchingNibbleLength4 ( ) { byte [ ] a = new byte [ ] { 1 } ; byte [ ] b = new byte [ ] { 0 } ; int result = org . ethereum . util . ByteUtil . matchingNibbleLength ( a , b ) ; "<AssertPlaceHolder>" ; } matchingNibbleLength ( byte [ ] , byte [ ] ) { int i = 0 ; int length = ( ( a . length ) < ( b . length ) ) ? a ....
org . junit . Assert . assertEquals ( 0 , result )
testFromJsonObjectNoData ( ) { javax . json . JsonObject jsonObject = javax . json . Json . createObjectBuilder ( ) . build ( ) ; edu . wpi . rail . jrosbridge . messages . std . Int8 data = edu . wpi . rail . jrosbridge . messages . std . Int8 . fromJsonObject ( jsonObject ) ; "<AssertPlaceHolder>" ; } getData ( ) { r...
org . junit . Assert . assertEquals ( ( ( byte ) ( 0 ) ) , data . getData ( ) )
testPreCreateShouldNotBeSuccessfulIfIndicesAreNotSameAtBothTypeAndLength ( ) { org . apache . hadoop . hbase . client . HBaseAdmin admin = new org . apache . hadoop . hbase . client . HBaseAdmin ( org . apache . hadoop . hbase . index . coprocessor . master . TestIndexMasterObserver . UTIL . getConfiguration ( ) ) ; or...
org . junit . Assert . assertTrue ( returnVal )
testInvalidLeverageMigrateDetach ( ) { try { org . nd4j . linalg . api . memory . MemoryWorkspace ws = org . nd4j . linalg . factory . Nd4j . getWorkspaceManager ( ) . getWorkspaceForCurrentThread ( org . nd4j . linalg . workspace . BasicWorkspaceTests . basicConfig , "testInvalidLeverage" ) ; org . nd4j . linalg . api...
org . junit . Assert . assertTrue ( invalidArray . isAttached ( ) )
testCoverageOutofValidityArea ( ) { final double scale = 360.0 / 4320.0 ; final java . awt . geom . AffineTransform gridToCRS = new java . awt . geom . AffineTransform ( scale , 0 , 0 , ( - scale ) , ( - 180 ) , 90 ) ; final java . awt . image . BufferedImage img = new java . awt . image . BufferedImage ( 4320 , 2160 ,...
org . junit . Assert . assertEquals ( color , result . getRGB ( x , y ) )
getReportedPropertiesVersionReturnsNullIfNoVersionInTheReportedProperties ( com . microsoft . azure . sdk . iot . deps . twin . TwinCollection ) { com . microsoft . azure . sdk . iot . service . devicetwin . DeviceTwinDevice testDevice = new com . microsoft . azure . sdk . iot . service . devicetwin . DeviceTwinDevice ...
org . junit . Assert . assertNull ( version )
circular_example ( ) { output = new java . io . File ( testFolder . getRoot ( ) , "uncompressed_string_graph.gexf" ) ; scambler . Poc poc = new scambler . Poc ( ) ; java . lang . String seq = S ( scambler . RANDOM ) . substring ( 0 , 100 ) ; java . lang . String seq2 = S ( scambler . RANDOM ) . substring ( 100 , 200 ) ...
org . junit . Assert . assertTrue ( output . exists ( ) )
testGetStaticAnalysisResultEmpty ( ) { hudson . model . AbstractBuild < ? , ? > build = mock ( hudson . model . AbstractBuild . class ) ; jenkins . model . Jenkins jenkins = mock ( jenkins . model . Jenkins . class ) ; hudson . Plugin plugin = mock ( hudson . Plugin . class ) ; org . powermock . api . mockito . PowerMo...
org . junit . Assert . assertEquals ( java . util . Collections . < hudson . model . Action > emptyList ( ) , result )
testServiceDefaultWithJPEG ( ) { org . nuxeo . ecm . core . api . Blob blob = new org . nuxeo . ecm . core . api . impl . blob . FileBlob ( getClass ( ) . getResourceAsStream ( org . nuxeo . ecm . platform . pdf . tests . PDFWatermarkingImageTest . PDF_PATH ) ) ; org . nuxeo . ecm . core . api . Blob image = new org . ...
org . junit . Assert . assertTrue ( org . nuxeo . ecm . platform . pdf . tests . TestUtils . hasImageOnAllPages ( result ) )
testMappingEnabled ( ) { configure ( resourceOptimizationEnabled , true ) ; boolean enabled = org . richfaces . resource . ResourceLoadingOptimization . isEnabled ( ) ; "<AssertPlaceHolder>" ; } isEnabled ( ) { return org . richfaces . application . configuration . ConfigurationServiceHelper . getBooleanConfigurationVa...
org . junit . Assert . assertTrue ( enabled )
testGetArticleIsMock ( ) { com . ewcms . publication . service . ArticlePublishServiceable mock = mock ( com . ewcms . publication . service . ArticlePublishServiceable . class ) ; long id = ArticlePublishServiceWrapper . PREVIEW_ARTICLE_ID ; when ( mock . getArticle ( id ) ) . thenReturn ( null ) ; com . ewcms . publi...
org . junit . Assert . assertNotNull ( mockArticle )