input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testIsAlive1 ( ) { org . nd4j . jita . allocator . time . impl . BinaryTimer timer = new org . nd4j . jita . allocator . time . impl . BinaryTimer ( 2 , java . util . concurrent . TimeUnit . SECONDS ) ; timer . triggerEvent ( ) ; "<AssertPlaceHolder>" ; } isAlive ( ) { long currentTime = java . lang . System . currentT...
org . junit . Assert . assertTrue ( timer . isAlive ( ) )
reconstructFormattingElementsInTable ( ) { java . lang . String h = "<p><b>One</p><sp><table><tr><td><p><i>Three<p>Four</i></td></tr></table><sp><p>Five</p>" ; leap . lang . jsoup . parser . Document doc = leap . lang . jsoup . Jsoup . parse ( h ) ; java . lang . String want = "<p><b>One</b></p>\n" + ( ( ( ( ( ( ( "<b>...
org . junit . Assert . assertEquals ( want , doc . body ( ) . html ( ) )
testDBDictionaryGetBatchFetchSize ( ) { org . apache . openjpa . jdbc . sql . DBDictionary db = new org . apache . openjpa . jdbc . sql . MySQLDictionary ( ) ; "<AssertPlaceHolder>" ; } getBatchFetchSize ( int ) { return Integer . MIN_VALUE ; }
org . junit . Assert . assertEquals ( Integer . MIN_VALUE , db . getBatchFetchSize ( 1 ) )
reset ( ) { stateMachine . execute ( org . jboss . hal . ballroom . form . VIEW , org . jboss . hal . ballroom . form . READONLY ) ; stateMachine . execute ( org . jboss . hal . ballroom . form . RESET ) ; "<AssertPlaceHolder>" ; } current ( ) { return current ; }
org . junit . Assert . assertEquals ( org . jboss . hal . ballroom . form . READONLY , stateMachine . current ( ) )
shouldRead ( ) { java . lang . String value = writeAndGetValue ( this . viewState ) ; given ( this . request . getParameter ( "org.springframework.springfaces.id" ) ) . willReturn ( value ) ; org . springframework . springfaces . mvc . render . ViewArtifact read = this . handler . read ( this . request ) ; "<AssertPlac...
org . junit . Assert . assertThat ( read , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( this . viewState ) ) )
batchForEachEntry ( ) { com . gs . collections . impl . parallel . BatchIterable < Map . Entry < java . lang . Integer , java . lang . Integer > > entries = ( ( com . gs . collections . impl . parallel . BatchIterable < Map . Entry < java . lang . Integer , java . lang . Integer > > ) ( com . gs . collections . impl . ...
org . junit . Assert . assertEquals ( 20 , sum . getValue ( ) )
testTargetInstanceReference ( ) { java . lang . Object received = fixture . getTarget ( ) ; "<AssertPlaceHolder>" ; } getTarget ( ) { return target ; }
org . junit . Assert . assertSame ( target , received )
testNFAChangedOnOneNewComputationState ( ) { org . apache . flink . cep . pattern . Pattern < org . apache . flink . cep . Event , ? > pattern = org . apache . flink . cep . pattern . Pattern . < org . apache . flink . cep . Event > begin ( "start" ) . where ( new org . apache . flink . cep . pattern . conditions . Sim...
org . junit . Assert . assertTrue ( nfaState . isStateChanged ( ) )
simple_sendMsg_and_rcvMsg ( ) { final java . lang . String rulebase = "rules/reloaded/msg001.prova" ; java . util . concurrent . atomic . AtomicInteger count = new java . util . concurrent . atomic . AtomicInteger ( ) ; java . util . Map < java . lang . String , java . lang . Object > globals = new java . util . HashMa...
org . junit . Assert . assertEquals ( 4 , count . get ( ) )
save3 ( ) { org . fastquery . bean . sunny . Card card = new org . fastquery . bean . sunny . Card ( "32ccczuidazhi" ) ; java . math . BigInteger bigInteger = sunnyDBService . saveToId ( card ) ; int effect = sunnyDBService . delete ( bigInteger . intValue ( ) ) ; "<AssertPlaceHolder>" ; } delete ( java . lang . Object...
org . junit . Assert . assertThat ( effect , is ( 1 ) )
testStdout ( ) { final org . apache . commons . exec . CommandLine cl = new org . apache . commons . exec . CommandLine ( environmentScript ) ; final int exitValue = exec . execute ( cl ) ; "<AssertPlaceHolder>" ; } isFailure ( int ) { return ( exitValue % 2 ) == 0 ; }
org . junit . Assert . assertFalse ( exec . isFailure ( exitValue ) )
assertSetQueryTimeout ( ) { for ( java . util . Map . Entry < org . apache . shardingsphere . core . constant . DatabaseType , java . sql . Statement > each : statements . entrySet ( ) ) { each . getValue ( ) . executeQuery ( sql ) ; each . getValue ( ) . setQueryTimeout ( 10 ) ; "<AssertPlaceHolder>" ; } } getQueryTim...
org . junit . Assert . assertThat ( each . getValue ( ) . getQueryTimeout ( ) , org . hamcrest . CoreMatchers . is ( 10 ) )
whenBuildingANonEmptyTour_tourReverseIterIteratesOverActivitiesCorrectly ( ) { com . graphhopper . jsprit . core . problem . solution . route . VehicleRoute route = VehicleRoute . Builder . newInstance ( vehicle , driver ) . build ( ) ; java . util . Iterator < com . graphhopper . jsprit . core . problem . solution . r...
org . junit . Assert . assertEquals ( 0 , count )
clearNonExistentInitializationFlows ( ) { java . util . Set < org . opendaylight . yang . gen . v1 . urn . opendaylight . inventory . rev130819 . NodeId > theOrphanSffs = sfcFlowWriterTestMock . clearSffsIfNoRspExists ( ) ; "<AssertPlaceHolder>" ; } clearSffsIfNoRspExists ( ) { java . util . Set < org . opendaylight . ...
org . junit . Assert . assertTrue ( theOrphanSffs . isEmpty ( ) )
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . kernel . model . UserGroup . class , _dynamicQueryClassLoader ) ; dynamicQuery . add ( com . lif...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
shouldThrowExceptionIfStartIsBiggerThanEnd ( ) { final java . util . List < java . lang . Integer > values = java . util . Arrays . asList ( 0 , 1 , 2 , 3 ) ; final int start = 3 ; final int end = 1 ; try { new uk . gov . gchq . gaffer . commonutil . iterable . LimitedCloseableIterable ( values , start , end ) ; org . ...
org . junit . Assert . assertNotNull ( e . getMessage ( ) )
testProcessInWithHeaders ( ) { org . hawkular . apm . api . model . config . CollectorConfiguration cc = new org . hawkular . apm . api . model . config . CollectorConfiguration ( ) ; org . hawkular . apm . api . model . config . txn . TransactionConfig btc = new org . hawkular . apm . api . model . config . txn . Tran...
org . junit . Assert . assertTrue ( service . hasProperty ( "test" ) )
testCalculatorOperationForMUL ( ) { java . util . Set < com . calculator . enumuse . OperationStrategy > calculatorStrategies = new java . util . HashSet < com . calculator . enumuse . OperationStrategy > ( ) ; calculatorStrategies . add ( CalculatorOperationStrategy . ADD ) ; calculatorStrategies . add ( CalculatorOpe...
org . junit . Assert . assertEquals ( 50 , ctxCalculator . execute ( input ) )
getPassThru ( ) { java . lang . Object object = new java . lang . Object ( ) ; "<AssertPlaceHolder>" ; } getPassThru ( ) { java . lang . Object object = new java . lang . Object ( ) ; org . junit . Assert . assertSame ( object , com . gs . collections . impl . block . factory . Functions . getPassThru ( ) . valueOf ( o...
org . junit . Assert . assertSame ( object , com . gs . collections . impl . block . factory . Functions . getPassThru ( ) . valueOf ( object ) )
testCanSetClientIp ( ) { com . eclipsesource . tabris . tracking . TrackingInfo trackingInfo = new com . eclipsesource . tabris . tracking . TrackingInfo ( ) ; trackingInfo . setClientIp ( "foo" ) ; java . lang . String ip = trackingInfo . getClientIp ( ) ; "<AssertPlaceHolder>" ; } getClientIp ( ) { return clientIp ; ...
org . junit . Assert . assertSame ( "foo" , ip )
testGetSecretKey ( ) { java . lang . String apikey = org . sagebionetworks . IT990AuthenticationController . synapse . retrieveApiKey ( ) ; "<AssertPlaceHolder>" ; System . out . println ( apikey ) ; org . sagebionetworks . IT990AuthenticationController . synapse . logout ( ) ; org . sagebionetworks . IT990Authenticati...
org . junit . Assert . assertNotNull ( apikey )
testRemoveFromStringNullArray ( ) { java . lang . String [ ] array = null ; array = com . liferay . portal . kernel . util . ArrayUtil . remove ( array , "c" ) ; "<AssertPlaceHolder>" ; } remove ( boolean [ ] , boolean ) { return com . liferay . portal . kernel . util . ArrayUtil . remove ( array , value ) ; }
org . junit . Assert . assertNull ( array )
testEquals ( ) { org . o3project . odenos . core . component . network . flow . ofpflow . OFPFlowActionSetQueue obj = target ; boolean result = target . equals ( obj ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( obj == ( this ) ) { return true ; } if ( ! ( obj instanceof org . o3project . odenos ...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( true ) )
getLabelColor_labelWithDecimalValue ( ) { java . lang . String testLabel = "Label<sp>[%.3f]" ; when ( widget . getLabel ( ) ) . thenReturn ( testLabel ) ; org . eclipse . smarthome . model . sitemap . ColorArray colorArray = mock ( org . eclipse . smarthome . model . sitemap . ColorArray . class ) ; when ( colorArray ....
org . junit . Assert . assertEquals ( "yellow" , color )
findElementTwoBy ( ) { final org . openqa . selenium . support . pagefactory . ByChainedTest . AllDriver driver = mock ( org . openqa . selenium . support . pagefactory . ByChainedTest . AllDriver . class ) ; final org . openqa . selenium . WebElement elem1 = mock ( org . openqa . selenium . support . pagefactory . ByC...
org . junit . Assert . assertThat ( by . findElement ( driver ) , org . hamcrest . Matchers . equalTo ( elem3 ) )
constructor_setsThisAsSeleniumServerInRemoteControlConfiguration ( ) { org . openqa . selenium . server . RemoteControlConfiguration remoteConfiguration = new org . openqa . selenium . server . RemoteControlConfiguration ( ) ; server = new org . openqa . selenium . server . SeleniumServer ( remoteConfiguration ) ; "<As...
org . junit . Assert . assertEquals ( server , remoteConfiguration . getSslCertificateGenerator ( ) )
initiallyEmpty ( ) { com . vaadin . v7 . ui . RichTextArea tf = new com . vaadin . v7 . ui . RichTextArea ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( size ( ) ) == 0 ; }
org . junit . Assert . assertTrue ( tf . isEmpty ( ) )
getTakenGeplandVoorVandaagStatusWordUitgevoerd ( ) { final nl . bzk . algemeenbrp . dal . domein . brp . entity . Dienst dienst = em . getReference ( nl . bzk . algemeenbrp . dal . domein . brp . entity . Dienst . class , 4 ) ; final nl . bzk . algemeenbrp . dal . domein . brp . entity . ToegangLeveringsAutorisatie toe...
org . junit . Assert . assertTrue ( takenGeplandVoorVandaag . isEmpty ( ) )
interleavedStdio ( ) { logging . record ( hudson . cli . PlainCLIProtocol . class , Level . FINE ) . record ( jenkins . util . FullDuplexHttpService . class , Level . FINE ) ; java . io . File jar = tmp . newFile ( "11<sp>*<sp>11" 1 ) ; org . apache . commons . io . FileUtils . copyURLToFile ( j . jenkins . getJnlpJars...
org . junit . Assert . assertEquals ( 0 , proc . join ( ) )
testCopyPaste ( ) { java . lang . String expected = "hello<sp>world" ; org . sikuli . api . robot . desktop . Clipboard . putText ( expected ) ; java . lang . String found = org . sikuli . api . robot . desktop . Clipboard . getText ( ) ; "<AssertPlaceHolder>" ; } getText ( ) { org . sikuli . api . robot . desktop . Tr...
org . junit . Assert . assertEquals ( expected , found )
test_setSizeCustomResize ( ) { if ( SwtTestUtil . isGTK ) { org . eclipse . swt . widgets . Shell testShell = new org . eclipse . swt . widgets . Shell ( shell , ( ( org . eclipse . swt . SWT . RESIZE ) | ( org . eclipse . swt . SWT . ON_TOP ) ) ) ; org . eclipse . swt . graphics . Point size = new org . eclipse . swt ...
org . junit . Assert . assertEquals ( size , testShell . getSize ( ) )
testAddPasswordAndUserdata ( ) { com . cloud . network . Network network = org . mockito . Mockito . mock ( com . cloud . network . Network . class ) ; com . cloud . vm . VirtualMachineProfile vm = org . mockito . Mockito . mock ( com . cloud . vm . VirtualMachineProfile . class ) ; com . cloud . vm . NicProfile nic = ...
org . junit . Assert . assertTrue ( virtualRouterElement . addPasswordAndUserdata ( network , nic , vm , dest , context ) )
testReducerValidValues ( ) { org . apache . hadoop . io . Text key = new org . apache . hadoop . io . Text ( "key123" ) ; co . nubetech . hiho . dedup . HihoTuple hihoTuple = new co . nubetech . hiho . dedup . HihoTuple ( ) ; hihoTuple . setKey ( key ) ; co . nubetech . hiho . merge . HihoValue hihoValue1 = new co . nu...
org . junit . Assert . assertEquals ( 1 , context . getCounter ( MergeRecordCounter . OUTPUT ) . getValue ( ) )
testRemoteExceptionFromHistoryServer ( ) { org . apache . hadoop . mapreduce . v2 . api . MRClientProtocol historyServerProxy = mock ( org . apache . hadoop . mapreduce . v2 . api . MRClientProtocol . class ) ; when ( historyServerProxy . getJobReport ( getJobReportRequest ( ) ) ) . thenThrow ( new java . io . IOExcept...
org . junit . Assert . assertTrue ( e . getMessage ( ) . contains ( "Job<sp>ID<sp>doesnot<sp>Exist" ) )
testGetTotalNumberOfRecords ( ) { org . apache . hadoop . conf . Configuration conf = buildConfiguration ( ) ; com . qubitproducts . hive . storage . jdbc . dao . DatabaseAccessor accessor = com . qubitproducts . hive . storage . jdbc . dao . DatabaseAccessorFactory . getAccessor ( conf ) ; int numRecords = accessor . ...
org . junit . Assert . assertThat ( numRecords , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( 5 ) ) )
testToString ( ) { org . kitteh . irc . client . library . command . TopicCommand topicCommand = new org . kitteh . irc . client . library . command . TopicCommand ( this . client , org . kitteh . irc . client . library . command . TopicCommandTest . CHANNEL ) ; topicCommand . topic ( org . kitteh . irc . client . libr...
org . junit . Assert . assertTrue ( topicCommand . toString ( ) . contains ( org . kitteh . irc . client . library . command . TopicCommandTest . TOPIC ) )
inject_A$Class ( ) { com . github . seratch . taskun . inject . GuiceTaskunInjector target = new com . github . seratch . taskun . inject . GuiceTaskunInjector ( new com . google . inject . AbstractModule ( ) { @ com . github . seratch . taskun . inject . Override protected void configure ( ) { } } ) ; java . lang . Cl...
org . junit . Assert . assertNotNull ( actual )
testGetCombinedAutocompleteReturnsNullIfEmptyWithSeparators ( ) { "<AssertPlaceHolder>" ; } getCombinedAutocomplete ( java . lang . String , java . lang . String [ ] ) { if ( com . github . bordertech . wcomponents . autocomplete . AutocompleteUtil . OFF . equalsIgnoreCase ( valueOne ) ) { return com . github . bordert...
org . junit . Assert . assertNull ( com . github . bordertech . wcomponents . autocomplete . AutocompleteUtil . getCombinedAutocomplete ( "" , "" ) )
test_create_notZip ( ) { java . io . File txtFile = new java . io . File ( tmpFolder , "abc.txt" ) ; txtFile . createNewFile ( ) ; final org . talend . updates . runtime . nexus . component . ComponentIndexBean indexBean = new org . talend . updates . runtime . nexus . component . ComponentIndexManager ( ) . create ( t...
org . junit . Assert . assertNull ( indexBean )
testGetSetState ( ) { com . microsoft . windowsazure . services . media . models . AssetState expectedState = AssetState . Published ; com . microsoft . windowsazure . services . media . models . AssetInfo assetInfo = new com . microsoft . windowsazure . services . media . models . AssetInfo ( null , new com . microsof...
org . junit . Assert . assertEquals ( expectedState , actualState )
testGetAsObjectOneChar ( ) { java . lang . String in = "x" ; java . lang . String out = ( ( java . lang . String ) ( converter . getAsObject ( context , component , in ) ) ) ; "<AssertPlaceHolder>" ; } getAsObject ( javax . faces . context . FacesContext , javax . faces . component . UIComponent , java . lang . String ...
org . junit . Assert . assertEquals ( in , out )
testNewChemModel ( ) { org . openscience . cdk . interfaces . IChemObjectBuilder builder = org . openscience . cdk . AbstractChemObjectBuilderTest . rootObject . getBuilder ( ) ; org . openscience . cdk . interfaces . IChemModel model = builder . newInstance ( org . openscience . cdk . interfaces . IChemModel . class )...
org . junit . Assert . assertNotNull ( model )
shouldUnwrapEntity ( ) { final uk . gov . gchq . gaffer . data . element . Entity entity = new uk . gov . gchq . gaffer . data . element . Entity ( "group" ) ; final uk . gov . gchq . gaffer . data . element . ElementValueLoader entityLoader = mock ( uk . gov . gchq . gaffer . data . element . ElementValueLoader . clas...
org . junit . Assert . assertSame ( entity , result )
testIsPassthru ( ) { gov . hhs . fha . nhinc . orchestration . Orchestratable instance = new gov . hhs . fha . nhinc . orchestration . OrchestratableTest . OrchestratableImpl ( ) ; boolean expResult = false ; boolean result = instance . isPassthru ( ) ; "<AssertPlaceHolder>" ; } isPassthru ( ) { return true ; }
org . junit . Assert . assertEquals ( expResult , result )
runWhileExceptionTest ( ) { this . result = 0 ; com . github . hermannpencole . nifi . config . utils . FunctionUtils . runWhile ( ( ) -> { throw new java . lang . IndexOutOfBoundsException ( ) ; } , 1 , ( - 1 ) ) ; "<AssertPlaceHolder>" ; } runWhile ( java . util . function . Supplier , int , int ) { com . github . he...
org . junit . Assert . assertEquals ( 2 , this . result )
testDSRestartWithPreviousRunningContainers ( ) { java . lang . String [ ] args = new java . lang . String [ ] { "--jar" , org . apache . hadoop . yarn . applications . distributedshell . TestDistributedShell . APPMASTER_JAR , "--num_containers" , "1" , "--shell_command" , getSleepCommand ( 8 ) , "--master_memory" , "51...
org . junit . Assert . assertTrue ( result )
calculateBreakend_should_return_interval_for_single_evidence ( ) { au . edu . wehi . idsv . BreakendSummary bs = au . edu . wehi . idsv . model . Models . calculateBreakend ( getContext ( ) . getLinear ( ) , com . google . common . collect . Lists . newArrayList ( new au . edu . wehi . idsv . MockDirectedBreakpoint ( n...
org . junit . Assert . assertEquals ( new au . edu . wehi . idsv . BreakendSummary ( 0 , FWD , 1 , 1 , 2 ) , bs )
constructor ( ) { Student s = new Student ( "a" ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( "a" , s . getName ( ) )
testIsSelected_Returns_True_When_COM_Returns_Zero ( ) { doAnswer ( ( invocation ) -> { java . lang . Object [ ] args = invocation . getArguments ( ) ; com . sun . jna . ptr . IntByReference reference = ( ( com . sun . jna . ptr . IntByReference ) ( args [ 0 ] ) ) ; reference . setValue ( 1 ) ; return 0 ; } ) . when ( r...
org . junit . Assert . assertTrue ( selected )
testPropertyMapGetValuesEmpty ( ) { com . eclipsesource . v8 . utils . V8PropertyMap < java . lang . Object > map = new com . eclipsesource . v8 . utils . V8PropertyMap < java . lang . Object > ( ) ; java . util . Collection < java . lang . Object > values = map . values ( ) ; "<AssertPlaceHolder>" ; } size ( ) { retur...
org . junit . Assert . assertEquals ( 0 , values . size ( ) )
testCreate ( ) { oscar . entities . Billingmaster master = new oscar . entities . Billingmaster ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( master ) ; master . setBillingNo ( 99999 ) ; dao . save ( master ) ; int count = dao . updateBillingUnitForBillingNumber ( "...
org . junit . Assert . assertTrue ( ( count == 1 ) )
depsHaveStripAndDebugFlavorsPropagatedForPlatformDeps ( ) { com . facebook . buck . core . model . BuildTarget bundleTargetWithStripFlavor = com . facebook . buck . core . model . BuildTargetFactory . newInstance ( "//bar:bundle#iphoneos-x86_64,strip-all,dwarf-and-dsym" ) ; com . facebook . buck . core . model . BuildT...
org . junit . Assert . assertEquals ( com . google . common . collect . ImmutableSortedSet . < com . facebook . buck . core . model . BuildTarget > naturalOrder ( ) . add ( unflavoredDepAfterPropagation ) . add ( flavoredDep ) . add ( flavoredDepNotInDomainAfterPropagation ) . add ( stripFlavorOnlyAfterPropagation ) . ...
testMealsFires ( ) { com . sample . domain . Reservation reservation = new com . sample . domain . Reservation ( ) ; reservation . setUpgrademeal ( true ) ; ksession . insert ( reservation ) ; com . sample . domain . User user = new com . sample . domain . User ( ) ; user . setLoyaltylevel ( "None" ) ; ksession . inser...
org . junit . Assert . assertEquals ( 3 , ksession . getFactCount ( ) )
testDenotesDynamicAllNullPropertyState ( ) { "<AssertPlaceHolder>" ; } denotesDynamicJcrAll ( org . apache . jackrabbit . oak . api . PropertyState ) { return ( ( ( property != null ) && ( ( org . apache . jackrabbit . oak . api . Type . LONGS ) == ( property . getType ( ) ) ) ) && ( ( property . count ( ) ) == 1 ) ) &...
org . junit . Assert . assertFalse ( org . apache . jackrabbit . oak . spi . security . privilege . JcrAllUtil . denotesDynamicJcrAll ( null ) )
toVOServiceOperationParameters_Null ( ) { java . util . List < org . oscm . internal . vo . VOServiceOperationParameter > parameters = org . oscm . serviceprovisioningservice . assembler . TechServiceOperationParameterAssembler . toVOServiceOperationParameters ( null , facade ) ; "<AssertPlaceHolder>" ; } toVOServiceOp...
org . junit . Assert . assertNull ( parameters )
testDOIManagerIsInvoked ( ) { when ( doiManager . fetchDOIBibtex ( "111" ) ) . thenReturn ( "OK" ) ; org . orcid . jaxb . model . record_v2 . Work w = new org . orcid . jaxb . model . record_v2 . Work ( ) ; w . setWorkExternalIdentifiers ( new org . orcid . jaxb . model . record_v2 . ExternalIDs ( ) ) ; org . orcid . j...
org . junit . Assert . assertEquals ( "OK" , bib )
testMultipleServiceBindingDifferentService ( ) { commandProcessor . bind ( new com . betfair . cougar . core . api . ServiceBindingDescriptor ( ) { @ com . betfair . cougar . transport . impl . protocol . http . Override public com . betfair . cougar . core . api . OperationBindingDescriptor [ ] getOperationBindings ( ...
org . junit . Assert . assertEquals ( 2 , count )
testPairMapAddHeaders ( ) { one . util . streamex . List < java . lang . String > result = one . util . streamex . StreamEx . of ( "aaa" , "abc" , "bar" , "foo" , "baz" , "argh" ) . sorted ( ) . prepend ( "" ) . pairMap ( ( a , b ) -> ( a . isEmpty ( ) ) || ( ( a . charAt ( 0 ) ) != ( b . charAt ( 0 ) ) ) ? java . util...
org . junit . Assert . assertEquals ( expected , result )
manageModificationVDiskCreation_VSERVER_STARTED_Stopped ( ) { org . oscm . app . iaas . data . FlowState flowState = org . oscm . app . iaas . data . FlowState . VSERVER_STARTED ; org . oscm . app . iaas . data . FlowState newState = null ; doReturn ( VServerStatus . STOPPED ) . when ( vServerProcessor . vserverComm ) ...
org . junit . Assert . assertNull ( newState )
testLexerUnicodeUnescapedBMPSetWithRange ( ) { org . antlr . v4 . tool . LexerGrammar lg = new org . antlr . v4 . tool . LexerGrammar ( ( "2:RULE_STOP<sp>0\n" 2 + "ID<sp>:<sp>(\'亜\'|\'亝\'|\'江\'|\'た\'..\'ほ\')\n<sp>;" ) ) ; java . lang . String expecting = "max<sp>type<sp>1\n" + ( ( ( ( ( ( ( ( ( ( ( ( "2:RULE_STOP<sp>0\...
org . junit . Assert . assertEquals ( expecting , result )
testFastHtmlExportWork ( ) { java . net . URL url = getClass ( ) . getResource ( "Prd-5240.prpt" ) ; org . pentaho . reporting . engine . classic . core . MasterReport report = ( ( org . pentaho . reporting . engine . classic . core . MasterReport ) ( new org . pentaho . reporting . libraries . resourceloader . Resourc...
org . junit . Assert . assertEquals ( htmlSlow , htmlFast )
testPosCase ( ) { java . util . Random rnd = new java . util . Random ( ) ; for ( int c = 0 ; c < 10 ; ++ c ) { int length = ( rnd . nextInt ( 20 ) ) + 10 ; int x = rnd . nextInt ( length ) ; algorithm . common . ListNode head = new algorithm . common . ListNode ( 0 ) ; algorithm . common . ListNode cur = head ; for ( ...
org . junit . Assert . assertTrue ( ( x <= ( cur . val ) ) )
getRequestConfigFromAsyncClient ( ) { org . apache . http . impl . nio . client . CloseableHttpAsyncClient client = com . ctrip . soa . caravan . util . net . apache . async . PoolingHttpAsyncClientFactory . create ( ) ; org . apache . http . client . config . RequestConfig requestConfig = com . ctrip . soa . caravan ....
org . junit . Assert . assertNotNull ( requestConfig )
template ( ) { org . optaplanner . benchmark . api . PlannerBenchmarkFactory plannerBenchmarkFactory = org . optaplanner . benchmark . api . PlannerBenchmarkFactory . createFromFreemarkerXmlResource ( "org/optaplanner/benchmark/api/testdataPlannerBenchmarkConfigTemplate.xml.ftl" ) ; org . optaplanner . benchmark . api ...
org . junit . Assert . assertNotNull ( plannerBenchmark )
test_pojo_annotation_logging ( ) { com . godaddy . logging . AnnotatedPojo annotatedPojo = new com . godaddy . logging . AnnotatedPojo ( ) ; logger . with ( annotatedPojo ) . info ( "Annotation<sp>Logging" ) ; java . lang . String expectedLogMessage = "Annotation<sp>Logging;<sp>AnnotatedPojo.hashAnnotationField=\"574dd...
org . junit . Assert . assertEquals ( actualLogMessage , expectedLogMessage )
testToFieldPathArray_EmptyArray ( ) { "<AssertPlaceHolder>" ; } toFieldPathArray ( java . lang . String [ ] ) { if ( fieldPaths == null ) { return null ; } else if ( ( fieldPaths . length ) == 0 ) { return org . ojai . util . Fields . EMPTRY_FIELDPATH_ARRAY ; } else { final org . ojai . FieldPath [ ] fpArray = new org ...
org . junit . Assert . assertArrayEquals ( new org . ojai . FieldPath [ 0 ] , org . ojai . util . Fields . toFieldPathArray ( new java . lang . String [ 0 ] ) )
testDefaultsCanBeOverridden ( ) { org . apache . commons . configuration . Configuration conf = new org . apache . commons . configuration . PropertiesConfiguration ( ) ; conf . setProperty ( ClusterSpec . Property . RUN_URL_BASE . getConfigName ( ) , "http://example.org" ) ; org . apache . whirr . ClusterSpec spec = o...
org . junit . Assert . assertThat ( spec . getRunUrlBase ( ) , org . hamcrest . Matchers . is ( "http://example.org" ) )
testShouldReturnNullOnInvalidDemoNo ( ) { java . util . List < org . oscarehr . common . model . Drug > drugs = new java . util . ArrayList < org . oscarehr . common . model . Drug > ( ) ; drugs . add ( getTestDrug ( ) ) ; org . oscarehr . util . LoggedInInfo info = new org . oscarehr . util . LoggedInInfo ( ) ; org . ...
org . junit . Assert . assertNull ( pd )
should_process_column_with_basic_value ( ) { net . rrm . ehour . backup . service . restore . structure . FieldMap fieldDefinitionMap = net . rrm . ehour . backup . service . restore . structure . FieldMapFactory . buildFieldMapForEntity ( net . rrm . ehour . backup . service . restore . structure . Project . class ) ;...
org . junit . Assert . assertEquals ( "TEC" , project . getProjectCode ( ) )
testcontroleerAanvangGeldigheidTegenBijhouding ( ) { maakPersoonEntiteitMeBijhoudingsHistorie ( 20000101 ) ; final nl . bzk . brp . bijhouding . bericht . model . PersoonGegevensElement PersoonGegevensElement = builder . maakPersoonGegevensElement ( "pers" , nl . bzk . brp . bijhouding . bericht . model . AbstractPerso...
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
testSearchXCredentialStores ( ) { org . apache . ranger . view . VXCredentialStore vXCredentialStore = vXCredentialStore ( ) ; java . util . List < org . apache . ranger . view . VXCredentialStore > vXCredentialStores = java . util . Arrays . asList ( vXCredentialStore ) ; org . apache . ranger . view . VXCredentialSto...
org . junit . Assert . assertEquals ( vXCredentialStoreList . getVXCredentialStores ( ) , actualvxCredentialStoreList . getVXCredentialStores ( ) )
testOnMessageFailure ( ) { setupBeforeDeliverySuccessful ( ) ; context . checking ( new org . jmock . Expectations ( ) { { oneOf ( mockEndpointAndListener ) . onMessage ( with ( same ( stubMessage ) ) ) ; will ( throwException ( new java . lang . RuntimeException ( ) ) ) ; } } ) ; setupAfterDeliverySuccessful ( ) ; doB...
org . junit . Assert . assertTrue ( true )
testConvertAmountDefault ( ) { javax . money . CurrencyUnit [ ] units = new javax . money . CurrencyUnit [ ] { javax . money . Monetary . getCurrency ( "CHF" ) , javax . money . Monetary . getCurrency ( "EUR" ) , javax . money . Monetary . getCurrency ( "USD" ) , javax . money . Monetary . getCurrency ( "JPY" ) , javax...
org . junit . Assert . assertEquals ( expected , res )
testRemove ( ) { com . liferay . portal . kernel . model . ResourceAction newResourceAction = addResourceAction ( ) ; _persistence . remove ( newResourceAction ) ; com . liferay . portal . kernel . model . ResourceAction existingResourceAction = _persistence . fetchByPrimaryKey ( newResourceAction . getPrimaryKey ( ) )...
org . junit . Assert . assertNull ( existingResourceAction )
testDisplayNeighborOperationalState ( ) { createDefaultProtocol ( ) ; org . opendaylight . protocol . bgp . cli . utils . BGPOperationalStateUtils . displayBgpOperationalState ( getDataBroker ( ) , this . stream , org . opendaylight . protocol . bgp . cli . utils . BGPOperationalStateUtilsTest . RIB_ID , null , org . o...
org . junit . Assert . assertEquals ( expected , this . output . toString ( ) )
setsYearOnV1TagOnly ( ) { com . mpatric . mp3agic . ID3v1 id3v1Tag = new com . mpatric . mp3agic . ID3WrapperTest . ID3v1TagForTesting ( ) ; com . mpatric . mp3agic . ID3Wrapper wrapper = new com . mpatric . mp3agic . ID3Wrapper ( id3v1Tag , null ) ; wrapper . setYear ( "a<sp>year" ) ; "<AssertPlaceHolder>" ; } getYear...
org . junit . Assert . assertEquals ( "a<sp>year" , id3v1Tag . getYear ( ) )
cloneAdhocQueryRequest ( ) { oasis . names . tc . ebxml_regrep . xsd . query . _3 . AdhocQueryRequest request = new oasis . names . tc . ebxml_regrep . xsd . query . _3 . AdhocQueryRequest ( ) ; request . setId ( "11111" ) ; oasis . names . tc . ebxml_regrep . xsd . query . _3 . AdhocQueryRequest clonedRequest = msgUti...
org . junit . Assert . assertEquals ( "11111" , clonedRequest . getId ( ) )
testHasSameOriginSameProvider ( ) { com . orange . cepheus . cep . model . Provider provider = new com . orange . cepheus . cep . model . Provider ( "http://sameUrl" ) ; provider . setServiceName ( "SN" ) ; provider . setServicePath ( "SP" ) ; com . orange . cepheus . cep . model . Provider pr = new com . orange . ceph...
org . junit . Assert . assertTrue ( checkTest )
test_LIKE ( ) { final java . lang . Object [ ] cases = new java . lang . Object [ ] { new java . lang . Object [ ] { "aa_b" 5 , "aa_b" 2 , Boolean . FALSE } , new java . lang . Object [ ] { "aa_b" 5 , null , Boolean . FALSE } , new java . lang . Object [ ] { null , "aa_b" 3 , Boolean . FALSE } , new java . lang . Objec...
org . junit . Assert . assertEquals ( result , expected )
singleColumnUniqueWithNulls ( ) { final int tid = createTable ( "test" , "t1" , "id<sp>int<sp>not<sp>null<sp>primary<sp>key,<sp>name<sp>varchar(32),<sp>unique(name)" ) ; writeRows ( row ( tid , 1 , "abc" ) , row ( tid , 2 , "def" ) , row ( tid , 3 , null ) , row ( tid , 4 , "ghi" ) , row ( tid , 5 , null ) ) ; "<Assert...
org . junit . Assert . assertEquals ( 5 , scanAll ( tid ) . size ( ) )
isIdentifierInUseByAnotherPatient_shouldReturnTrueWhenPatientIdentifierDoesNotContainAPatientAndAPatientHasThisId ( ) { org . openmrs . PatientIdentifierType pit = org . openmrs . api . PatientServiceTest . patientService . getPatientIdentifierType ( 1 ) ; org . openmrs . PatientIdentifier patientIdentifier = new org ....
org . junit . Assert . assertTrue ( org . openmrs . api . PatientServiceTest . patientService . isIdentifierInUseByAnotherPatient ( patientIdentifier ) )
move_right ( ) { a . move ( 2 , 4 , 5 ) ; "<AssertPlaceHolder>" ; } move ( int , int , int ) { if ( from < to ) { for ( int i = length - 1 ; i >= 0 ; -- i ) set ( ( to + i ) , get ( ( from + i ) ) ) ; } else if ( from > to ) { for ( int i = 0 ; i < length ; ++ i ) set ( ( to + i ) , get ( ( from + i ) ) ) ; } }
org . junit . Assert . assertArrayEquals ( new java . lang . Object [ ] { 5 , 6 , 7 , 10 , null , null , null , null , null , null , 1 , 2 , 3 , 4 , 3 , 4 } , a . array )
testManageAckStreamingOperationNoAck ( ) { final com . stratio . decision . clustering . ClusterSyncManager spyClusterSyncManager = org . powermock . api . mockito . PowerMockito . spy ( new com . stratio . decision . clustering . ClusterSyncManager ( com . stratio . decision . commons . constants . STREAMING . ZK_CLUS...
org . junit . Assert . assertEquals ( nodeReply , reply )
testSetting_CommonMinMappers ( ) { java . lang . String actualCommand = com . thinkbiganalytics . kylo . nifi . teradata . tdch . core . processor . utils . TdchBuilderTest . getBaseTdchBuilder ( ) . setCommonThrottleMappers ( true ) . setCommonMinMappers ( 3 ) . build ( ) ; java . lang . String expectedCommand = ( ( (...
org . junit . Assert . assertEquals ( expectedCommand , actualCommand )
nullAttributeTwoDocs ( ) { eu . europa . esig . dss . xades . validation . DetachedSignatureResolver resolver = new eu . europa . esig . dss . xades . validation . DetachedSignatureResolver ( java . util . Arrays . < eu . europa . esig . dss . DSSDocument > asList ( new eu . europa . esig . dss . InMemoryDocument ( new...
org . junit . Assert . assertTrue ( resolver . engineCanResolveURI ( context ) )
testRegularRoleTrue ( ) { boolean result = _callTestRegularRole ( true ) ; "<AssertPlaceHolder>" ; } _callTestRegularRole ( boolean ) { when ( _roleLocalService . fetchRole ( 1 , "test" ) ) . thenReturn ( _role ) ; when ( _role . getType ( ) ) . thenReturn ( RoleConstants . TYPE_REGULAR ) ; when ( _userLocalService . h...
org . junit . Assert . assertTrue ( result )
testNoMatchAfterTwo ( ) { java . util . List < java . lang . String > candidates = fetchCandidates ( ":operation-properties-one-two-three(two=2,oo" ) ; "<AssertPlaceHolder>" ; } asList ( ) { final java . util . List < java . lang . String > result = new java . util . ArrayList ( ) ; for ( java . util . Collection < org...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( ) , candidates )
testDecimalLogicalTypeWithDeprecatedPrecision ( ) { org . apache . parquet . schema . PrimitiveType expected = new org . apache . parquet . schema . PrimitiveType ( REQUIRED , BINARY , "aDecimal" , org . apache . parquet . schema . LogicalTypeAnnotation . decimalType ( 3 , 4 ) ) ; org . apache . parquet . schema . Prim...
org . junit . Assert . assertEquals ( expected , actual )
testConvertAll ( ) { java . lang . String topic = "topic" ; java . lang . String content = "content" ; org . lnu . is . domain . broadcasting . BroadcastingMessage source = new org . lnu . is . domain . broadcasting . BroadcastingMessage ( ) ; source . setContent ( content ) ; source . setTopic ( topic ) ; java . util ...
org . junit . Assert . assertEquals ( expecteds , actuals )
testSerialization ( ) { org . jfree . chart . renderer . xy . XYDifferenceRenderer r1 = new org . jfree . chart . renderer . xy . XYDifferenceRenderer ( java . awt . Color . red , java . awt . Color . blue , false ) ; org . jfree . chart . renderer . xy . XYDifferenceRenderer r2 = ( ( org . jfree . chart . renderer . x...
org . junit . Assert . assertEquals ( r1 , r2 )
testParameterizedTypesAllowed ( ) { java . lang . reflect . Constructor < ? > [ ] ctors = com . picocontainer . parameters . ConstantParameterTestCase . ConstantParameterTestClass . class . getConstructors ( ) ; java . lang . reflect . Type [ ] t = ctors [ 0 ] . getGenericParameterTypes ( ) ; com . picocontainer . para...
org . junit . Assert . assertTrue ( param . resolve ( null , null , null , t [ 0 ] , null , false , null ) . isResolved ( ) )
Load_String_List ( ) { com . mysema . rdfbean . object . Session session = com . mysema . rdfbean . object . SessionUtil . openSession ( com . mysema . rdfbean . object . ListContainerTest . Example . class ) ; com . mysema . rdfbean . object . ListContainerTest . Example example = new com . mysema . rdfbean . object ....
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( "1" , "2" , "3" , "4" ) , example . list )
testDoJob_csv_createdir ( ) { System . out . println ( "doJob<sp>4" ) ; instance . setInputFile ( ( ( basedir ) + "/short.jtl" ) ) ; instance . setOutputCSVFile ( kg . apc . emulators . TestJMeterUtils . getTempDir ( ) . concat ( File . separator ) . concat ( "testFile.csv" ) ) ; instance . setPluginType ( "ResponseTim...
org . junit . Assert . assertEquals ( expResult , result )
discardRPreservesTypeSafeKey ( ) { com . jnape . palatable . lambda . adt . hmap . TypeSafeKey . Simple < java . lang . String > stringKey = com . jnape . palatable . lambda . adt . hmap . TypeSafeKey . typeSafeKey ( ) ; com . jnape . palatable . lambda . adt . hmap . TypeSafeKey < java . lang . String , java . lang . ...
org . junit . Assert . assertEquals ( com . jnape . palatable . lambda . adt . Maybe . just ( "123" ) , map . get ( discardedKey ) )
complexSort ( ) { final com . yandex . yoctodb . mutable . DatabaseBuilder dbBuilder = com . yandex . yoctodb . DatabaseFormat . getCurrent ( ) . newDatabaseBuilder ( ) ; for ( int i = 0 ; i < ( DOCS ) ; i ++ ) { dbBuilder . merge ( com . yandex . yoctodb . DatabaseFormat . getCurrent ( ) . newDocumentBuilder ( ) . wit...
org . junit . Assert . assertEquals ( expected , results )
test_equals_otherType ( ) { org . joda . money . format . MoneyAmountStyle a = MoneyAmountStyle . LOCALIZED_GROUPING ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == other ) { return true ; } if ( other instanceof org . joda . money . BigMoney ) { org . joda . money . BigMoney otherMoney =...
org . junit . Assert . assertEquals ( false , a . equals ( new java . lang . Object ( ) ) )
utf8FixupUtf ( ) { org . mockito . Mockito . when ( request . getQueryString ( ) ) . thenReturn ( ( ( ( java . net . URLEncoder . encode ( "" , "UTF-8" ) ) + "=" ) + ( java . net . URLEncoder . encode ( "rvztrtkrfr" , "UTF-8" ) ) ) ) ; java . util . HashMap < java . lang . String , java . lang . Object [ ] > params = n...
org . junit . Assert . assertEquals ( "rvztrtkrfr" , params . get ( "" ) [ 0 ] )
testKeyLength ( ) { if ( ( org . sakaiproject . basiclti . util . BlowFish . MAX_KEY_LENGTH ) != 16 ) { log . warn ( "Warning:<sp>changing<sp>the<sp>BlowFish.MAX_KEY_LENGTH<sp>may<sp>cause<sp>interoperability<sp>issues" ) ; } "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 16 , BlowFish . MAX_KEY_LENGTH )
testLeaseRecoveryAfterFailover ( ) { final org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; conf . setBoolean ( DFSConfigKeys . DFS_PERMISSIONS_ENABLED_KEY , false ) ; conf . setInt ( DFSConfigKeys . DFS_BLOCK_SIZE_KEY , org . apache . hadoop . hdfs . server . n...
org . junit . Assert . assertTrue ( fs . exists ( org . apache . hadoop . hdfs . server . namenode . ha . TestPipelinesFailover . TEST_PATH ) )
should_get_all_active_projects ( ) { when ( projectDao . findAllActive ( ) ) . thenReturn ( com . google . common . collect . Lists . newArrayList ( net . rrm . ehour . domain . ProjectObjectMother . createProject ( 1 ) ) ) ; java . util . List < net . rrm . ehour . domain . Project > activeProjects = projectService . ...
org . junit . Assert . assertEquals ( 1 , activeProjects . size ( ) )