input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
doubleClickTest ( ) { iface . go ( testPage ) ; com . sugarcrm . candybean . automation . webdriver . WebDriverElement doubleClickText = $ ( "#doubleOrRightClickDiv<sp>#doubleClickText" ) ; doubleClickText . doubleClick ( ) ; "<AssertPlaceHolder>" ; } isDisplayed ( ) { logger . info ( ( "Determining<sp>if<sp>element<sp... | org . junit . Assert . assertFalse ( doubleClickText . isDisplayed ( ) ) |
testSINGLE ( ) { com . hp . mwtests . ts . txoj . common . resources . AtomicObject obj = new com . hp . mwtests . ts . txoj . common . resources . AtomicObject ( com . arjuna . ats . arjuna . ObjectModel . SINGLE ) ; com . arjuna . ats . arjuna . AtomicAction A = new com . arjuna . ats . arjuna . AtomicAction ( ) ; A ... | org . junit . Assert . assertEquals ( 1234 , obj . get ( ) ) |
trimAll_A$String_AnsiDialectTest ( ) { org . junithelper . core . filter . impl . TrimInsideOfBraceFilter target = new org . junithelper . core . filter . impl . TrimInsideOfBraceFilter ( ) ; java . lang . String src = "String<sp>result<sp>=<sp>new<sp>AnsiDialect().createLogStatement(\"SELECT<sp>?<sp>FROM<sp>dual<sp>WH... | org . junit . Assert . assertEquals ( expected , actual ) |
testView ( ) { org . nd4j . linalg . api . ndarray . INDArray matrix = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 8 , 8 ) . reshape ( 2 , 4 ) ; org . nd4j . linalg . api . ndarray . INDArray view = matrix . slice ( 0 ) ; org . nd4j . tensorflow . conversion . TensorflowConversion conversion = org . nd4j . te... | org . junit . Assert . assertEquals ( view , converted ) |
testParseDifferentImaginaryChar ( ) { java . lang . String source = ( ( ( "-1" + ( getDecimalCharacter ( ) ) ) + "2323<sp>-<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "4343j" ; org . apache . commons . math3 . complex . Complex expected = new org . apache . commons . math3 . complex . Complex ( ( - 1.2323 ) , ( - 1.4343... | org . junit . Assert . assertEquals ( expected , actual ) |
getPatients_shouldGetNoVoidedPersonWhenVoidedFalseIsPassed ( ) { java . util . List < org . openmrs . Patient > patients = dao . getPatients ( "voided-bravo" , false , 0 , 11 ) ; "<AssertPlaceHolder>" ; } size ( ) { return getMemberships ( ) . stream ( ) . filter ( ( m ) -> ! ( m . getVoided ( ) ) ) . collect ( java . ... | org . junit . Assert . assertEquals ( 0 , patients . size ( ) ) |
testParametersAreNotNull ( ) { com . eclipsesource . tabris . tracking . internal . piwik . model . action . Action action = new com . eclipsesource . tabris . tracking . internal . piwik . model . action . Action ( "foo" ) ; java . util . Map < java . lang . String , java . lang . Object > parameters = action . getPar... | org . junit . Assert . assertNotNull ( parameters ) |
testBug706786 ( ) { org . openscience . cdk . interfaces . IAtomContainer superStructure = org . openscience . cdk . fingerprint . AbstractFixedLengthFingerprinterTest . bug706786_1 ( ) ; org . openscience . cdk . interfaces . IAtomContainer subStructure = org . openscience . cdk . fingerprint . AbstractFixedLengthFing... | org . junit . Assert . assertThat ( org . openscience . cdk . fingerprint . AbstractFixedLengthFingerprinterTest . and ( superBS , subBS ) , org . hamcrest . CoreMatchers . is ( subBS ) ) |
testStatus ( ) { com . blade . mvc . http . Response mockResponse = mockHttpResponse ( 666 ) ; "<AssertPlaceHolder>" ; } statusCode ( ) { return this . statusCode ; } | org . junit . Assert . assertEquals ( 666 , mockResponse . statusCode ( ) ) |
isEnabled ( ) { "<AssertPlaceHolder>" ; } isEnabled ( ) { org . junit . Assert . assertTrue ( endpoint . isEnabled ( ) ) ; } | org . junit . Assert . assertTrue ( endpoint . isEnabled ( ) ) |
testTruncDecimalColumnGreaterThanPrecision ( ) { java . lang . String sqlText = java . lang . String . format ( "select<sp>trunc(n,<sp>8),<sp>n<sp>from<sp>%s" , com . splicemachine . derby . impl . sql . execute . operations . TruncateFunctionIT . QUALIFIED_TABLE_NAME ) ; java . sql . ResultSet rs = com . splicemachine... | org . junit . Assert . assertEquals ( ( ( "\n" + sqlText ) + "\n" ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) ) |
serializeReplyWithJoynrHttpException ( ) { io . joynr . exceptions . JoynrHttpException error = new io . joynr . exceptions . JoynrHttpException ( 404 , "detail<sp>message:<sp>JoynrHttpException" ) ; joynr . Reply reply = new joynr . Reply ( java . util . UUID . randomUUID ( ) . toString ( ) , error ) ; java . lang . S... | org . junit . Assert . assertEquals ( reply , receivedReply ) |
testSetLocalTimeAndReadBack ( ) { java . time . LocalTime data = java . time . LocalTime . parse ( "16:21:51.123456" ) ; insertWithoutType ( data , "time_without_time_zone_column" ) ; java . lang . String readBack = readString ( "time_without_time_zone_column" ) ; "<AssertPlaceHolder>" ; } readString ( java . lang . St... | org . junit . Assert . assertEquals ( "16:21:51.123456" , readBack ) |
test_isVertical ( ) { forVectors ( new org . eclipse . gef . geometry . tests . VectorTests . VectorAction ( ) { @ org . eclipse . gef . geometry . tests . Override public void action ( org . eclipse . gef . geometry . euclidean . Vector a ) { "<AssertPlaceHolder>" ; } } ) ; } isVertical ( ) { return ( ! ( org . eclips... | org . junit . Assert . assertTrue ( ( ( a . isVertical ( ) ) == ( ( ! ( org . eclipse . gef . geometry . internal . utils . PrecisionUtils . equal ( a . y , 0 ) ) ) && ( org . eclipse . gef . geometry . internal . utils . PrecisionUtils . equal ( a . x , 0 ) ) ) ) ) |
reverseForEach ( ) { com . gs . collections . api . list . ImmutableList < java . lang . Integer > list = Lists . immutable . of ( ) ; com . gs . collections . api . list . MutableList < java . lang . Integer > result = Lists . mutable . of ( ) ; list . reverseForEach ( com . gs . collections . impl . block . procedure... | org . junit . Assert . assertEquals ( list , result ) |
testcanCreateAUUID ( ) { com . splicemachine . uuid . Snowflake snowflake = new com . splicemachine . uuid . Snowflake ( ( ( short ) ( 1 << 6 ) ) ) ; long uuid = snowflake . nextUUID ( ) ; "<AssertPlaceHolder>" ; } nextUUID ( ) { long timestamp ; synchronized ( this ) { timestamp = java . lang . System . currentTimeMil... | org . junit . Assert . assertTrue ( ( uuid != 0 ) ) |
lpcFeaturesAreAveragesOnTheLpcCoefficientsReturnedByLinearPredictiveCodingAlgorithm ( ) { lpc = new com . bitsinharmony . recognito . features . LpcFeaturesExtractor ( com . bitsinharmony . recognito . features . LpcFeaturesExtractorTest . DEFAULT_SAMPLE_RATE , com . bitsinharmony . recognito . features . LpcFeaturesEx... | org . junit . Assert . assertThat ( features , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( reference ) ) ) |
testGetDisplayName ( ) { for ( org . dcache . util . NetworkInterfaceViewTests . InterfaceAndViewPair pair : _interfaces ) { java . net . NetworkInterface ni = pair . getNetworkInterface ( ) ; org . dcache . util . NetworkInterfaceView niv = pair . getNetworkInterfaceView ( ) ; "<AssertPlaceHolder>" ; } } getDisplayNam... | org . junit . Assert . assertEquals ( ni . getDisplayName ( ) , niv . getDisplayName ( ) ) |
testCreateRegionFactoryWithAttributes ( ) { org . apache . geode . cache . Cache mockCache = mock ( org . apache . geode . cache . Cache . class ) ; org . apache . geode . cache . RegionAttributes mockRegionAttributes = mock ( org . apache . geode . cache . RegionAttributes . class ) ; org . apache . geode . cache . Re... | org . junit . Assert . assertSame ( mockRegionFactory , factoryBean . createRegionFactory ( mockCache ) ) |
testFlowResultNamedOnFailure ( ) { java . net . URI resource = getClass ( ) . getResource ( "/corrupted/on_failure/flow_1.sl" ) . toURI ( ) ; io . cloudslang . lang . compiler . modeller . result . ExecutableModellingResult result = compiler . preCompileSource ( io . cloudslang . lang . compiler . SlangSource . fromFil... | org . junit . Assert . assertTrue ( ( ( result . getErrors ( ) . size ( ) ) > 0 ) ) |
getDistanceTestPartialMatch ( ) { java . lang . String needle = "needle" ; java . lang . String haystack = "ndle" ; org . eclipse . sw360 . cvesearch . datasource . matcher . Match match = org . eclipse . sw360 . cvesearch . datasource . matcher . ModifiedLevenshteinDistance . levenshteinMatch ( needle , haystack ) ; "... | org . junit . Assert . assertThat ( match . getDistance ( ) , is ( 2 ) ) |
without ( ) { org . eclipse . collections . api . list . MutableList < java . lang . Integer > list = new org . eclipse . collections . impl . list . fixed . EmptyList ( ) ; "<AssertPlaceHolder>" ; } without ( T ) { this . remove ( element ) ; return this ; } | org . junit . Assert . assertSame ( list , list . without ( 2 ) ) |
testGetEndpointSchema ( ) { "<AssertPlaceHolder>" ; } getEndpointSchema ( org . talend . components . api . container . RuntimeContainer , java . lang . String ) { return null ; } | org . junit . Assert . assertNull ( source . getEndpointSchema ( null , null ) ) |
testResourcesFolderContainsTheSplashScreenFile ( ) { java . util . List < java . io . File > splashScreenFile = findFilesByFileFilter ( getEndWithFileFilter ( org . mafagafogigante . dungeon . io . ResourcesFolderTest . SPLASH_SCREEN_FILE_NAME ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return commands . size ( ) ; } | org . junit . Assert . assertEquals ( 1 , splashScreenFile . size ( ) ) |
testAggregateCU_To_NewTUs_1Tomato ( ) { testsBase . testAggregateCU_To_NewTUs_1Tomato_DoIt ( false ) ; final java . util . List < de . metas . handlingunits . trace . HUTraceEvent > huTraceEvents = de . metas . handlingunits . trace . repository . RetrieveDbRecordsUtil . queryAll ( ) ; "<AssertPlaceHolder>" ; } size ( ... | org . junit . Assert . assertThat ( huTraceEvents . size ( ) , org . hamcrest . Matchers . is ( 4 ) ) |
networkLoadHappyPath ( ) { java . util . List < com . krillsson . sysapi . core . domain . network . NetworkInterfaceLoad > networkInterfaceLoads = provider . networkInterfaceLoads ( ) ; "<AssertPlaceHolder>" ; } networkInterfaceLoads ( ) { return java . util . Arrays . stream ( hal . getNetworkIFs ( ) ) . map ( mapToL... | org . junit . Assert . assertThat ( networkInterfaceLoads . size ( ) , org . hamcrest . core . Is . is ( 2 ) ) |
testBuscarLancamentosPorFuncionarioId ( ) { java . util . List < com . kazale . pontointeligente . api . entities . Lancamento > lancamentos = this . lancamentoRepository . findByFuncionarioId ( funcionarioId ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( 2 , lancamentos . size ( ) ) |
testNIT ( ) { final int size = 2000000 ; final int range = 8700 ; final org . hillview . utils . Randomness rn = this . getRandomness ( ) ; final org . hillview . table . columns . IntArrayColumn col = org . hillview . utils . IntArrayGenerator . getRandIntArray ( size , range , "Test" , rn ) ; final int accuracy = 14 ... | org . junit . Assert . assertTrue ( nit . exceedThreshold ( ) ) |
testConvert ( ) { java . lang . String name = "DutyN" ; java . lang . String abbrName = "AN" ; org . lnu . is . domain . duty . type . DutyType expected = new org . lnu . is . domain . duty . type . DutyType ( ) ; expected . setName ( name ) ; expected . setAbbrName ( abbrName ) ; org . lnu . is . resource . duty . typ... | org . junit . Assert . assertEquals ( expected , actual ) |
testFoursquareApiStringStringStringStringIOHandler ( ) { fi . foyt . foursquare . api . tests . fi . foyt . foursquare . api . FoursquareApi foursquareApi = new fi . foyt . foursquare . api . tests . fi . foyt . foursquare . api . FoursquareApi ( "clientId" , "clientSecret" , "redirectUrl" , "token" , new fi . foyt . f... | org . junit . Assert . assertEquals ( "token" , foursquareApi . getOAuthToken ( ) ) |
deveObterIdComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . evento . manifestacaodestinatario . NFInfoEventoManifestacaoDestinatario infoEventoManifestacaoDestinatario = new com . fincatto . documentofiscal . nfe310 . classes . evento . manifestacaodestinatario . NFInfoEventoManifestacaoD... | org . junit . Assert . assertEquals ( id , infoEventoManifestacaoDestinatario . getId ( ) ) |
testGetRequestUri ( ) { when ( httpServletRequest . getRequestURI ( ) ) . thenReturn ( "/index" ) ; context . init ( servletContext , httpServletRequest , httpServletResponse ) ; "<AssertPlaceHolder>" ; } getRequestPath ( ) { return wrapped . getRequestPath ( ) ; } | org . junit . Assert . assertEquals ( "/index" , context . getRequestPath ( ) ) |
testRegisterDuplicateObserver ( ) { final org . restcomm . media . core . control . mgcp . message . MgcpMessageObserver observer = mock ( org . restcomm . media . core . control . mgcp . message . MgcpMessageObserver . class ) ; final org . restcomm . media . core . control . mgcp . transaction . MgcpTransactionNumber... | org . junit . Assert . assertEquals ( 1 , observers . size ( ) ) |
test_multisetType_Person_otherAddressMap ( ) { org . joda . beans . MetaProperty < com . google . common . collect . ImmutableMultiset < java . lang . String > > test = org . joda . beans . sample . ImmPerson . meta ( ) . codeCounts ( ) ; "<AssertPlaceHolder>" ; } collectionType ( org . joda . beans . MetaProperty , ja... | org . junit . Assert . assertEquals ( org . joda . beans . JodaBeanUtils . collectionType ( test , org . joda . beans . sample . Person . class ) , java . lang . String . class ) |
shortValidationShouldWork ( ) { when ( context . getParameter ( "param1" ) ) . thenReturn ( "blah" ) ; create ( "shortParam" ) . invoke ( mockController , context ) ; verify ( mockController ) . shortParam ( null ) ; "<AssertPlaceHolder>" ; } hasViolation ( java . lang . String ) { return this . violations . containsKe... | org . junit . Assert . assertTrue ( validation . hasViolation ( "param1" ) ) |
shouldInjectIfConfigUuidMatches ( ) { org . openqa . selenium . ImmutableCapabilities defaultConfigWithUuid = new org . openqa . selenium . ImmutableCapabilities ( "browserName" , "firefox" , BINARY , "binary" , "firefox_profile" , "profile" , MARIONETTE , true , org . openqa . grid . internal . utils . configuration .... | org . junit . Assert . assertEquals ( true , seen . getCapability ( org . openqa . grid . selenium . node . MARIONETTE ) ) |
testDisruptorBlockingQueueTestC1 ( ) { final int cap = 10 ; java . util . concurrent . BlockingQueue < java . lang . Integer > dbq = new com . conversantmedia . util . concurrent . DisruptorBlockingQueue < java . lang . Integer > ( cap ) ; while ( dbq . offer ( java . lang . Integer . valueOf ( 0 ) ) ) ; "<AssertPlaceH... | org . junit . Assert . assertEquals ( 16 , dbq . size ( ) ) |
testGetUser ( ) { mockery . checking ( new org . jmock . Expectations ( ) { { one ( dao ) . load ( with ( equal ( 500 ) ) ) ; will ( returnValue ( emptyUser ) ) ; } } ) ; "<AssertPlaceHolder>" ; } getUser ( java . lang . Integer ) { log . debug ( ( ( "user<sp>" + id ) + "<sp>retrieved" ) ) ; return dao . load ( id ) ; ... | org . junit . Assert . assertSame ( emptyUser , manager . getUser ( 500 ) ) |
split_string_colon_using_apache_commons ( ) { java . lang . String [ ] elementsInString = org . apache . commons . lang3 . StringUtils . split ( "This:is:a:sentence:by:colon" , ":" ) ; com . levelup . java . string . SplitStringByColon . logger . info ( java . util . Arrays . toString ( elementsInString ) ) ; "<AssertP... | org . junit . Assert . assertTrue ( ( ( elementsInString . length ) == 6 ) ) |
defaultPathIsEmpty ( ) { de . taimos . pipeline . aws . S3UploadStep step = new de . taimos . pipeline . aws . S3UploadStep ( "my-bucket" , false , false ) ; step . setFile ( "my-file" ) ; "<AssertPlaceHolder>" ; } getPath ( ) { return this . path ; } | org . junit . Assert . assertEquals ( "" , step . getPath ( ) ) |
writeBeanInvalidBean_hasBindings_singleEvent ( ) { binder . forField ( nameField ) . bind ( Person :: getFirstName , Person :: setFirstName ) ; binder . readBean ( item ) ; binder . withValidator ( com . vaadin . flow . data . binder . Validator . from ( ( person ) -> false , "" ) ) ; binder . addStatusChangeListener (... | org . junit . Assert . assertNull ( event . get ( ) ) |
testInvalidRemove ( ) { "<AssertPlaceHolder>" ; queue . add ( "foo" , 1 ) ; try { queue . remove ( ) ; org . junit . Assert . fail ( "should<sp>have<sp>failed" ) ; } catch ( java . lang . IllegalStateException e ) { } } peekFirst ( ) { if ( ( currentItem ) == null ) { currentItem = queue . peek ( ) ; } return currentIt... | org . junit . Assert . assertNull ( queue . peekFirst ( ) ) |
testVersionChange ( ) { fCheckpointCollection . dispose ( ) ; try ( java . io . RandomAccessFile f = new java . io . RandomAccessFile ( fFile , "rw" ) ) { f . writeInt ( ( - 1 ) ) ; } fCheckpointCollection = createCollection ( ) ; "<AssertPlaceHolder>" ; } isCreatedFromScratch ( ) { return fCheckpoints . isCreatedFromS... | org . junit . Assert . assertTrue ( fCheckpointCollection . isCreatedFromScratch ( ) ) |
testMapFileAccess ( ) { org . junit . Assume . assumeTrue ( org . apache . hadoop . io . nativeio . NativeIO . isAvailable ( ) ) ; org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; conf . setInt ( ShuffleHandler . SHUFFLE_PORT_CONFIG_KEY , 0 ) ; conf . setInt ( S... | org . junit . Assert . assertTrue ( new java . lang . String ( byteArr ) . contains ( message ) ) |
awaitTimesout ( ) { com . cloudhopper . commons . util . windowing . Window < java . lang . Integer , java . lang . String , java . lang . String > window = new com . cloudhopper . commons . util . windowing . Window < java . lang . Integer , java . lang . String , java . lang . String > ( 1 ) ; com . cloudhopper . com... | org . junit . Assert . assertFalse ( requestFuture0 . await ( 100 ) ) |
capacityViolationAfterAct8_shouldWorkWhenViolated ( ) { buildAnotherScenarioWithOnlyOneVehicleAndWithoutAnyConstraintsBefore ( ) ; jsprit . core . reporting . SolutionPrinter . print ( vrp , solution , SolutionPrinter . Print . VERBOSE ) ; jsprit . core . analysis . SolutionAnalyser analyser = new jsprit . core . analy... | org . junit . Assert . assertEquals ( 5 , cap . get ( 0 ) ) |
test ( ) { cn . xiaowenjie . retrofitdemo . beans . ResultBean result = t . getForObject ( ( ( cn . xiaowenjie . myrestutil . RestTemplateTest . HOST ) + "/get1" ) , cn . xiaowenjie . retrofitdemo . beans . ResultBean . class ) ; "<AssertPlaceHolder>" ; System . out . println ( result ) ; } | org . junit . Assert . assertNotNull ( result ) |
testWrapMemoryMapped ( ) { java . io . File file = java . io . File . createTempFile ( "netty-test" , "tmp" ) ; java . nio . channels . FileChannel output = null ; java . nio . channels . FileChannel input = null ; io . netty . buffer . ByteBuf b1 = null ; io . netty . buffer . ByteBuf b2 = null ; try { output = new ja... | org . junit . Assert . assertEquals ( b2 , b1 . slice ( 2 , 2 ) ) |
testGetShapeIndex_noParent ( ) { when ( parentPickerControl . getParent ( ) ) . thenReturn ( null ) ; java . util . OptionalInt result = control . getShapeIndex ( ) ; "<AssertPlaceHolder>" ; } isPresent ( ) { return isPresent ; } | org . junit . Assert . assertFalse ( result . isPresent ( ) ) |
delegateWithTwoMethods ( mockit . DelegateTest$Collaborator ) { new mockit . Expectations ( ) { { collaborator . doSomething ( true , null , "str" ) ; result = new mockit . Delegate ( ) { private java . lang . String someOther ( ) { return "" ; } void doSomething ( boolean b , int [ ] i , java . lang . String s ) { } }... | org . junit . Assert . assertNull ( collaborator . doSomething ( true , null , "str" ) ) |
testCustomTask ( ) { com . cloudera . labs . envelope . run . TestTaskStep . customTaskGlobal = "" ; java . util . Map < java . lang . String , java . lang . Object > taskStepConfigMap = com . google . common . collect . Maps . newHashMap ( ) ; taskStepConfigMap . put ( TaskFactory . TYPE_CONFIG_NAME , "task" ) ; taskS... | org . junit . Assert . assertEquals ( com . cloudera . labs . envelope . run . TestTaskStep . customTaskGlobal , "hello" ) |
testSetCurrentDataTypeRowWhenCurrentUUIDIsBlank ( ) { final elemental2 . dom . Element element1 = fakeDataTypeRow ( "uuid1" ) ; final elemental2 . dom . Element element2 = fakeDataTypeRow ( "uuid2" ) ; doReturn ( "uuid1" ) . when ( view ) . getCurrentUUID ( ) ; doReturn ( "something" ) . when ( view ) . getPreviousUUID... | org . junit . Assert . assertEquals ( element1 , actualElement . get ( ) ) |
testExtractHiveTypeMappingWithDiffColumnAndTypeNumber ( ) { java . lang . String typeString = "string,bigint,struct<transactionid:bigint,bucketid:int,rowid:bigint>" ; conf . set ( serdeConstants . LIST_COLUMN_TYPES , typeString ) ; map = org . apache . hadoop . hive . dynamodb . util . HiveDynamoDBUtil . extractHiveTyp... | org . junit . Assert . assertTrue ( map . isEmpty ( ) ) |
elemental2ElementTag_customElementWithCustomTagChild ( ) { final java . util . Collection < java . lang . String > tags = org . jboss . errai . ui . rebind . ioc . element . ElementProviderExtension . elemental2ElementTags ( org . jboss . errai . ui . rebind . ioc . element . ElementProviderExtensionTest . metaClass ( ... | org . junit . Assert . assertEquals ( emptyList ( ) , tags ) |
testSerialization ( ) { org . jfree . data . xy . MatrixSeries s1 = new org . jfree . data . xy . MatrixSeries ( "Series" , 2 , 3 ) ; s1 . update ( 0 , 0 , 1.1 ) ; org . jfree . data . xy . MatrixSeriesCollection c1 = new org . jfree . data . xy . MatrixSeriesCollection ( ) ; c1 . addSeries ( s1 ) ; org . jfree . data ... | org . junit . Assert . assertEquals ( c1 , c2 ) |
testLoadInstances ( ) { cc . mallet . types . InstanceList is = cc . mallet . util . LDAUtils . loadInstances ( ds , null , 0 ) ; "<AssertPlaceHolder>" ; } loadInstances ( java . lang . String , java . lang . String , int ) { return cc . mallet . util . LDAUtils . loadInstancesPrune ( inputFile , stoplistFile , pruneCo... | org . junit . Assert . assertEquals ( 5 , is . size ( ) ) |
nextDateTest ( ) { org . marc . everest . rmim . uv . cdar2 . pocd_mt000040uv . EntryRelationship entryRelationship = org . oscarehr . e2e . model . export . body . ImmunizationsModelTest . immunizationsModel . getNextDate ( ) ; "<AssertPlaceHolder>" ; } getNextDate ( ) { return nextDate ; } | org . junit . Assert . assertNotNull ( entryRelationship ) |
testClosedOpenDescending ( ) { org . apache . commons . functor . range . LongRange range = org . apache . commons . functor . range . Ranges . longRange ( 5L , BoundType . CLOSED , ( - 5L ) , BoundType . OPEN , ( - 3L ) ) ; java . util . List < java . lang . Long > expected = java . util . Arrays . asList ( 5L , 2L , ... | org . junit . Assert . assertEquals ( expected , elements ) |
test_matchSubUrls_fail_one_param_prefix ( ) { java . util . Map < java . lang . String , java . lang . String > params = urlMarcher . matchSubUrls ( "testX-{id}" , "testY-abc" ) ; "<AssertPlaceHolder>" ; } matchSubUrls ( java . lang . String , java . lang . String ) { boolean canContinue = true ; java . util . Map < ja... | org . junit . Assert . assertTrue ( ( params == null ) ) |
convert_error_noexception ( ) { "<AssertPlaceHolder>" ; } convert ( com . psddev . dari . util . TypeReference , java . lang . Object ) { return ( ( T ) ( convert ( returnTypeReference . getType ( ) , object ) ) ) ; } | org . junit . Assert . assertEquals ( null , converter . convert ( com . psddev . dari . util . Integer . class , "a" ) ) |
testTaskHandleContainsAutoGeneratedTaskNameWhenTaskNameNotDefinedInTaskOptions ( ) { com . google . appengine . api . taskqueue . Queue queue = com . google . appengine . api . taskqueue . QueueFactory . getDefaultQueue ( ) ; com . google . appengine . api . taskqueue . TaskHandle handle = waitOnFuture ( queue . addAsy... | org . junit . Assert . assertNotNull ( handle . getName ( ) ) |
getPinpointEndpointIdTestWithPPSharedContext ( ) { android . content . SharedPreferences sharedPreferences = android . support . test . InstrumentationRegistry . getTargetContext ( ) . getSharedPreferences ( ( ( TEST_PP_APP_ID_1 ) + ( PP_PREFERENCES_AND_FILE_MANAGER_SUFFIX ) ) , Context . MODE_PRIVATE ) ; sharedPrefere... | org . junit . Assert . assertEquals ( com . amazonaws . mobileconnectors . cognitoidentityprovider . unauth . TEST_PP_ENDPOINT_1 , pp_endpoint ) |
getValidTableDump ( ) { java . io . ByteArrayInputStream is = new java . io . ByteArrayInputStream ( "dump" . getBytes ( ) ) ; when ( databaseManager . getTableDump ( org . mockito . ArgumentMatchers . anyString ( ) , org . mockito . ArgumentMatchers . anyString ( ) , org . mockito . ArgumentMatchers . anyString ( ) ) ... | org . junit . Assert . assertNotNull ( base64 ) |
testNativeSort2 ( ) { org . nd4j . linalg . api . ndarray . INDArray array = org . nd4j . linalg . factory . Nd4j . rand ( 1 , 10000 ) ; org . nd4j . linalg . api . ndarray . INDArray res = org . nd4j . linalg . factory . Nd4j . sort ( array , true ) ; org . nd4j . linalg . api . ndarray . INDArray exp = res . dup ( ) ... | org . junit . Assert . assertEquals ( exp , res ) |
name ( ) { java . lang . String name = org . apache . commons . lang3 . RandomStringUtils . random ( 10 ) ; uk . org . lidalia . slf4jtest . TestLogger logger = new uk . org . lidalia . slf4jtest . TestLogger ( name , uk . org . lidalia . slf4jtest . TestLoggerFactory . getInstance ( ) ) ; "<AssertPlaceHolder>" ; } get... | org . junit . Assert . assertEquals ( name , logger . getName ( ) ) |
shouldSetAndGetStatus ( ) { runner . setStatus ( Runner . Status . IN_QUEUE ) ; "<AssertPlaceHolder>" ; } getStatus ( ) { return status ; } | org . junit . Assert . assertThat ( runner . getStatus ( ) , org . hamcrest . core . Is . is ( Runner . Status . IN_QUEUE ) ) |
testGetParametersWithDefaultEntityAndDisabledDefaults ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . wave . type . WaveType entity = new org . lnu . is . domain . wave . type . WaveType ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new ja... | org . junit . Assert . assertEquals ( expected , actual ) |
testApplication ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( false ) ; conf . addResource ( this . getClass ( ) . getResourceAsStream ( "/META-INF/properties.xml" ) ) ; org . apache . apex . api . EmbeddedAppLauncher < ? > launcher = org . apache . apex . ... | org . junit . Assert . assertEquals ( pythonExecutorApplication . pojoDataGenerator . getMaxTuples ( ) , org . apache . apex . malhar . python . PythonExecutorApplicationTest . results . size ( ) ) |
testTimedObjectTimeoutMethod ( ) { javax . naming . InitialContext ctx = new javax . naming . InitialContext ( ) ; sendMessage ( ) ; "<AssertPlaceHolder>" ; } awaitTimerCall ( ) { try { org . jboss . as . test . integration . ejb . mdb . timerservice . TimedObjectTimerServiceMDB . latch . await ( 2 , TimeUnit . SECONDS... | org . junit . Assert . assertTrue ( org . jboss . as . test . integration . ejb . mdb . timerservice . TimedObjectTimerServiceMDB . awaitTimerCall ( ) ) |
testNoDots ( ) { org . apache . activemq . artemis . api . core . SimpleString s1 = new org . apache . activemq . artemis . api . core . SimpleString ( "abcde" ) ; org . apache . activemq . artemis . api . core . SimpleString s2 = new org . apache . activemq . artemis . api . core . SimpleString ( "abcde" ) ; org . apa... | org . junit . Assert . assertTrue ( a1 . matches ( a2 ) ) |
testQueryWithInterceptors ( ) { testSubject . registerDispatchInterceptor ( ( messages ) -> ( i , m ) -> m . andMetaData ( org . axonframework . queryhandling . Collections . singletonMap ( "key" , "value" ) ) ) ; testSubject . registerHandlerInterceptor ( ( unitOfWork , interceptorChain ) -> { if ( unitOfWork . getMes... | org . junit . Assert . assertEquals ( "fakeReply" , result . get ( ) ) |
shuffleAndDealHands ( ) { java . util . List < java . util . Set < bnymellon . codekatas . deckofcards . Card > > jdkHands = this . jdkDeck . shuffleAndDeal ( new java . util . Random ( 1 ) , 5 , 5 ) ; java . util . List < java . util . Set < bnymellon . codekatas . deckofcards . Card > > ggHands = this . ggDeck . shuf... | org . junit . Assert . assertEquals ( jdkHands , ggHands ) |
zeroOrMoreOneCall ( ) { expect ( mock . hasNext ( ) ) . andReturn ( false ) . anyTimes ( ) ; replay ( mock ) ; "<AssertPlaceHolder>" ; verify ( mock ) ; } replay ( java . lang . Object [ ] ) { for ( int i = 0 ; i < ( mocks . length ) ; i ++ ) { try { org . easymock . EasyMock . getControl ( mocks [ i ] ) . replay ( ) ;... | org . junit . Assert . assertFalse ( mock . hasNext ( ) ) |
returnsNullWhenCreateArrayFromNull ( ) { java . lang . Object array = org . everrest . core . impl . provider . json . ObjectBuilder . createArray ( java . lang . String [ ] . class , null ) ; "<AssertPlaceHolder>" ; } createArray ( java . lang . Class , org . everrest . core . impl . provider . json . JsonValue ) { if... | org . junit . Assert . assertNull ( array ) |
testGetAutoTrueSiteNavigationMenus ( ) { com . liferay . portal . kernel . service . ServiceContext serviceContext = com . liferay . portal . kernel . test . util . ServiceContextTestUtil . getServiceContext ( _group . getGroupId ( ) , com . liferay . portal . kernel . test . util . TestPropsValues . getUserId ( ) ) ; ... | org . junit . Assert . assertEquals ( ( siteNavigationMenusOriginalSize + 2 ) , siteNavigationMenusAfterSize ) |
testLocaleWithInvalidISO3Code ( ) { final com . amazonaws . mobileconnectors . pinpoint . targeting . TargetingClient targetingClient = new com . amazonaws . mobileconnectors . pinpoint . targeting . TargetingClient ( mockContext , mock ( java . util . concurrent . ThreadPoolExecutor . class ) ) ; final com . amazonaws... | org . junit . Assert . assertTrue ( demographic . getLocale ( ) . toString ( ) . equalsIgnoreCase ( locale . toString ( ) ) ) |
testWbFromDMNWhenDMNIsNull ( ) { "<AssertPlaceHolder>" ; } wbFromDMN ( org . kie . dmn . model . api . ItemDefinition ) { if ( dmn == null ) { return null ; } final org . kie . workbench . common . dmn . api . property . dmn . Id id = new org . kie . workbench . common . dmn . api . property . dmn . Id ( dmn . getId ( ... | org . junit . Assert . assertNull ( org . kie . workbench . common . dmn . backend . definition . v1_1 . ItemDefinitionPropertyConverter . wbFromDMN ( null ) ) |
testParseQuery_OrderByEntityProperty ( ) { java . lang . String query = "$orderby=ID" ; de . fraunhofer . iosb . ilt . frostserver . query . Query expResult = new de . fraunhofer . iosb . ilt . frostserver . query . Query ( ) ; expResult . getOrderBy ( ) . add ( new de . fraunhofer . iosb . ilt . frostserver . query . ... | org . junit . Assert . assertEquals ( expResult , result ) |
testNullNodeRef ( ) { org . locationtech . geogig . model . Node rn = org . locationtech . geogig . model . impl . RevObjectTestSupport . featureNode ( "testNode" , 2 ) ; org . locationtech . geogig . model . ObjectId metadataId = org . locationtech . geogig . model . impl . RevObjectTestSupport . hashString ( "test" )... | org . junit . Assert . assertEquals ( entry , read ) |
testListOrders_Completed ( ) { try { java . lang . String filter = getTestRunMessageValue ( "completedOrdersFilter" ) ; upsertOnTestRunMessage ( "filter" , filter ) ; java . util . List < org . mule . module . magento . automation . testcases . SalesOrderListEntity > orders = runFlowAndGetPayload ( "list-orders" ) ; "<... | org . junit . Assert . assertTrue ( orders . isEmpty ( ) ) |
testFusedRingFragments ( ) { org . openscience . cdk . ringsearch . RingSearch search = new org . openscience . cdk . ringsearch . RingSearch ( biphenyl ) ; java . util . List < org . openscience . cdk . interfaces . IAtomContainer > fused = search . fusedRingFragments ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return ... | org . junit . Assert . assertThat ( fused . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) ) |
shouldReturnLink ( ) { org . apache . activemq . artemis . rest . test . TransformTest . Order order = createTestOrder ( "1" , "$5.00" ) ; org . apache . activemq . artemis . rest . integration . EmbeddedRestActiveMQJMSTest . publish ( "exampleQueue" , order , null ) ; org . jboss . resteasy . client . ClientResponse <... | org . junit . Assert . assertNotNull ( org . apache . activemq . artemis . rest . integration . EmbeddedRestActiveMQJMSTest . consumeNext ) |
testDepth_raw_next ( ) { com . navercorp . pinpoint . common . server . bo . SpanEventBo prev = new com . navercorp . pinpoint . common . server . bo . SpanEventBo ( ) ; com . navercorp . pinpoint . common . server . bo . SpanEventBo current = new com . navercorp . pinpoint . common . server . bo . SpanEventBo ( ) ; pr... | org . junit . Assert . assertEquals ( bitField . getDepthEncodingStrategy ( ) , DepthEncodingStrategy . RAW ) |
shouldReturnValidValidationResultWhenSchemaValidateWithValidElement ( ) { final uk . gov . gchq . gaffer . store . schema . Schema schema = mock ( uk . gov . gchq . gaffer . store . schema . Schema . class ) ; final java . lang . String group = uk . gov . gchq . gaffer . commonutil . TestGroups . EDGE ; final uk . gov ... | org . junit . Assert . assertTrue ( result . isValid ( ) ) |
testGetMinimumWidth_Initial ( ) { "<AssertPlaceHolder>" ; } getMinimumWidth ( ) { checkWidget ( ) ; return minimumWidth ; } | org . junit . Assert . assertEquals ( 0 , column . getMinimumWidth ( ) ) |
testToMap ( ) { org . apache . ambari . server . collections . functors . ContextTransformer transformer = createStrictMock ( org . apache . ambari . server . collections . functors . ContextTransformer . class ) ; expect ( transformer . getKey ( ) ) . andReturn ( "data" ) . times ( 1 ) ; replayAll ( ) ; org . apache .... | org . junit . Assert . assertEquals ( expectedMap , actualMap ) |
testGetJobSucceeds ( ) { com . google . api . services . bigquery . model . Job testJob = new com . google . api . services . bigquery . model . Job ( ) ; testJob . setStatus ( new com . google . api . services . bigquery . model . JobStatus ( ) ) ; when ( response . getContentType ( ) ) . thenReturn ( Json . MEDIA_TYP... | org . junit . Assert . assertEquals ( testJob , job ) |
peekLastTest ( ) { for ( int i = 0 ; i < ( TEST_QTY ) ; i ++ ) { java . lang . String str = java . lang . Integer . toString ( i ) ; testList . addLast ( str ) ; "<AssertPlaceHolder>" ; } } peekLast ( ) { org . threadly . concurrent . collections . ConcurrentArrayList . DataSet < T > set = currentData ; if ( ( set . si... | org . junit . Assert . assertEquals ( str , testList . peekLast ( ) ) |
testGetGlobalAttributeDefinition ( ) { org . finra . herd . model . api . xml . GlobalAttributeDefinitionKey globalAttributeDefinitionKey = new org . finra . herd . model . api . xml . GlobalAttributeDefinitionKey ( GLOBAL_ATTRIBUTE_DEFINITON_LEVEL , GLOBAL_ATTRIBUTE_DEFINITON_NAME ) ; org . finra . herd . model . api ... | org . junit . Assert . assertEquals ( globalAttributeDefinition , response ) |
isAliveShouldReturnFalseIfTheConnectionIsNull ( ) { initShouldNotCreateTheSchemaIfItAlreadyExists ( ) ; reset ( connection , metaData , statement , preparedStatement , resultSet ) ; lock . lockConnection = null ; replay ( connection , metaData , statement , preparedStatement , resultSet ) ; boolean alive = lock . isAli... | org . junit . Assert . assertFalse ( alive ) |
collectWithIndexWithTarget ( ) { org . eclipse . collections . api . bag . sorted . ImmutableSortedBag < java . lang . Integer > integers = this . classUnderTest ( java . util . Collections . reverseOrder ( ) ) ; org . eclipse . collections . api . list . MutableList < org . eclipse . collections . api . tuple . primit... | org . junit . Assert . assertEquals ( expected , actual ) |
testUpdateBoolean ( ) { final org . eurekastreams . server . domain . Gadget gadget = new org . eurekastreams . server . domain . Gadget ( null , 1 , 1 , null , "" ) ; boolean minimized = true ; java . util . HashMap < java . lang . String , java . io . Serializable > map = new java . util . HashMap < java . lang . Str... | org . junit . Assert . assertEquals ( true , gadget . isMinimized ( ) ) |
requireObjectWithMapping ( ) { java . lang . String actual = org . everit . json . schema . loader . JsonValueTest . OBJ . requireObject ( ( obj ) -> "hello" ) ; "<AssertPlaceHolder>" ; } requireObject ( java . util . function . Function ) { return mapper . apply ( this ) ; } | org . junit . Assert . assertEquals ( "hello" , actual ) |
serializeReplyWithJoynrCommunicationException ( ) { io . joynr . exceptions . JoynrCommunicationException error = new io . joynr . exceptions . JoynrCommunicationException ( "detail<sp>message:<sp>JoynrCommunicationException" ) ; joynr . Reply reply = new joynr . Reply ( java . util . UUID . randomUUID ( ) . toString (... | org . junit . Assert . assertEquals ( reply , receivedReply ) |
testEmptyNode ( ) { org . apache . jackrabbit . oak . spi . state . NodeState before = EMPTY_NODE ; org . apache . jackrabbit . oak . spi . state . NodeState after = writer . writeNode ( before ) ; "<AssertPlaceHolder>" ; } writeNode ( org . apache . jackrabbit . oak . spi . state . NodeState ) { if ( state instanceof ... | org . junit . Assert . assertEquals ( before , after ) |
testConvertWithParameters ( ) { org . lnu . is . domain . benefit . BenefitType benefitType = new org . lnu . is . domain . benefit . BenefitType ( ) ; org . lnu . is . domain . benefit . Benefit parent = new org . lnu . is . domain . benefit . Benefit ( ) ; java . lang . String abbrName = "fsdsfds" ; java . lang . Str... | org . junit . Assert . assertEquals ( expected , actualQuery ) |
shouldHandleDenseNodeWithNoRelationships ( ) { try ( org . neo4j . kernel . impl . storageengine . impl . recordstorage . RecordRelationshipTraversalCursor cursor = getNodeRelationshipCursor ( ) ) { cursor . init ( org . neo4j . kernel . impl . storageengine . impl . recordstorage . RecordRelationshipTraversalCursorTes... | org . junit . Assert . assertFalse ( cursor . next ( ) ) |
testMixedLargeRecords ( ) { int pageSize = 128 ; int frameLimit = 4 ; int numRuns = 4 ; int minRecordSize = 20 ; int maxRecordSize = pageSize / 2 ; java . util . HashMap < java . lang . Integer , java . lang . String > specialPair = org . apache . hyracks . tests . unit . AbstractRunGeneratorTest . generateBigObject ( ... | org . junit . Assert . assertTrue ( ( ( max <= ( pageSize * ( frameLimit - 1 ) ) ) && ( max >= ( pageSize * 2 ) ) ) ) |
testParseLong5 ( ) { java . lang . String value = "9223372036854775806" ; byte [ ] bytes = value . getBytes ( ) ; long result = org . apache . tomcat . util . buf . Ascii . parseLong ( bytes , 0 , bytes . length ) ; "<AssertPlaceHolder>" ; } valueOf ( int ) { return org . apache . tomcat . util . net . jsse . openssl .... | org . junit . Assert . assertEquals ( value , java . lang . String . valueOf ( result ) ) |
testInvalidExternalConfigurationEnvs ( ) { io . strimzi . api . kafka . model . connect . ExternalConfigurationEnv env = new io . strimzi . api . kafka . model . connect . ExternalConfigurationEnvBuilder ( ) . withName ( "MY_ENV_VAR" ) . withNewValueFrom ( ) . withConfigMapKeyRef ( new io . fabric8 . kubernetes . api .... | org . junit . Assert . assertEquals ( 0 , selected . size ( ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.