input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testHasIndexHashKeyEqualConditionAnd_WhenConditionCriteriaIsEqualityOnAPropertyWhichIsAnIndexHashKeyButNotAHashKeyOrRangeKey ( ) { org . mockito . Mockito . when ( entityInformation . isGlobalIndexHashKeyProperty ( "displayName" ) ) . thenReturn ( true ) ; criteria . withPropertyEquals ( "displayName" , "some<sp>displa...
org . junit . Assert . assertTrue ( hasIndexHashKeyEqualCondition )
testRemoveNull ( ) { org . orbisgis . legend . thematic . recode . RecodedPoint ra = getRecodedPoint ( ) ; try { ra . remove ( null ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . NullPointerException npe ) { } "<AssertPlaceHolder>" ; } remove ( org . orbisgis . view . toc . actions . cui . legend . ILege...
org . junit . Assert . assertTrue ( true )
bug58733 ( ) { java . io . File sample = org . apache . poi . hslf . HSLFTestDataSamples . getSampleFile ( "bug58733_671884.ppt" ) ; try ( org . apache . poi . sl . extractor . SlideShowExtractor ex = new org . apache . poi . sl . extractor . SlideShowExtractor ( org . apache . poi . sl . usermodel . SlideShowFactory ....
org . junit . Assert . assertNotNull ( ex . getText ( ) )
testEquals_ComponentTypeArrayOpenClass_componentClassWithSamePackages ( ) { org . openl . types . IOpenClass to = new org . openl . types . impl . ComponentTypeArrayOpenClass ( new org . openl . rules . lang . xls . types . DatatypeOpenClass ( "MyType" , "org.openl.generated.packA" ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( from , to )
testZlist ( ) { ssdbClient . zset ( "zkey:1" , "user1" , 123 ) ; java . util . List < java . lang . String > keys = ssdbClient . zlist ( "zkey:" , "" , 100 ) ; "<AssertPlaceHolder>" ; } contains ( T extends com . hyd . ssdb . util . Number ) { if ( value instanceof java . lang . Integer ) { return ( ( ( java . lang . I...
org . junit . Assert . assertTrue ( keys . contains ( "zkey:1" ) )
shouldCreatedIndexWithSpecifiedIndexName ( ) { elasticsearchTemplate . deleteIndex ( "test-index" ) ; elasticsearchTemplate . createIndex ( "test-index" ) ; "<AssertPlaceHolder>" ; } indexExists ( java . lang . String ) { return executeWithAcknowledge ( new io . searchbox . indices . IndicesExists . Builder ( indexName...
org . junit . Assert . assertThat ( elasticsearchTemplate . indexExists ( "test-index" ) , is ( true ) )
testCreateNonReferenceableJcrUuid ( ) { setupPermission ( "/a" , testPrincipal , true , PrivilegeConstants . JCR_READ , PrivilegeConstants . JCR_ADD_CHILD_NODES ) ; try { org . apache . jackrabbit . oak . api . Root testRoot = getTestRoot ( ) ; org . apache . jackrabbit . oak . util . NodeUtil a = new org . apache . ja...
org . junit . Assert . assertTrue ( e . isAccessViolation ( ) )
slowEvaluate ( ) { final int LIMIT = 10 ; final org . joda . time . Duration stepSize = org . joda . time . Duration . standardMinutes ( 1 ) ; final java . util . List < java . util . Collection < com . groupon . lex . metrics . history . CollectHistory . NamedEvaluation > > expected = com . groupon . monsoon . remote ...
org . junit . Assert . assertEquals ( expected , result )
testValueOfWithNull ( ) { "<AssertPlaceHolder>" ; } valueOf ( org . apache . geode . cache . InterestResultPolicy ) { for ( org . springframework . data . gemfire . client . InterestResultPolicyType interestResultPolicyType : org . springframework . data . gemfire . client . InterestResultPolicyType . values ( ) ) { if...
org . junit . Assert . assertNull ( org . springframework . data . gemfire . client . InterestResultPolicyType . valueOf ( ( ( org . apache . geode . cache . InterestResultPolicy ) ( null ) ) ) )
mkString_A$ ( ) { com . m3 . scalaflavor4j . Seq < java . lang . Integer > seq = com . m3 . scalaflavor4j . Seq . apply ( 1 , 2 , 3 , 4 , 5 ) ; java . lang . String actual = seq . mkString ( ) ; java . lang . String expected = "12345" ; "<AssertPlaceHolder>" ; } mkString ( ) { return mkString ( "" , "" , "" ) ; }
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
testConvert_Null ( ) { "<AssertPlaceHolder>" ; } convert ( java . lang . Object ) { if ( val == null ) { return null ; } java . lang . String converted ; if ( val instanceof java . lang . String ) { converted = val . toString ( ) ; } else if ( val instanceof java . net . InetAddress ) { converted = val . toString ( ) ;...
org . junit . Assert . assertNull ( converter . convert ( null ) )
testBatchQueryCount ( ) { helper . migrateProcessInstancesAsync ( 1 ) ; helper . migrateProcessInstancesAsync ( 1 ) ; long count = historyService . createHistoricBatchQuery ( ) . count ( ) ; "<AssertPlaceHolder>" ; } count ( ) { return count ( ALL_STATES ) ; }
org . junit . Assert . assertEquals ( 2 , count )
testMatchesMVEL3 ( ) { final org . kie . api . KieBase kbase = org . drools . testcoverage . common . util . KieBaseUtil . getKieBaseFromKieModuleFromDrl ( "matches-test" , kieBaseTestConfiguration , getMatchesDRL ( ) ) ; final org . kie . api . runtime . KieSession ksession = kbase . newKieSession ( ) ; try { final ja...
org . junit . Assert . assertEquals ( 1 , fired )
testSimpleRequest ( ) { final java . net . InetSocketAddress address = startClientAndServer ( ) ; final byte [ ] input = new byte [ 1024 ] ; org . apache . hc . core5 . testing . reactive . ReactiveClientTest . RANDOM . nextBytes ( input ) ; final org . reactivestreams . Publisher < java . nio . ByteBuffer > publisher ...
org . junit . Assert . assertArrayEquals ( input , output )
testMapToList ( ) { int [ ] expectedlist = new int [ ] { 0 , 0 , 1 , 0 , 0 , 0 , 1 , 1 , 0 , 1 , 1 , 0 , 1 , 0 , 1 , 0 } ; int [ ] words = new int [ ] { 35 , 106 } ; int [ ] list = com . betfair . cougar . util . BitmapBuilder . mapToList ( words ) ; "<AssertPlaceHolder>" ; } mapToList ( int [ ] ) { int [ ] list = new ...
org . junit . Assert . assertArrayEquals ( expectedlist , list )
testUpdateBookWithProxy ( ) { java . lang . String address = "http://localhost:" + ( org . apache . cxf . systest . jaxrs . JAXRSClientServerBookTest . PORT ) ; org . apache . cxf . systest . jaxrs . BookStore store = org . apache . cxf . jaxrs . client . JAXRSClientFactory . create ( address , org . apache . cxf . sys...
org . junit . Assert . assertEquals ( 125L , b . getId ( ) )
testKick ( ) { long kicked = client . kick ( 2 ) ; "<AssertPlaceHolder>" ; } kick ( long ) { com . dinstone . beanstalkc . internal . operation . KickOperation operation = new com . dinstone . beanstalkc . internal . operation . KickOperation ( bound ) ; try { return connection . handle ( operation ) . get ( ) ; } catc...
org . junit . Assert . assertEquals ( 0 , kicked )
registrationsWithTheSameSelectorAreOrderedByInsertionOrder ( ) { java . lang . String key = "selector" ; org . camunda . bpm . extension . reactor . projectreactor . selector . Selector < java . lang . Object > selector = org . camunda . bpm . extension . reactor . projectreactor . selector . Selectors . $ ( key ) ; th...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( "echo" , "bravo" , "alpha" , "charlie" , "delta" ) , objects )
withZeroPair ( ) { "<AssertPlaceHolder>" ; } combine ( int ) { if ( pairs == 0 ) return java . util . Collections . emptySet ( ) ; java . util . Set < java . lang . String > result = new java . util . HashSet ( ) ; char [ ] buff = new char [ pairs * 2 ] ; doCombine ( pairs , 0 , 0 , result , buff ) ; return result ; }
org . junit . Assert . assertEquals ( java . util . Collections . emptySet ( ) , s . combine ( 0 ) )
assertValidationThrowsExceptionContainingMultipleVariousViolations ( ) { java . util . List < org . eclipse . smarthome . config . core . validation . ConfigValidationMessage > expected = java . util . stream . Stream . of ( new org . eclipse . smarthome . config . core . validation . ConfigValidationMessage ( org . ec...
org . junit . Assert . assertThat ( org . eclipse . smarthome . config . core . internal . validation . ConfigDescriptionValidatorTest . getConfigValidationMessages ( e ) , org . hamcrest . CoreMatchers . is ( expected ) )
valueOf_int ( ) { for ( int i = 0 ; i < 7 ; i ++ ) { "<AssertPlaceHolder>" ; } } valueOf ( int ) { if ( ( dayOfWeek < 1 ) || ( dayOfWeek > 7 ) ) { throw new java . lang . IllegalArgumentException ( ( "Out<sp>of<sp>range:<sp>" + dayOfWeek ) ) ; } return net . time4j . Weekday . ENUMS [ ( dayOfWeek - 1 ) ] ; }
org . junit . Assert . assertThat ( net . time4j . Weekday . valueOf ( ( i + 1 ) ) , org . hamcrest . CoreMatchers . is ( net . time4j . Weekday . values ( ) [ i ] ) )
overviews ( ) { final org . geotools . coverage . grid . io . AbstractGridFormat format = org . geotools . gce . imagemosaic . TestUtils . getFormat ( overviewURL ) ; org . opengis . parameter . ParameterValueGroup readParams = format . getReadParameters ( ) ; final org . geotools . parameter . DefaultParameterDescript...
org . junit . Assert . assertTrue ( hasOverviewPolicyParam )
testGelijkeEntiteitInReferentie ( ) { nl . bzk . brp . model . bericht . kern . PersoonBericht persoon1 = new nl . bzk . brp . model . bericht . kern . PersoonBericht ( ) ; persoon1 . setCommunicatieID ( "p1" ) ; persoon1 . setReferentieID ( "p1" ) ; nl . bzk . brp . model . bericht . kern . PersoonBericht persoon2 = n...
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
testUISessionIsSerializable ( ) { org . eclipse . swt . widgets . Display deserializedDisplay = org . eclipse . swt . widgets . DisplaySerialization_Test . serializeAndDeserialize ( display ) ; org . eclipse . rap . rwt . service . UISession uiSession = org . eclipse . swt . widgets . DisplaySerialization_Test . getDis...
org . junit . Assert . assertNotNull ( uiSession )
testToJsonObject ( ) { javax . json . JsonObject result = org . glassfish . json . tests . JsonCollectorTest . contacts . getValuesAs ( javax . json . JsonObject . class ) . stream ( ) . filter ( ( x ) -> "F" . equals ( x . getString ( "gender" ) ) ) . collect ( javax . json . stream . JsonCollectors . toJsonObject ( (...
org . junit . Assert . assertEquals ( expected , result )
testRun_NullName_Default ( ) { when ( mockCli . commandName ( ) ) . thenReturn ( null ) ; io . bootique . command . Command mockDefault = io . bootique . run . DefaultRunnerTest . mockCommand ( "d1" , io . bootique . command . CommandOutcome . succeeded ( ) ) ; io . bootique . command . Command mockHelp = io . bootique...
org . junit . Assert . assertTrue ( result . isSuccess ( ) )
testSetGetBlueprintEntity ( ) { org . apache . ambari . server . orm . entities . BlueprintEntity bp = new org . apache . ambari . server . orm . entities . BlueprintEntity ( ) ; org . apache . ambari . server . orm . entities . BlueprintConfigEntity entity = new org . apache . ambari . server . orm . entities . Bluepr...
org . junit . Assert . assertSame ( bp , entity . getBlueprintEntity ( ) )
untemplated_inserted_sequence_should_report_max_over_interval ( ) { au . edu . wehi . idsv . SAMRecord primary = withSequence ( "NNNNNN" , Read ( 1 , 200 , "1M5S" ) ) [ 0 ] ; primary . setMappingQuality ( 100 ) ; au . edu . wehi . idsv . SAMRecord r = Read ( 1 , 100 , "2M4S" ) ; r . setMappingQuality ( 100 ) ; r . setR...
org . junit . Assert . assertEquals ( 10 , e . getBreakpointQual ( ) , 0 )
getForNoSetting ( ) { "<AssertPlaceHolder>" ; } get ( ) { java . util . TimeZone timeZone = org . slim3 . util . TimeZoneLocator . timeZones . get ( ) ; if ( timeZone != null ) { return timeZone ; } return java . util . TimeZone . getDefault ( ) ; }
org . junit . Assert . assertThat ( org . slim3 . util . TimeZoneLocator . get ( ) , org . hamcrest . CoreMatchers . is ( java . util . TimeZone . getDefault ( ) ) )
testPrevAll ( ) { java . lang . String expectedJavascript = "$('div').prevAll('span');" ; java . lang . String generatedJavascript = new org . odlabs . wiquery . core . javascript . JsStatement ( ) . $ ( null , "div" ) . chain ( org . odlabs . wiquery . core . javascript . helper . TraversingHelper . prevAll ( "span" )...
org . junit . Assert . assertEquals ( generatedJavascript , expectedJavascript )
shouldDeposit ( ) { accountEntity . deposit ( 10 ) ; "<AssertPlaceHolder>" ; } getBalance ( ) { return balance ; }
org . junit . Assert . assertThat ( accountEntity . getBalance ( ) , org . hamcrest . CoreMatchers . is ( 10 ) )
testAnnotatedParameter_02 ( ) { java . lang . String typeName = org . eclipse . xtext . common . types . testSetups . TestAnnotation . Annotated . class . getName ( ) ; org . eclipse . xtext . common . types . JvmDeclaredType type = ( ( org . eclipse . xtext . common . types . JvmDeclaredType ) ( getTypeProvider ( ) . ...
org . junit . Assert . assertEquals ( 0 , target . getAnnotations ( ) . size ( ) )
assertSame ( ) { org . mixer2 . jaxb . xhtml . Html html1 = loadHtmlTemplateThroughCache ( templateFilePath ) ; org . mixer2 . jaxb . xhtml . Html html2 = org . mixer2 . xhtml . PseudoCachingTest . m2e . loadHtmlTemplate ( new java . io . File ( templateFilePath ) ) ; "<AssertPlaceHolder>" ; } saveToString ( java . uti...
org . junit . Assert . assertEquals ( org . mixer2 . xhtml . PseudoCachingTest . m2e . saveToString ( html1 ) , org . mixer2 . xhtml . PseudoCachingTest . m2e . saveToString ( html2 ) )
testGetContent ( ) { final java . lang . String expected = "asdf" ; getContentNodeMock ( mockContent , mockDescNode , expected ) ; when ( mockDescNode . getNode ( org . modeshape . jcr . api . JcrConstants . JCR_CONTENT ) ) . thenReturn ( mockContent ) ; final java . lang . String actual = org . apache . tika . io . IO...
org . junit . Assert . assertEquals ( expected , actual )
testJavaSerialization ( ) { org . bitcoinj . utils . ExchangeRate rate = new org . bitcoinj . utils . ExchangeRate ( org . bitcoinj . utils . Fiat . parseFiat ( "EUR" , "500" ) ) ; java . io . ByteArrayOutputStream os = new java . io . ByteArrayOutputStream ( ) ; new java . io . ObjectOutputStream ( os ) . writeObject ...
org . junit . Assert . assertEquals ( rate , rateCopy )
ensureStorageEnginePickup ( ) { org . apache . drill . common . config . DrillConfig config = org . apache . drill . common . config . DrillConfig . create ( ) ; org . apache . drill . common . scanner . persistence . ScanResult scan = org . apache . drill . common . scanner . ClassPathScanner . fromPrescan ( config ) ...
org . junit . Assert . assertEquals ( engines . size ( ) , 1 )
deveObterUFComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . statusservico . consulta . NFStatusServicoConsultaRetorno consultaRetorno = new com . fincatto . documentofiscal . nfe310 . classes . statusservico . consulta . NFStatusServicoConsultaRetorno ( ) ; final com . fincatto . document...
org . junit . Assert . assertEquals ( unidadeFederativa , consultaRetorno . getUf ( ) )
testNeighbour4_5of4 ( ) { ch . ethz . globis . phtree . PhTree < long [ ] > idx = ch . ethz . globis . phtree . test . util . TestUtil . newTree ( 2 , 8 ) ; idx . put ( new long [ ] { 3 , 3 } , new long [ ] { 3 , 3 } ) ; idx . put ( new long [ ] { 2 , 2 } , new long [ ] { 2 , 2 } ) ; idx . put ( new long [ ] { 4 , 4 } ...
org . junit . Assert . assertEquals ( 5 , n )
testIsoJacksonLongDate ( ) { java . lang . String test = "2014-05-29T08:54:09.764+0200" ; java . util . Date date = org . boon . core . Dates . fromISO8601Jackson ( test ) ; java . util . Date date2 = org . boon . core . Dates . fromISO8601Jackson_ ( test ) ; "<AssertPlaceHolder>" ; } toString ( ) { if ( method . equal...
org . junit . Assert . assertEquals ( date2 . toString ( ) , ( "" + date ) )
testEquals2d ( ) { org . locationtech . jts . geom . GeometryFactory fact = new org . locationtech . jts . geom . GeometryFactory ( ) ; final org . locationtech . jts . geom . LinearRing ring = fact . createLinearRing ( new org . locationtech . jts . geom . Coordinate [ ] { new org . locationtech . jts . geom . Coordin...
org . junit . Assert . assertTrue ( expected . equals ( result ) )
isServiceSelected_false ( ) { model . setSelectedTemplateKey ( 0L ) ; "<AssertPlaceHolder>" ; } isServiceSelected ( ) { return ( selectedTemplateKey ) != 0 ; }
org . junit . Assert . assertFalse ( model . isServiceSelected ( ) )
dataPointsCollectionFieldsShouldBeRecognized ( ) { java . util . List < org . junit . contrib . theories . PotentialAssignment > assignments = potentialAssignments ( org . junit . contrib . tests . theories . internal . AllMembersSupplierTest . HasDataPointsListField . class . getMethod ( "theory" , java . lang . Strin...
org . junit . Assert . assertEquals ( 2 , assignments . size ( ) )
testTooLargeSize ( ) { int size = ( 1 << 30 ) + 1 ; try { new com . somethingsimilar . opposite_of_a_bloom_filter . ByteArrayFilter ( size ) ; org . junit . Assert . fail ( "should<sp>have<sp>thrown<sp>an<sp>IllegalArgumentException" ) ; } catch ( java . lang . IllegalArgumentException e ) { java . lang . String msg = ...
org . junit . Assert . assertEquals ( msg , e . getMessage ( ) )
testCalculateMinWithCpuMemAndGenericResource ( ) { java . util . Map < java . lang . String , java . lang . Double > allResourcesMap = new java . util . HashMap ( ) ; allResourcesMap . put ( Constants . COMMON_CPU_RESOURCE_NAME , 2.0 ) ; allResourcesMap . put ( gpuResourceName , 10.0 ) ; org . apache . storm . schedule...
org . junit . Assert . assertThat ( min , org . hamcrest . CoreMatchers . is ( 10.0 ) )
protectedTest ( ) { final com . sun . enterprise . config . serverbeans . Applications apps = getHabitat ( ) . getService ( com . sun . enterprise . config . serverbeans . Applications . class ) ; "<AssertPlaceHolder>" ; org . jvnet . hk2 . config . ConfigSupport . apply ( new org . jvnet . hk2 . config . SingleConfigC...
org . junit . Assert . assertTrue ( ( apps != null ) )
testProducerSuppression ( ) { kafkaProducer . setSuppressIncrementalAlarms ( true ) ; final org . opennms . netmgt . model . OnmsAlarm alarm = nodeDownAlarmWithRelatedAlarm ( ) ; alarmDao . save ( alarm ) ; kafkaProducer . handleNewOrUpdatedAlarm ( alarm ) ; alarm . setCounter ( 2 ) ; alarm . getRelatedAlarms ( ) . ite...
org . junit . Assert . assertEquals ( 1 , kafkaConsumer . getAlarms ( ) . size ( ) )
testClampWithIntegerValueLessThanMin ( ) { "<AssertPlaceHolder>" ; } clamp ( int , int , int ) { if ( min > max ) { return au . gov . ga . earthsci . worldwind . common . util . Util . clamp ( value , max , min ) ; } return java . lang . Math . max ( min , java . lang . Math . min ( max , value ) ) ; }
org . junit . Assert . assertEquals ( 5 , au . gov . ga . earthsci . worldwind . common . util . Util . clamp ( 4 , 5 , 10 ) )
should_getCssContent_return_null_when_mobile ( ) { final org . bonitasoft . engine . theme . impl . ThemeServiceStartupHelper themeServiceStartupHelper = new org . bonitasoft . engine . theme . impl . ThemeServiceStartupHelper ( themeService , themeRetriever , themeActionCalculator ) ; final byte [ ] cssContent = theme...
org . junit . Assert . assertThat ( cssContent )
nextStreamCR ( ) { victim = new org . sejda . sambox . input . COSParser ( inMemorySeekableSourceFrom ( getClass ( ) . getResourceAsStream ( "/sambox/stream_cr_alone.txt" ) ) ) ; org . sejda . sambox . cos . COSDictionary streamDictionary = new org . sejda . sambox . cos . COSDictionary ( ) ; streamDictionary . setInt ...
org . junit . Assert . assertEquals ( 63 , result . getFilteredLength ( ) )
testFindResource ( ) { com . navercorp . pinpoint . bootstrap . java9 . classloader . Java9BootLoader bootLoader = new com . navercorp . pinpoint . bootstrap . java9 . classloader . Java9BootLoader ( ) ; java . lang . String stringResource = com . navercorp . pinpoint . bootstrap . java9 . classloader . Java9BootLoader...
org . junit . Assert . assertNotNull ( url )
testEqualsObjectSuperFalse ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( false ) )
testStorageInRoot ( ) { reference = new com . picocontainer . gems . jndi . JNDIObjectReference ( "glarch" , ctx ) ; java . lang . String obj = new java . lang . String ( "that's<sp>me" ) ; reference . set ( obj ) ; "<AssertPlaceHolder>" ; } get ( ) { return threadLocal . get ( ) . get ( key ) ; }
org . junit . Assert . assertSame ( obj , reference . get ( ) )
testGetValue2 ( ) { org . jfree . data . statistics . DefaultMultiValueCategoryDataset d = new org . jfree . data . statistics . DefaultMultiValueCategoryDataset ( ) ; boolean pass = false ; try { d . getValue ( 0 , 0 ) ; } catch ( java . lang . IndexOutOfBoundsException e ) { pass = true ; } "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertTrue ( pass )
manageCreationProcess_VSDISK_ATTACHING_DiskIsNotAttached ( ) { org . oscm . app . iaas . data . FlowState newState = vServerProcessor . manageCreationProcess ( null , null , paramHandler , FlowState . VSDISK_ATTACHING , null ) ; "<AssertPlaceHolder>" ; } manageCreationProcess ( java . lang . String , java . lang . Stri...
org . junit . Assert . assertNull ( newState )
test_pass_inout_short ( ) { org . omg . CORBA . ShortHolder x = new org . omg . CORBA . ShortHolder ( ( ( short ) ( - 4 ) ) ) ; server . pass_inout_short ( x ) ; "<AssertPlaceHolder>" ; } pass_inout_short ( org . omg . CORBA . ShortHolder ) { x . value = ( ( short ) ( ( x . value ) + 1 ) ) ; }
org . junit . Assert . assertEquals ( ( ( short ) ( - 3 ) ) , x . value )
runTest ( ) { boolean result = checkNoError ( "Social_Profiles_Get_Thumbnail_Url" ) ; "<AssertPlaceHolder>" ; } getExpectedErrorMsg ( ) { return expectedErrorMsg ; }
org . junit . Assert . assertTrue ( getExpectedErrorMsg ( ) , result )
testResolveFixedVersionForThreeSegmentVersion ( ) { org . eclipse . tycho . ArtifactKey key = subject . resolveArtifact ( "eclipse-plugin" , "some.bundle" , "1.1.0" ) ; "<AssertPlaceHolder>" ; } getVersion ( ) { return org . eclipse . tycho . surefire . provider . impl . JUnit47Provider . VERSION ; }
org . junit . Assert . assertThat ( key . getVersion ( ) , org . hamcrest . CoreMatchers . is ( "1.1.0" ) )
testSetBackgroundOverEqualDisplosedColor ( ) { org . eclipse . swt . graphics . Color color = createColor ( ) ; gc . setBackground ( color ) ; color . dispose ( ) ; color = createColor ( ) ; gc . setBackground ( color ) ; "<AssertPlaceHolder>" ; } getBackground ( ) { checkWidget ( ) ; handleVirtual ( ) ; org . eclipse ...
org . junit . Assert . assertSame ( color , gc . getBackground ( ) )
testBinaryData ( ) { java . lang . String msg ; java . lang . String result ; java . lang . String expected ; msg = "url(data:;base64,flRlc3R+)" ; result = org . krysalis . barcode4j . tools . TestHelper . visualize ( org . krysalis . barcode4j . impl . pdf417 . PDF417HighLevelEncoder . encodeHighLevel ( msg ) ) ; expe...
org . junit . Assert . assertEquals ( expected , result )
testReadOptionalExistingOptionalFieldWhichIsNotExistingField ( ) { org . pm4j . core . pm . impl . pathresolver . Pojo p = org . pm4j . core . pm . impl . pathresolver . Pojo . make ( "head" , "subName" ) ; org . pm4j . common . expr . Expression expr = org . pm4j . core . pm . impl . expr . PathExpressionChain . parse...
org . junit . Assert . assertNull ( expr . exec ( new org . pm4j . common . expr . ExprExecCtxt ( p ) ) )
testNoLiveNodes ( ) { final io . vlingo . cluster . model . node . LocalRegistry registry = new io . vlingo . cluster . model . node . LocalRegistry ( config . nodeMatching ( io . vlingo . wire . node . Id . of ( 3 ) ) , config , testWorld . defaultLogger ( ) ) ; "<AssertPlaceHolder>" ; } liveNodes ( ) { final java . u...
org . junit . Assert . assertTrue ( registry . liveNodes ( ) . isEmpty ( ) )
onDeleteSomeActivity ( ) { prepareGetMinutes ( ) ; name . pehl . karaka . shared . model . Activity activity = td . newActivity ( ) ; cut . currentActivity = activity ; cut . onActivityChanged ( td . newActivityChangedEvent ( name . pehl . karaka . client . activity . presenter . DELETE ) ) ; "<AssertPlaceHolder>" ; ve...
org . junit . Assert . assertSame ( activity , cut . currentActivity )
testSeekEventLoc_normal ( ) { org . eclipse . tracecompass . tmf . core . trace . location . TmfLongLocation loc = new org . eclipse . tracecompass . tmf . core . trace . location . TmfLongLocation ( 3L ) ; fFixture . seekEvent ( loc ) ; "<AssertPlaceHolder>" ; } seekEvent ( double ) { if ( ( fFile ) == null ) { return...
org . junit . Assert . assertNotNull ( fFixture )
testGetUserId10 ( ) { com . liferay . portal . kernel . model . PortletInstance portletInstance = com . liferay . portal . kernel . model . PortletInstance . fromPortletInstanceKey ( getPortletInstanceKey ( PortletKeys . TEST , "1234" ) ) ; "<AssertPlaceHolder>" ; } hasUserId ( ) { return true ; }
org . junit . Assert . assertFalse ( portletInstance . hasUserId ( ) )
testServiceConfig ( ) { com . networknt . service . ServiceConfig serviceConfig = ( ( com . networknt . service . ServiceConfig ) ( com . networknt . config . Config . getInstance ( ) . getJsonObjectConfig ( com . networknt . service . ServiceConfigTest . CONFIG_NAME , com . networknt . service . ServiceConfig . class ...
org . junit . Assert . assertTrue ( ( ( singletons . size ( ) ) > 0 ) )
getName ( ) { try ( com . asakusafw . windgate . file . resource . FileResourceMirror resource = new com . asakusafw . windgate . file . resource . FileResourceMirror ( "testing" ) ) { "<AssertPlaceHolder>" ; } } getName ( ) { return profile . getName ( ) ; }
org . junit . Assert . assertThat ( resource . getName ( ) , is ( "testing" ) )
testRetrieveEmployeeByEmptyIdReturnsNull ( ) { com . martinrist . books . ppp . payroll . model . Employee eRetrieved = database . getEmployeeById ( "" ) ; "<AssertPlaceHolder>" ; } getEmployeeById ( java . lang . String ) { com . martinrist . books . ppp . payroll . model . Employee e = employees . get ( id ) ; if ( e...
org . junit . Assert . assertNull ( eRetrieved )
testEquals ( ) { org . jfree . chart . renderer . category . LayeredBarRenderer r1 = new org . jfree . chart . renderer . category . LayeredBarRenderer ( ) ; org . jfree . chart . renderer . category . LayeredBarRenderer r2 = new org . jfree . chart . renderer . category . LayeredBarRenderer ( ) ; "<AssertPlaceHolder>"...
org . junit . Assert . assertEquals ( r1 , r2 )
validateFirstFieldEmpty ( ) { mFirstField . setText ( "" ) ; mSecondField . setText ( "abcdef" ) ; com . throrinstudio . android . common . libs . validator . validate . ConfirmValidate confirmValidate = new com . throrinstudio . android . common . libs . validator . validate . ConfirmValidate ( mFirstField , mSecondFi...
org . junit . Assert . assertFalse ( confirmValidate . isValid ( ) )
endsWith_A$Seq_false ( ) { com . m3 . scalaflavor4j . Seq < java . lang . Integer > seq = com . m3 . scalaflavor4j . Seq . apply ( 1 , 2 , 3 ) ; com . m3 . scalaflavor4j . Seq < java . lang . Integer > that = com . m3 . scalaflavor4j . Seq . apply ( 1 , 2 ) ; boolean actual = seq . endsWith ( that ) ; boolean expected ...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
serverConfig ( ) { org . jboss . hal . meta . AddressTemplate input = org . jboss . hal . meta . AddressTemplate . of ( "/host=master/server-config=server-one" ) ; org . jboss . hal . meta . AddressTemplate expected = org . jboss . hal . meta . AddressTemplate . of ( "/host=*/server-config=*" ) ; org . jboss . hal . me...
org . junit . Assert . assertEquals ( expected , result )
getTestMethodNamePrefix_A$TestMethodMeta$ExceptionMeta ( ) { java . lang . String sourceCodeString = "package<sp>hoge.foo;<sp>import<sp>java.util.List;<sp>public<sp>class<sp>Sample<sp>{<sp>public<sp>Sample()<sp>{}\r\n<sp>public<sp>int<sp>doSomething(String<sp>str,<sp>long<sp>longValue)<sp>throws<sp>Throwable<sp>{<sp>Sy...
org . junit . Assert . assertEquals ( expected , actual )
stringToKeyUpSetsInitialValue ( ) { s . set ( "a" ) ; binder . bind ( s ) . toKeyUp ( box ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value . get ( ) ; }
org . junit . Assert . assertThat ( box . getValue ( ) , org . hamcrest . CoreMatchers . is ( "a" ) )
testDelegatingCursorLoadsAllElements ( ) { solrTemplate . saveBeans ( org . springframework . data . solr . core . COLLECTION_NAME , createBeansWithId ( 100 ) ) ; solrTemplate . commit ( org . springframework . data . solr . core . COLLECTION_NAME ) ; org . springframework . data . solr . core . Cursor < org . springfr...
org . junit . Assert . assertThat ( i , org . hamcrest . core . Is . is ( 100 ) )
resolveIntegerWithNumericStringValue ( ) { org . mule . runtime . core . privileged . util . AttributeEvaluator attributeEvaluator = new org . mule . runtime . core . privileged . util . AttributeEvaluator ( "#[mel:expression]" , NUMBER ) ; attributeEvaluator . initialize ( mockExpressionManager ) ; final java . lang ....
org . junit . Assert . assertThat ( attributeEvaluator . resolveValue ( event ) , org . hamcrest . core . Is . is ( java . lang . Integer . parseInt ( expectedValue ) ) )
testGetItemsWithOneFailure ( ) { java . util . HashMap < java . lang . String , java . lang . String > processProperties = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; processProperties . put ( "csw.url" , "http://hmdk.de/csw/8items" ) ; processProperties . put ( "csw_request_getrecor...
org . junit . Assert . assertEquals ( size , 9 )
testSignalWithoutSignalNameAndData ( ) { org . camunda . bpm . engine . runtime . ProcessInstance processInstance = runtimeService . startProcessInstanceByKey ( "testSignalWithProcessVariables" ) ; java . util . Map < java . lang . String , java . lang . Object > processVariables = new java . util . HashMap < java . la...
org . junit . Assert . assertEquals ( processVariables , variables )
testStaticFieldClashingWithClassName ( ) { final java . lang . String drl = ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<sp>Message(<sp>status<sp>==<sp>Message.GOODBYE,<sp>myMessage<sp>:<sp>message<sp>)<sp>\n" 1 + ( org . drools . modelcompiler . CompilerTest . Message . class . getCanonicalName ( ) ) ) + "\n" ) + "rule<sp>\"He...
org . junit . Assert . assertEquals ( 2 , kieSession . fireAllRules ( ) )
testQueryNotExistEntity ( ) { org . restfulwhois . rdap . common . model . Entity entity = entityQueryDao . query ( org . restfulwhois . rdap . QueryParamHelper . buildQueryParam ( "non-exist-entity-handle" ) ) ; "<AssertPlaceHolder>" ; } buildQueryParam ( java . lang . String ) { return new org . restfulwhois . rdap ....
org . junit . Assert . assertNull ( entity )
focusOnInit ( ) { openTestURL ( ) ; com . vaadin . testbench . elements . RadioButtonGroupElement radioButtonGroup = $ ( com . vaadin . testbench . elements . RadioButtonGroupElement . class ) . first ( ) ; "<AssertPlaceHolder>" ; } isFocusInsideElement ( com . vaadin . testbench . TestBenchElement ) { org . openqa . s...
org . junit . Assert . assertTrue ( isFocusInsideElement ( radioButtonGroup ) )
itThrowsA404IfTheDocumentDoesNotExist ( ) { when ( documentDAO . findByOwnerAndName ( owner , "document1.txt" ) ) . thenReturn ( null ) ; try { resource . show ( credentials , "bob" , "frank" , "document1.txt" ) ; org . junit . Assert . fail ( "should<sp>have<sp>returned<sp>a<sp>404<sp>but<sp>didn't" ) ; } catch ( java...
org . junit . Assert . assertThat ( e . getResponse ( ) . getStatus ( ) )
testloadOrganizationBillingDataFromHistory_withNullOrganizationHistory ( ) { long orgKey = 10000 ; long subKey = 1002 ; doReturn ( null ) . when ( dm ) . findLastHistory ( any ( org . oscm . domobjects . Organization . class ) ) ; org . oscm . billingservice . dao . model . OrganizationAddressData addressData = bdr . l...
org . junit . Assert . assertEquals ( null , addressData )
testPlannerCalendar ( ) { net . sf . mpxj . ProjectFile mpp = new net . sf . mpxj . planner . PlannerReader ( ) . read ( net . sf . mpxj . junit . MpxjTestData . filePath ( "planner-calendar.planner" ) ) ; "<AssertPlaceHolder>" ; } filePath ( java . lang . String ) { return ( ( net . sf . mpxj . junit . MpxjTestData . ...
org . junit . Assert . assertNotNull ( mpp )
equalsReturnsTrueForSameScrollIds ( ) { io . searchbox . core . SearchScroll searchScroll1 = new io . searchbox . core . SearchScroll . Builder ( "scroller1" , "scroll" ) . build ( ) ; io . searchbox . core . SearchScroll searchScroll1Duplicate = new io . searchbox . core . SearchScroll . Builder ( "scroller1" , "scrol...
org . junit . Assert . assertEquals ( searchScroll1 , searchScroll1Duplicate )
test_condition ( ) { org . milyn . Smooks smooks = new org . milyn . Smooks ( getClass ( ) . getResourceAsStream ( "test_bean_11.xml" ) ) ; org . milyn . payload . JavaResult result = new org . milyn . payload . JavaResult ( ) ; org . milyn . container . ExecutionContext execContext = smooks . createExecutionContext ( ...
org . junit . Assert . assertEquals ( 2.0 , order . getTotal ( ) , 0.0 )
testleverBerichtenNietSuccesvol ( ) { org . mockito . Mockito . when ( verwerker . verwerk ( any ( nl . bzk . brp . levering . business . stappen . populatie . LeveringautorisatieStappenOnderwerp . class ) , any ( nl . bzk . brp . levering . business . stappen . populatie . LeveringsautorisatieVerwerkingContext . class...
org . junit . Assert . assertFalse ( resultaat . isSuccesvol ( ) )
parseRfc822Date ( ) { java . lang . String formatted = software . amazon . awssdk . utils . DateUtilsTest . LONG_DATE_FORMAT . format ( java . util . Date . from ( software . amazon . awssdk . utils . DateUtilsTest . INSTANT ) ) ; java . time . Instant expected = software . amazon . awssdk . utils . DateUtilsTest . LON...
org . junit . Assert . assertEquals ( expected , actual )
testSelectNoTargetLimit0 ( ) { com . orientechnologies . orient . core . sql . executor . OResultSet result = com . orientechnologies . orient . core . sql . executor . OSelectStatementExecutionTest . db . query ( "select<sp>1<sp>as<sp>one,<sp>2<sp>as<sp>two,<sp>2+3<sp>limit<sp>0" ) ; "<AssertPlaceHolder>" ; com . orie...
org . junit . Assert . assertFalse ( result . hasNext ( ) )
testDefaultFormatVector3D ( ) { java . util . Locale defaultLocal = java . util . Locale . getDefault ( ) ; java . util . Locale . setDefault ( getLocale ( ) ) ; org . hipparchus . geometry . euclidean . threed . Vector3D c = new org . hipparchus . geometry . euclidean . threed . Vector3D ( 232.22222222222 , ( - 342.33...
org . junit . Assert . assertEquals ( expected , actual )
testWrap ( ) { cz . sigler . android . aavalidation . wrapper . ModelSupportWrapperTest . TestModel model = new cz . sigler . android . aavalidation . wrapper . ModelSupportWrapperTest . TestModel ( ) ; cz . sigler . android . aavalidation . api . model . IModelSupport < cz . sigler . android . aavalidation . wrapper ....
org . junit . Assert . assertTrue ( ( model == ( support . getModel ( ) ) ) )
testHandleSetSelection ( ) { button = new org . eclipse . swt . widgets . Button ( shell , org . eclipse . swt . SWT . CHECK ) ; handler = new org . eclipse . swt . internal . widgets . buttonkit . ButtonOperationHandler ( button ) ; handler . handleSet ( new org . eclipse . rap . json . JsonObject ( ) . add ( "selecti...
org . junit . Assert . assertTrue ( button . getSelection ( ) )
testWriteAndRead ( ) { org . apache . beam . sdk . io . aws . s3 . S3FileSystem s3FileSystem = org . apache . beam . sdk . io . aws . s3 . S3TestUtils . buildMockedS3FileSystem ( org . apache . beam . sdk . io . aws . s3 . S3TestUtils . s3Options ( ) , org . apache . beam . sdk . io . aws . s3 . S3FileSystemTest . clie...
org . junit . Assert . assertArrayEquals ( readArray , writtenArray )
testContentDispositionParsingBadParse ( ) { final java . lang . String contentDisposition = "bad-header" ; "<AssertPlaceHolder>" ; } parseContentDisposition ( java . lang . String ) { java . util . regex . Matcher m = org . apache . nifi . processors . gcp . storage . Util . CONTENT_DISPOSITION_PATTERN . matcher ( cont...
org . junit . Assert . assertNull ( org . apache . nifi . processors . gcp . storage . Util . parseContentDisposition ( contentDisposition ) )
nextThrowsNoSuchElementException ( ) { java . lang . Iterable < org . nibor . autolink . LinkSpan > iterable = getSingleLinkIterable ( ) ; java . util . Iterator < org . nibor . autolink . LinkSpan > iterator = iterable . iterator ( ) ; "<AssertPlaceHolder>" ; iterator . next ( ) ; } getSingleLinkIterable ( ) { java . ...
org . junit . Assert . assertNotNull ( iterator . next ( ) )
testRubyValGeneration ( ) { com . smartitengineering . cms . spi . content . template . TypeFieldValidator generator = new com . smartitengineering . cms . spi . impl . content . template . RubyValidatorGenerator ( ) ; final com . smartitengineering . cms . api . workspace . ValidatorTemplate template = mockery . mock ...
org . junit . Assert . assertFalse ( provider . isValidField ( content , field ) )
testBuildWithParametersWithOrderBy ( ) { java . lang . String abbrname = "fsfds" ; java . lang . String name = "name" ; org . lnu . is . domain . enrolment . type . EnrolmentType context = new org . lnu . is . domain . enrolment . type . EnrolmentType ( ) ; context . setName ( name ) ; context . setAbbrName ( abbrname ...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testReverseInsertNoNormalizationNecessaryOneBaseSecond ( ) { de . charite . compbio . jannovar . reference . TranscriptPosition txPos = new de . charite . compbio . jannovar . reference . TranscriptPosition ( infoReverse , 2 , PositionType . ZERO_BASED ) ; de . charite . compbio . jannovar . reference . GenomePosition ...
org . junit . Assert . assertEquals ( change , updatedChange )
testGetIndentionWidth_asTable ( ) { org . eclipse . nebula . widgets . grid . GridTestUtil . createGridItems ( grid , 3 , 0 ) ; int indentationWidth = grid . getAdapter ( org . eclipse . nebula . widgets . grid . internal . IGridAdapter . class ) . getIndentationWidth ( ) ; "<AssertPlaceHolder>" ; } getAdapter ( java ....
org . junit . Assert . assertEquals ( 0 , indentationWidth )
testCoordinateDimensionPolygonEmptyLite3D ( ) { org . locationtech . jts . geom . Geometry geom = org . geotools . geometry . jts . coordinatesequence . CoordinateSequencesTest . liteGF . createPolygon ( org . geotools . geometry . jts . coordinatesequence . CoordinateSequencesTest . liteGF . createLinearRing ( org . g...
org . junit . Assert . assertEquals ( 3 , org . geotools . geometry . jts . coordinatesequence . CoordinateSequences . coordinateDimension ( geom ) )
testAddGeometry ( ) { java . lang . String layerName = "Points<sp>of<sp>Interest" ; com . wdtinc . mapbox_vector_tile . adapt . jts . model . List < org . locationtech . jts . geom . Geometry > geometries = new com . wdtinc . mapbox_vector_tile . adapt . jts . model . ArrayList ( ) ; org . locationtech . jts . geom . P...
org . junit . Assert . assertTrue ( layer . getGeometries ( ) . contains ( point ) )