input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
convertBatchesToMetricsEmptyPoints ( ) { final com . spotify . ffwd . model . Batch batch1 = com . spotify . ffwd . model . Batch . create ( java . util . Optional . of ( commonTags ) , java . util . Optional . of ( commonResources ) , com . google . common . collect . ImmutableList . of ( ) ) ; final com . spotify . f...
org . junit . Assert . assertEquals ( 0 , results . size ( ) )
testEncodeMatchingElement ( ) { java . lang . String path = "dc.xml" ; java . net . URI elementURI = new java . net . URI ( org . opencastproject . util . UrlSupport . concat ( org . opencastproject . mediapackage . RedirectingMediaPackageSerializerTest . SOURCE_URI_PREFIX , path ) ) ; java . net . URI encodedElementUR...
org . junit . Assert . assertEquals ( org . opencastproject . util . UrlSupport . concat ( org . opencastproject . mediapackage . RedirectingMediaPackageSerializerTest . SOURCE_URI_PREFIX , path ) , encodedElementURI . toString ( ) )
testSerialization ( ) { org . jfree . data . time . TimeTableXYDataset d1 = new org . jfree . data . time . TimeTableXYDataset ( ) ; d1 . add ( new org . jfree . data . time . Year ( 1999 ) , 123.4 , "S1" ) ; org . jfree . data . time . TimeTableXYDataset d2 = ( ( org . jfree . data . time . TimeTableXYDataset ) ( org ...
org . junit . Assert . assertTrue ( d1 . equals ( d2 ) )
testSelection ( java . util . List , java . lang . String [ ] ) { java . lang . String input = java . util . stream . Stream . of ( inputs ) . collect ( java . util . stream . Collectors . joining ( com . github . horrorho . liquiddonkey . util . SelectorTest . newline ) ) ; try ( java . io . InputStream inputStream = ...
org . junit . Assert . assertThat ( results , org . hamcrest . CoreMatchers . is ( expected ) )
testExists ( ) { org . apache . jackrabbit . oak . plugins . tree . impl . ImmutableTree child = immutable . getChild ( "x" ) ; "<AssertPlaceHolder>" ; } exists ( ) { return delegate . exists ( ) ; }
org . junit . Assert . assertTrue ( child . exists ( ) )
shouldReturnAllWaiveEnumForValuesNotEqualToZeroOrOne_2 ( ) { org . mifos . accounts . util . helpers . WaiveEnum result = org . mifos . accounts . util . helpers . WaiveEnum . fromInt ( 2 ) ; "<AssertPlaceHolder>" ; } fromInt ( java . lang . Integer ) { org . mifos . accounts . util . helpers . WaiveEnum waiveType = or...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( WaiveEnum . ALL ) )
testPutConvert ( ) { net . tomp2p . dht . PeerDHT master = null ; try { net . tomp2p . dht . PeerDHT [ ] peers = net . tomp2p . dht . UtilsDHT2 . createNodes ( 2000 , net . tomp2p . dht . TestDHT . rnd , 4001 ) ; master = peers [ 0 ] ; net . tomp2p . dht . UtilsDHT2 . perfectRouting ( peers ) ; net . tomp2p . p2p . Rou...
org . junit . Assert . assertEquals ( true , fput . isSuccess ( ) )
testShortParam ( ) { byte [ ] bytes = "test" . getBytes ( ) ; param . handle ( bytes , bytes . length ) ; param . complete ( ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return pBarValue ; }
org . junit . Assert . assertEquals ( "test" , param . getValue ( ) )
testProcessNonEmptyBatch ( ) { com . streamsets . pipeline . sdk . TestExecutorRunner . DummyExecutor stage = new com . streamsets . pipeline . sdk . TestExecutorRunner . DummyExecutor ( ) ; com . streamsets . pipeline . sdk . ExecutorRunner . Builder builder = new com . streamsets . pipeline . sdk . ExecutorRunner . B...
org . junit . Assert . assertTrue ( stage . write )
testSetModelKey ( ) { System . out . println ( "testSetModelKey" ) ; java . lang . String value = "test.input" ; edu . oswego . csc480_hci521_2013 . shared . h2o . urlbuilders . RFBuilder instance = new edu . oswego . csc480_hci521_2013 . shared . h2o . urlbuilders . RFBuilder ( "test.hex" ) ; java . lang . String expR...
org . junit . Assert . assertEquals ( expResult , result )
vcal_timezone_standard_and_daylight ( ) { biweekly . ICalendar ical = new biweekly . ICalendar ( ) ; ical . getProperties ( ) . clear ( ) ; ical . addProperty ( new biweekly . property . DateStart ( utc ( "2014-01-07<sp>09:34:00" ) ) ) ; ical . addProperty ( new biweekly . property . DateStart ( utc ( "2014-10-07<sp>09...
org . junit . Assert . assertEquals ( expected , actual )
testBeansProjectJavaConfigFileRemoved ( ) { beansProject . addConfig ( "java:org.test.spring.SimpleConfigurationClass" , IBeansConfig . Type . MANUAL ) ; org . eclipse . jdt . core . IType type = javaProject . findType ( "org.test.spring.SimpleConfigurationClass" ) ; beansProject . removeConfig ( ( ( org . eclipse . co...
org . junit . Assert . assertEquals ( 0 , configs . size ( ) )
testGetContainerWithHierarchy ( ) { final java . lang . String pid = getRandomPid ( ) ; final org . fcrepo . kernel . api . models . Container container = containerService . findOrCreate ( session , ( "/" + pid ) ) ; final org . fcrepo . kernel . api . models . FedoraResource resource = containerService . findOrCreate ...
org . junit . Assert . assertEquals ( container , resource . getContainer ( ) )
testFindType10 ( ) { org . dresdenocl . model . IModel model ; model = org . dresdenocl . modelbus . test . ModelBusTestUtility . getUML2Model ( "resources/models/model01.uml" ) ; java . util . List < java . lang . String > path ; path = new java . util . ArrayList < java . lang . String > ( ) ; path . add ( "package1"...
org . junit . Assert . assertNull ( type )
testDataSourceConfigurationUsernameAndPassword ( ) { org . apache . beam . sdk . options . ValueProvider < java . lang . String > usename = ValueProvider . StaticValueProvider . of ( "sa" ) ; org . apache . beam . sdk . options . ValueProvider < java . lang . String > password = ValueProvider . StaticValueProvider . of...
org . junit . Assert . assertTrue ( conn . isValid ( 0 ) )
testGetCurrTimeSeconds ( ) { System . out . println ( "getCurrTimeSeconds" ) ; com . bixly . pastevid . recorders . AudioCache instance = new com . bixly . pastevid . recorders . AudioCache ( ) ; int expResult = 0 ; int result = instance . getCurrTimeSeconds ( ) ; "<AssertPlaceHolder>" ; } getCurrTimeSeconds ( ) { retu...
org . junit . Assert . assertEquals ( expResult , result )
getsAndSetsComment ( ) { com . mpatric . mp3agic . ID3v2CommentFrameData frameData = new com . mpatric . mp3agic . ID3v2CommentFrameData ( false ) ; com . mpatric . mp3agic . EncodedText comment = new com . mpatric . mp3agic . EncodedText ( "my<sp>comment" ) ; frameData . setComment ( comment ) ; "<AssertPlaceHolder>" ...
org . junit . Assert . assertEquals ( comment , frameData . getComment ( ) )
setCredentials ( ) { updater . createUser ( org . apache . druid . security . authentication . CoordinatorBasicAuthenticatorMetadataStorageUpdaterTest . AUTHENTICATOR_NAME , "druid" ) ; updater . setUserCredentials ( org . apache . druid . security . authentication . CoordinatorBasicAuthenticatorMetadataStorageUpdaterT...
org . junit . Assert . assertArrayEquals ( credentials . getHash ( ) , recalculatedHash )
testFindTopKHeap2of4 ( ) { java . util . Collection < org . neo4j . graphalgo . impl . util . TopKConsumerTest . Item > topItems = org . neo4j . graphalgo . similarity . TopKConsumer . topK ( asList ( org . neo4j . graphalgo . impl . util . TopKConsumerTest . ITEM2 , org . neo4j . graphalgo . impl . util . TopKConsumer...
org . junit . Assert . assertEquals ( asList ( org . neo4j . graphalgo . impl . util . TopKConsumerTest . ITEM4 , org . neo4j . graphalgo . impl . util . TopKConsumerTest . ITEM2 ) , topItems )
testFull ( ) { byte [ ] bytes = new byte [ 29 ] ; io . datakernel . http . HttpDate . render ( 4073580000L , bytes , 0 ) ; "<AssertPlaceHolder>" ; } parse ( byte [ ] , int ) { try { int day = io . datakernel . http . HttpUtils . trimAndDecodePositiveInt ( bytes , ( start + 5 ) , 2 ) ; int month = - 1 ; for ( int i = 0 ...
org . junit . Assert . assertEquals ( 4073580000L , io . datakernel . http . HttpDate . parse ( bytes , 0 ) )
testCase56 ( ) { org . evosuite . testcase . DefaultTestCase tc = buildTestCase56 ( ) ; java . util . List < org . evosuite . symbolic . BranchCondition > branch_conditions = executeTest ( tc ) ; "<AssertPlaceHolder>" ; } size ( ) { return theTest . size ( ) ; }
org . junit . Assert . assertEquals ( 2 , branch_conditions . size ( ) )
convertNullSContractDefinition ( ) { final org . bonitasoft . engine . bpm . contract . ContractDefinition contract = org . bonitasoft . engine . service . ModelConvertor . toContract ( null ) ; "<AssertPlaceHolder>" . as ( "contract<sp>null" ) . isNull ( ) ; } toContract ( org . bonitasoft . engine . core . process . ...
org . junit . Assert . assertThat ( contract )
testGetPurge ( ) { com . stratelia . silverpeas . silverstatistics . model . TypeStatistics instance = new com . stratelia . silverpeas . silverstatistics . model . TypeStatistics ( ) ; int expResult = 3 ; int result = instance . getPurge ( ) ; "<AssertPlaceHolder>" ; } is ( T ) { return java . util . Objects . equals ...
org . junit . Assert . assertThat ( result , is ( expResult ) )
testNoCacheOnFieldIsNotReturnedWithoutRevalidation ( ) { final org . apache . hc . core5 . http . ClassicHttpRequest req1 = new org . apache . hc . core5 . http . message . BasicClassicHttpRequest ( "GET" , "Cache-Control" 0 ) ; final org . apache . hc . core5 . http . ClassicHttpResponse resp1 = org . apache . hc . cl...
org . junit . Assert . assertNull ( result . getFirstHeader ( "X-Stuff" ) )
should_return_null_primary_key ( ) { org . apache . deltaspike . data . test . domain . Simple simple = new org . apache . deltaspike . data . test . domain . Simple ( "should_return_null_primary_key" ) ; java . lang . Long primaryKey = repo . getPrimaryKey ( simple ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( java . ...
org . junit . Assert . assertNull ( primaryKey )
setAttributeValueToNullIfPreviousValueIsAvailable ( ) { container . setAttribute ( org . apache . mina . session . AttributeContainerTest . ATTRIBUTE_KEY , 123 ) ; java . lang . Integer oldValue = container . setAttribute ( org . apache . mina . session . AttributeContainerTest . ATTRIBUTE_KEY , null ) ; "<AssertPlaceH...
org . junit . Assert . assertThat ( oldValue , org . hamcrest . CoreMatchers . is ( 123 ) )
testGetTimeSpanFromInt ( ) { System . out . println ( "getTimeSpanFromInt" ) ; int timeSpan = 0 ; java . lang . String expResult = "" ; java . lang . String result = com . bj58 . spat . gaea . client . utility . helper . TimeSpanHelper . getTimeSpanFromInt ( timeSpan ) ; "<AssertPlaceHolder>" ; org . junit . Assert . f...
org . junit . Assert . assertEquals ( expResult , result )
testGetUpcomingRecordingNone ( ) { final long nowMillis = java . lang . System . currentTimeMillis ( ) ; final long oneHourMillis = 3600000 ; final java . lang . String captureAgentId = "Device<sp>A" ; final java . util . Set < java . lang . String > userIds = java . util . Collections . emptySet ( ) ; final java . uti...
org . junit . Assert . assertFalse ( currentRecording . isSome ( ) )
testGetNormalizedComponentsRGB ( ) { java . awt . image . ComponentColorModel model = new com . twelvemonkeys . imageio . color . UInt32ColorModel ( com . twelvemonkeys . imageio . color . UInt32ColorModelTest . sRGB , true , false ) ; int [ ] pixel = new int [ 4 ] ; float [ ] normalized = null ; for ( long pix = 0 ; p...
org . junit . Assert . assertEquals ( expected , norm , 0 )
testRegisterComponentInUserComponentManager ( ) { final org . jmock . States state = getMockery ( ) . states ( "test" ) ; getMockery ( ) . checking ( new org . jmock . Expectations ( ) { { allowing ( mockDocumentAccessBridge ) . getCurrentUserReference ( ) ; when ( state . isNot ( "otheruser" ) ) ; will ( returnValue (...
org . junit . Assert . assertNotNull ( contextCM . getInstance ( org . xwiki . component . internal . ContextComponentManagerTest . Role . class ) )
testHashBaseForItemCorePropertiesNormalizesResourceUrls ( ) { final org . sakaiproject . tool . assessment . data . dao . assessment . ItemData item = new org . sakaiproject . tool . assessment . data . dao . assessment . ItemData ( ) ; item . setTypeId ( TypeIfc . FILL_IN_BLANK ) ; final org . sakaiproject . tool . as...
org . junit . Assert . assertThat ( actualHashBase . toString ( ) , org . hamcrest . CoreMatchers . equalTo ( expectedHashBase . toString ( ) ) )
testSearchBillingCode_Null ( ) { java . lang . String searchString = "service001" ; java . lang . String region = "ON" ; java . util . Date date = new java . util . Date ( dfm . parse ( "20091231" ) . getTime ( ) ) ; org . oscarehr . common . model . BillingService result = dao . searchBillingCode ( searchString , regi...
org . junit . Assert . assertNull ( result )
testReplaceSystemDiskString ( ) { try { com . fit2cloud . aliyun . ecs . model . response . ReplaceSystemDiskResponse response = client . replaceSystemDisk ( "i-25uh6z38k" , "centos6u5_64_20G_aliaegis_20140703.vhd" ) ; System . out . println ( ( "testReplaceSystemDiskString<sp>::<sp>" + response ) ) ; "<AssertPlaceHold...
org . junit . Assert . assertTrue ( true )
testPostData ( ) { de . sstoehr . harreader . model . HarRequest request = new de . sstoehr . harreader . model . HarRequest ( ) ; request . setPostData ( null ) ; "<AssertPlaceHolder>" ; } getPostData ( ) { if ( ( postData ) == null ) { postData = new de . sstoehr . harreader . model . HarPostData ( ) ; } return postD...
org . junit . Assert . assertNotNull ( request . getPostData ( ) )
CreateMentorWithoutStudent ( ) { cruise . associations . MentorAD m = new cruise . associations . MentorAD ( "blah" ) ; "<AssertPlaceHolder>" ; } numberOfStudents ( ) { return students . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , m . numberOfStudents ( ) )
testRuleSerialDeserialization ( ) { io . symcpe . wraith . conditions . Condition one = new io . symcpe . wraith . conditions . logical . OrCondition ( java . util . Arrays . asList ( ( ( io . symcpe . wraith . conditions . Condition ) ( new io . symcpe . wraith . conditions . relational . EqualsCondition ( "header1" ,...
org . junit . Assert . assertEquals ( rule , deserializedRule )
testPackFloatPositiveInfinity ( ) { "<AssertPlaceHolder>" ; } packFloat ( float ) { if ( java . lang . Float . isNaN ( k ) ) { return com . jogamp . opengl . math . Binary16 . exampleNaN ( ) ; } if ( k == ( Float . POSITIVE_INFINITY ) ) { return com . jogamp . opengl . math . Binary16 . POSITIVE_INFINITY ; } if ( k == ...
org . junit . Assert . assertTrue ( ( ( com . jogamp . opengl . math . Binary16 . POSITIVE_INFINITY ) == ( com . jogamp . opengl . math . Binary16 . packFloat ( Float . POSITIVE_INFINITY ) ) ) )
getGrantsTest ( ) { java . lang . String [ ] tableTypes = new java . lang . String [ ] { "TABLE" } ; org . mockito . Mockito . when ( connectionMock . isClosed ( ) ) . thenReturn ( false ) ; java . sql . DatabaseMetaData dbmMock = mock ( java . sql . DatabaseMetaData . class ) ; org . mockito . Mockito . when ( connect...
org . junit . Assert . assertTrue ( ( ( grants . getGrants ( ) . size ( ) ) == 1 ) )
shouldSelectBlogWithAParamNamedValue ( ) { org . apache . ibatis . session . SqlSession session = org . apache . ibatis . binding . BindingTest . sqlSessionFactory . openSession ( ) ; try { org . apache . ibatis . binding . BoundBlogMapper mapper = session . getMapper ( org . apache . ibatis . binding . BoundBlogMapper...
org . junit . Assert . assertNotNull ( blog )
shouldReturnHBaseKeySerialisationFromBasicEntity ( ) { final uk . gov . gchq . gaffer . data . element . Entity entity = new uk . gov . gchq . gaffer . data . element . Entity . Builder ( ) . group ( TestGroups . ENTITY ) . vertex ( "3" ) . build ( ) ; final byte [ ] key = serialisation . getRowKey ( entity ) ; final u...
org . junit . Assert . assertEquals ( "3" , newEntity . getVertex ( ) )
perform ( ) { de . galperin . javase8 . capitel3 . ExecutorService executorService = de . galperin . javase8 . capitel3 . Executors . newCachedThreadPool ( ) ; de . galperin . javase8 . capitel3 . Future < java . lang . String > strFuture = executorService . submit ( ( ) -> "1" ) ; de . galperin . javase8 . capitel3 . ...
org . junit . Assert . assertEquals ( new java . lang . Integer ( 1 ) , intFuture . get ( ) )
medicationPrescriptionEventNullTest ( ) { org . marc . everest . rmim . uv . cdar2 . pocd_mt000040uv . EntryRelationship entryRelationship = org . oscarehr . e2e . model . export . template . MedicationPrescriptionEventModelTest . mpeModel . getEntryRelationship ( null ) ; "<AssertPlaceHolder>" ; } getEntryRelationship...
org . junit . Assert . assertNotNull ( entryRelationship )
shouldContinueAttemptingToFindElements ( ) { java . lang . reflect . Field f = org . openqa . selenium . support . pagefactory . AjaxElementLocatorTest . Page . class . getDeclaredField ( "first" ) ; final org . openqa . selenium . WebDriver driver = mock ( org . openqa . selenium . WebDriver . class ) ; final org . op...
org . junit . Assert . assertEquals ( element , returnedList . get ( 0 ) )
testGetCategoriesCountWithAnyStatus ( ) { 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 ( 1 , com . liferay . message . boards . service . MBCategoryServiceUtil . getCategoriesCount ( _group . getGroupId ( ) , MBCategoryConstants . DEFAULT_PARENT_CATEGORY_ID , queryDefinition ) )
testRemoveWithoutHasNext ( ) { java . util . Iterator < java . lang . Integer > testing = new org . apache . commons . functor . core . collection . TransformedIterator < java . lang . Integer , java . lang . Integer > ( list . iterator ( ) , negate ) ; for ( int i = 0 , m = list . size ( ) ; i < m ; i ++ ) { testing ....
org . junit . Assert . assertTrue ( list . isEmpty ( ) )
getVersionWithNoVersionInTheName ( ) { org . eclipse . winery . common . version . WineryVersion version = org . eclipse . winery . common . version . VersionUtils . getVersion ( "myExampleComponent" ) ; "<AssertPlaceHolder>" ; } toString ( ) { java . lang . String versionString = componentVersion ; if ( ( this . winer...
org . junit . Assert . assertEquals ( "" , version . toString ( ) )
indexCreationDoNotBlockWritesOnOtherLabel ( ) { org . neo4j . graphdb . Label markerLabel = org . neo4j . graphdb . Label . label ( "testLabel3" ) ; org . neo4j . graphdb . Label nodesLabel = org . neo4j . graphdb . Label . label ( "testLabel4" ) ; try ( org . neo4j . graphdb . Transaction transaction = schema . IndexP...
org . junit . Assert . assertEquals ( 1 , org . neo4j . helpers . collection . Iterators . count ( nodes ) )
inference ( ) { com . jnape . palatable . lambda . adt . Either < java . lang . Object , com . jnape . palatable . lambda . adt . Maybe < java . lang . Integer > > a = new com . jnape . palatable . lambda . functor . builtin . Compose ( right ( just ( 1 ) ) ) . fmap ( ( x ) -> x + 1 ) . getCompose ( ) ; "<AssertPlaceHo...
org . junit . Assert . assertEquals ( right ( just ( 2 ) ) , a )
testEvaluationPhraseBasicTermOrderFalsePositive ( ) { java . lang . String query = buildFunction ( phraseFunction , Constants . TERM_OFFSET_MAP_JEXL_VARIABLE_NAME , "'cat'" , "'dog'" ) ; org . apache . commons . jexl2 . Expression expr = datawave . query . jexl . functions . ContentFunctionsTest . engine . createExpres...
org . junit . Assert . assertTrue ( datawave . query . jexl . functions . ContentFunctionsTest . expect ( o , true ) )
addRemoveNodes ( ) { int numNodes = 101 ; javax . jcr . Session writer = getAdminSession ( ) ; javax . jcr . Node test = writer . getRootNode ( ) . addNode ( "test" , "nt:unstructured" ) ; for ( int i = 0 ; i < numNodes ; i ++ ) { test . addNode ( ( "node-" + i ) , "nt:unstructured" ) ; } writer . save ( ) ; for ( int ...
org . junit . Assert . assertTrue ( test . hasNode ( "node-x" ) )
testIsNhsNumberValidWithUpperCaseLetters ( ) { java . lang . String validCode = "3001837DBG" ; "<AssertPlaceHolder>" ; } isNhsNumberValidWhenUppercaseLettersAreAllowed ( java . lang . String ) { return org . patientview . radar . util . RadarUtility . isNhsNumberValid ( nhsNumber , true ) ; }
org . junit . Assert . assertTrue ( org . patientview . radar . util . RadarUtility . isNhsNumberValidWhenUppercaseLettersAreAllowed ( validCode ) )
testFindAllWebInfFolders_noWebInfFolders ( ) { java . util . List < org . eclipse . core . resources . IFolder > webInfFolders = com . google . cloud . tools . eclipse . appengine . facets . FacetUtil . findAllWebInfFolders ( projectCreator . getProject ( ) ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( missingPr...
org . junit . Assert . assertTrue ( webInfFolders . isEmpty ( ) )
injectIntoWithOver30 ( ) { com . gs . collections . impl . math . Sum result = new com . gs . collections . impl . math . IntegerSum ( 0 ) ; java . lang . Integer parameter = 2 ; java . util . List < java . lang . Integer > integers = com . gs . collections . impl . list . Interval . oneTo ( 31 ) ; com . gs . collectio...
org . junit . Assert . assertEquals ( 0 , sumOfDoubledValues . getValue ( ) . intValue ( ) )
testLookupNotExisting ( ) { org . geoserver . catalog . CatalogRepository repository = getCatalog ( ) . getResourcePool ( ) . getRepository ( ) ; org . geotools . data . DataStore store = repository . dataStore ( new org . geotools . feature . NameImpl ( "foo" , "bar" ) ) ; "<AssertPlaceHolder>" ; } getResourcePool ( )...
org . junit . Assert . assertNull ( store )
guessStringsFromLineWithEmptyLine ( ) { java . lang . String [ ] saData = org . pentaho . di . trans . steps . csvinput . CsvInput . guessStringsFromLine ( logChannelInterface , null , csvInputMeta . getDelimiter ( ) , csvInputMeta . getEnclosure ( ) , csvInputMeta . getEscapeCharacter ( ) ) ; "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertNull ( saData )
testShowFieldBindingWarning ( ) { view . showFieldBindingWarning ( ) ; "<AssertPlaceHolder>" ; } showFieldBindingWarning ( ) { fieldBindingWarning . hidden = false ; }
org . junit . Assert . assertFalse ( fieldBindingWarning . hidden )
treeWithOneNodeShouldHaveSizeOfOne ( ) { final org . apache . camel . component . salesforce . api . dto . composite . SObjectTree tree = new org . apache . camel . component . salesforce . api . dto . composite . SObjectTree ( ) ; tree . addObject ( new org . apache . camel . component . salesforce . dto . generated ....
org . junit . Assert . assertEquals ( 1 , tree . size ( ) )
test_illegal_detach ( ) { com . noctarius . snowcast . impl . SequencerDefinition definition = new com . noctarius . snowcast . impl . SequencerDefinition ( "empty" , com . noctarius . snowcast . SnowcastEpoch . byTimestamp ( 1 ) , 128 , ( ( short ) ( 1 ) ) ) ; com . noctarius . snowcast . impl . LogicalNodeTable logic...
org . junit . Assert . assertEquals ( address1 , assigned1 )
testSetCancellation ( ) { com . liferay . portal . fabric . netty . worker . NettyFabricWorkerStub < java . lang . String > nettyFabricWorkerStub = new com . liferay . portal . fabric . netty . worker . NettyFabricWorkerStub ( 0 , com . liferay . portal . fabric . netty . NettyTestUtil . createEmptyEmbeddedChannel ( ) ...
org . junit . Assert . assertTrue ( noticeableFuture . isCancelled ( ) )
testConfigs ( ) { java . lang . String [ ] args = new java . lang . String [ ] { "--run_cfg=src/main/resources/configuration/UnitTestConfig.cfg" } ; cc . mallet . configuration . LDACommandLineParser cp = new cc . mallet . configuration . LDACommandLineParser ( args ) ; cc . mallet . configuration . Configuration confi...
org . junit . Assert . assertEquals ( expectedConfigs [ ( i ++ ) ] , configName )
testSendRequestNoHandling ( ) { java . lang . String reportingHost = runJetty ( ) ; org . finra . datagenerator . consumer . DataConsumer theConsumer = new org . finra . datagenerator . consumer . DataConsumer ( ) ; theConsumer . setReportingHost ( reportingHost ) ; java . util . concurrent . Future < java . lang . Str...
org . junit . Assert . assertEquals ( "test1" , response . get ( ) . trim ( ) )
type_short ( ) { com . asakusafw . dmdl . directio . json . driver . ModelLoader loaded = generateJavaFromLines ( new java . lang . String [ ] { "@directio.json" , "simple<sp>=<sp>{" , "<sp>value<sp>:<sp>SHORT;" , "};" } ) ; byte [ ] contents = restore ( loaded , loaded . newModel ( "Simple" ) . setOption ( "value" , n...
org . junit . Assert . assertThat ( com . asakusafw . dmdl . directio . json . driver . JsonFormatEmitterTest . parse ( contents ) , com . asakusafw . dmdl . directio . json . driver . JsonFormatEmitterTest . contains ( com . asakusafw . dmdl . directio . json . driver . JsonFormatEmitterTest . map ( "value" , "1" ) ) ...
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . kernel . model . Layout . class , _dynamicQueryClassLoader ) ; dynamicQuery . setProjection ( co...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testFindInstructingSectionsByAcademicSession ( ) { java . util . Set sections = cm . findInstructingSections ( "grader1" , "F2006" ) ; "<AssertPlaceHolder>" ; } size ( ) { return m_wrapper . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , sections . size ( ) )
testProfilerInNano ( ) { final long sleepTimeNano = com . cloud . utils . TestProfiler . SLEEP_TIME_NANO ; com . cloud . utils . TestProfiler . pf . start ( ) ; com . cloud . utils . TestProfiler . pf . stop ( ) ; "<AssertPlaceHolder>" ; } getDuration ( ) { if ( ( ( startTickNanoSeconds ) != null ) && ( ( stopTickNanoS...
org . junit . Assert . assertTrue ( ( ( com . cloud . utils . TestProfiler . pf . getDuration ( ) ) == sleepTimeNano ) )
testCopyFileToStream ( ) { java . io . File test = tmp . newFolder ( ) ; byte [ ] data = ascii ( "Hello" ) ; java . io . File src = createFile ( test , "hello.txt" , data ) ; java . io . ByteArrayOutputStream dst = new java . io . ByteArrayOutputStream ( ) ; org . kocakosm . pitaya . io . XFiles . cp ( src , dst ) ; "<...
org . junit . Assert . assertArrayEquals ( data , dst . toByteArray ( ) )
calculatePartSize_inexactChunkSplit_partSizeShouldBeOneMore ( ) { com . oracle . bmc . objectstorage . transfer . UploadConfiguration configuration = com . oracle . bmc . objectstorage . transfer . UploadConfiguration . builder ( ) . build ( ) ; long objectSize = ( ( configuration . getLengthPerUploadPart ( ) ) * ( Mul...
org . junit . Assert . assertEquals ( partSize , com . oracle . bmc . objectstorage . transfer . internal . MultipartUtils . calculatePartSize ( configuration , objectSize ) )
batchIterable_forEachEntry_emptySet ( ) { org . eclipse . collections . impl . math . Sum sum = new org . eclipse . collections . impl . math . IntegerSum ( 0 ) ; org . eclipse . collections . impl . parallel . BatchIterable < Map . Entry < java . lang . Integer , java . lang . Integer > > empty = ( ( org . eclipse . c...
org . junit . Assert . assertEquals ( 0 , sum . getValue ( ) )
testShiftSpeed ( ) { int numberOfTests = 20 ; org . openpixi . pixi . physics . Settings settings = getStandardSettings ( ) ; settings . addFieldGenerator ( new org . openpixi . pixi . physics . fields . fieldgenerators . SU2RandomFields ( ) ) ; org . openpixi . pixi . physics . Simulation s = new org . openpixi . pixi...
org . junit . Assert . assertEquals ( index , index2 )
testGetColumnOrder_Initial ( ) { org . eclipse . nebula . widgets . grid . GridTestUtil . createGridColumns ( grid , 5 , SWT . NONE ) ; "<AssertPlaceHolder>" ; } getColumnOrder ( ) { checkWidget ( ) ; int [ ] result = new int [ columns . size ( ) ] ; for ( int i = 0 ; i < ( result . length ) ; i ++ ) { org . eclipse . ...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( new int [ ] { 0 , 1 , 2 , 3 , 4 } , grid . getColumnOrder ( ) ) )
testSuccessfulCoreModelObjectWithSimpleValueType ( ) { org . jboss . dmr . ModelNode description = createSubsystemSkeleton ( ModelType . OBJECT , ModelType . BOOLEAN ) ; java . util . List < org . jboss . as . subsystem . test . ModelDescriptionValidator . ValidationFailure > errors = validate ( description , null ) ; ...
org . junit . Assert . assertEquals ( errors . toString ( ) , 0 , errors . size ( ) )
test ( ) { final nl . bzk . migratiebrp . voisc . database . entities . Bericht bericht = new nl . bzk . migratiebrp . voisc . database . entities . Bericht ( ) ; bericht . setMessageId ( "BerichtRef" ) ; bericht . setCorrelationId ( "CorrelatieRef" ) ; bericht . setRecipient ( "0518010" ) ; bericht . setOriginator ( "...
org . junit . Assert . assertSame ( textMessage , result )
testEquals_3 ( ) { final boolean result = org . apache . shindig . gadgets . oauth2 . persistence . sample . OAuth2GadgetBindingTest . FIXTURE . equals ( null ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( obj == ( this ) ) { return true ; } if ( ! ( obj instanceof org . apache . shindig . gadgets...
org . junit . Assert . assertEquals ( false , result )
createZeroReferences2 ( ) { org . diirt . graphene . TimeScale linearScale = org . diirt . graphene . TimeScales . linearAbsoluteScale ( ) ; java . time . Instant start = org . diirt . graphene . TimeScalesTest . create ( 2014 , 11 , 13 , 10 , 31 , 23 , 53 ) ; org . diirt . util . time . TimeInterval timeInterval = org...
org . junit . Assert . assertTrue ( false )
assertGetWarnings ( ) { for ( java . sql . Statement each : statements . values ( ) ) { "<AssertPlaceHolder>" ; } } getWarnings ( ) { return null ; }
org . junit . Assert . assertNull ( each . getWarnings ( ) )
testConstructor ( ) { final edu . illinois . library . cantaloupe . source . Source source = new edu . illinois . library . cantaloupe . source . MockStreamSource ( ) ; final edu . illinois . library . cantaloupe . processor . Processor processor = new edu . illinois . library . cantaloupe . processor . MockFileProcess...
org . junit . Assert . assertEquals ( expected , e . getMessage ( ) )
testWestWestNeighbour ( ) { this . constructPopulation ( ) ; org . evosuite . ga . Neighbourhood < org . evosuite . ga . Chromosome > neighbourhood = new org . evosuite . ga . Neighbourhood ( org . evosuite . Properties . POPULATION ) ; java . util . List < org . evosuite . ga . Chromosome > neighbors = new java . util...
org . junit . Assert . assertEquals ( exepcted_individual , returned_individual )
transforms_values_and_indicators ( ) { final java . lang . String indicatorVal = "val2" ; org . apache . metron . enrichment . converter . EnrichmentKey lookupKey = new org . apache . metron . enrichment . converter . EnrichmentKey ( "testenrichment" , indicatorVal ) ; org . apache . metron . enrichment . converter . E...
org . junit . Assert . assertThat ( extracted , org . hamcrest . CoreMatchers . equalTo ( expectedLkvs ) )
clearDatePartForDate ( ) { java . util . Date date = new java . util . Date ( ) ; java . util . Calendar cal = java . util . Calendar . getInstance ( org . slim3 . util . TimeZoneLocator . get ( ) ) ; cal . setTime ( date ) ; cal . set ( Calendar . YEAR , 1970 ) ; cal . set ( Calendar . MONTH , Calendar . JANUARY ) ; c...
org . junit . Assert . assertThat ( org . slim3 . util . DateUtil . clearDatePart ( date ) , org . hamcrest . CoreMatchers . is ( cal . getTime ( ) ) )
testNoFiltersExtract5 ( ) { edu . washington . cs . knowitall . extractor . ReVerbExtractorTest . reverb = new edu . washington . cs . knowitall . extractor . ReVerbExtractor ( 0 , false , true , true ) ; edu . washington . cs . knowitall . extractor . ReVerbExtractorTest . got = edu . washington . cs . knowitall . ext...
org . junit . Assert . assertEquals ( edu . washington . cs . knowitall . extractor . ReVerbExtractorTest . expected , edu . washington . cs . knowitall . extractor . ReVerbExtractorTest . got )
isEmoji_for_an_emoji_and_other_chars_returns_false ( ) { java . lang . String str = "<sp>test" ; boolean isEmoji = com . vdurmont . emoji . EmojiManager . isEmoji ( str ) ; "<AssertPlaceHolder>" ; } isEmoji ( java . lang . String ) { if ( string == null ) return false ; com . vdurmont . emoji . EmojiParser . UnicodeCan...
org . junit . Assert . assertFalse ( isEmoji )
testIsIndexWorkRequiredFalse ( ) { when ( mockNodeDao . isNodeAvailable ( tableIdLong ) ) . thenReturn ( true ) ; when ( mockTableIndexDAO . doesIndexStateMatch ( anyString ( ) , anyLong ( ) , anyString ( ) ) ) . thenReturn ( true ) ; org . sagebionetworks . repo . model . table . TableStatus status = new org . sagebio...
org . junit . Assert . assertFalse ( workRequired )
testDecryptAESGCM_withValidInputParameters_decryptsCipherTextProperly ( ) { byte [ ] encrypted = new org . osc . core . broker . util . crypto . EncryptionUtil ( ) . encryptAESGCM ( this . plainText , this . key , this . iv , this . aad ) ; byte [ ] decrypted = new org . osc . core . broker . util . crypto . Encryption...
org . junit . Assert . assertArrayEquals ( this . plainText , decrypted )
testSetEndBy ( ) { java . util . Collection < org . opengis . temporal . Period > result = instant1 . getEndedBy ( ) ; java . util . Collection < org . opengis . temporal . Period > endedby = null ; ( ( org . geotools . temporal . object . DefaultInstant ) ( instant1 ) ) . setEndBy ( endedby ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertEquals ( instant1 . getEndedBy ( ) , result )
testWeakReferenceReducesObjectCount ( ) { new com . eclipsesource . v8 . V8Object ( v8 ) . setWeak ( ) ; "<AssertPlaceHolder>" ; } getObjectReferenceCount ( ) { checkReleased ( ) ; return references . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , v8 . getObjectReferenceCount ( ) )
testSameModelSync ( ) { org . jboss . dmr . ModelNode originalModel = readResourceRecursive ( ) ; executeTriggerSyncOperation ( createMasterDcResources ( ) ) ; org . jboss . dmr . ModelNode currentModel = readResourceRecursive ( ) ; "<AssertPlaceHolder>" ; } createMasterDcResources ( ) { org . jboss . as . controller ....
org . junit . Assert . assertEquals ( originalModel , currentModel )
isButtonEnabled ( ) { marketplaceGotoBean . setSelectedMarketplace ( "mid" ) ; boolean isEnabled = marketplaceGotoBean . isButtonEnabled ( ) ; "<AssertPlaceHolder>" ; } isButtonEnabled ( ) { return ( ( getSelectedMarketplace ( ) ) != null ) && ( ( getSelectedMarketplace ( ) . length ( ) ) > 0 ) ; }
org . junit . Assert . assertTrue ( isEnabled )
setContext_interruptionEnd_contextIsSet ( ) { java . lang . String readingContext = "Interruption.End" ; sampledValue . setContext ( readingContext ) ; "<AssertPlaceHolder>" ; } getContext ( ) { return context ; }
org . junit . Assert . assertThat ( sampledValue . getContext ( ) , org . hamcrest . CoreMatchers . equalTo ( readingContext ) )
testWhenCallingGetRedirectedURI_shouldReturnURIWithBaseURIPreprended ( ) { java . lang . String baseURI = "http://base.uri.example/path/" ; com . microsoft . windowsazure . services . media . implementation . ResourceLocationManager m = new com . microsoft . windowsazure . services . media . implementation . ResourceLo...
org . junit . Assert . assertEquals ( ( baseURI + "Assets" ) , redirectedURI . toString ( ) )
testGet ( ) { com . dongsw . authority . model . ResourceFilters result = resourceFiltersService . get ( java . lang . Integer . valueOf ( 0 ) ) ; "<AssertPlaceHolder>" ; } get ( java . lang . Integer ) { return dao . unique ( id ) ; }
org . junit . Assert . assertEquals ( new com . dongsw . authority . model . ResourceFilters ( ) , result )
testStaticGetInterestPolicyWithNull ( ) { "<AssertPlaceHolder>" ; } getInterestPolicy ( org . springframework . data . gemfire . InterestPolicyType ) { return interestPolicyType != null ? interestPolicyType . getInterestPolicy ( ) : null ; }
org . junit . Assert . assertNull ( org . springframework . data . gemfire . InterestPolicyType . getInterestPolicy ( null ) )
deleteAllGPSTracks_empty_emptyAfterwards ( ) { dbHandler . deleteAllGPSTracks ( ) ; "<AssertPlaceHolder>" ; } getGPSTrackCount ( ) { final android . database . Cursor cursor = getReadableDatabase ( ) . rawQuery ( ( "SELECT<sp>COUNT(1)<sp>FROM<sp>" + ( io . github . data4all . handler . DataBaseHandler . TABLE_GPSTRACK ...
org . junit . Assert . assertEquals ( 0 , dbHandler . getGPSTrackCount ( ) )
testGetCurrentContainer ( ) { org . apache . tiles . request . Request request = createMock ( org . apache . tiles . request . Request . class ) ; org . apache . tiles . request . ApplicationContext context = createMock ( org . apache . tiles . request . ApplicationContext . class ) ; org . apache . tiles . TilesContai...
org . junit . Assert . assertEquals ( container , org . apache . tiles . access . TilesAccess . getCurrentContainer ( request ) )
alias_ ( ) { com . querydsl . collections . Cat cc = alias ( com . querydsl . collections . Cat . class , "cat1" ) ; com . querydsl . collections . Cat ck = alias ( com . querydsl . collections . Cat . class , "cat2" ) ; java . util . List < com . querydsl . collections . Cat > rv = com . querydsl . collections . CollQ...
org . junit . Assert . assertFalse ( rv . isEmpty ( ) )
validateEntries ( ) { java . util . Map < java . lang . String , org . digidoc4j . impl . asic . manifest . ManifestEntry > entriesFromManifest = new java . util . HashMap < java . lang . String , org . digidoc4j . impl . asic . manifest . ManifestEntry > ( ) { { put ( "1" , new org . digidoc4j . impl . asic . manifest...
org . junit . Assert . assertEquals ( 0 , org . digidoc4j . impl . asic . manifest . ManifestValidator . validateEntries ( entriesFromManifest , entriesFromSignature , "" ) . size ( ) )
testRWForAllTypesWithNextTuple ( ) { int rowNum = 10000 ; org . apache . tajo . tuple . memory . MemoryRowBlock rowBlock = org . apache . tajo . storage . raw . TestDirectRawFile . createRowBlock ( rowNum ) ; org . apache . tajo . storage . raw . TableMeta meta = org . apache . tajo . storage . raw . CatalogUtil . newT...
org . junit . Assert . assertEquals ( rowNum , j )
testFind ( ) { final java . lang . String testPath = "/foo/bar" ; when ( mockSession . getNode ( testPath ) ) . thenReturn ( mockDsNode ) ; when ( mockDsNode . isNodeType ( org . fcrepo . kernel . modeshape . services . FEDORA_BINARY ) ) . thenReturn ( true ) ; final org . fcrepo . kernel . api . models . FedoraBinary ...
org . junit . Assert . assertNotNull ( resultBinary )
testSerializeServerEntryWithEmptyDN ( ) { org . apache . directory . api . ldap . model . entry . Entry entry = new org . apache . directory . api . ldap . model . entry . DefaultEntry ( org . apache . directory . server . core . partition . impl . btree . jdbm . ServerEntrySerializerTest . schemaManager , "" , "object...
org . junit . Assert . assertEquals ( entry , result )
removeFlashAttr ( ) { org . jooby . internal . handlers . FlashScopeHandler . FlashMap flash = new org . jooby . internal . handlers . FlashScopeHandler . FlashMap ( new java . util . HashMap ( ) ) ; flash . put ( "foo" , "bar" ) ; new org . jooby . RequestTest . RequestMock ( ) { @ org . jooby . Override public Reques...
org . junit . Assert . assertEquals ( null , flash . get ( "foo" ) )
testGeonetworkInsertDeserialization ( ) { com . thoughtworks . xstream . XStream xstream = new com . thoughtworks . xstream . XStream ( ) ; it . geosolutions . geobatch . xstream . Alias alias = new it . geosolutions . geobatch . xstream . Alias ( ) ; alias . setAliasRegistry ( aliasRegistry ) ; alias . setAliases ( xs...
org . junit . Assert . assertTrue ( configurationDeserialized )