input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testGetAndSet_allPositions ( ) { com . clearspring . analytics . stream . cardinality . RegisterSet rs = new com . clearspring . analytics . stream . cardinality . RegisterSet ( ( ( int ) ( java . lang . Math . pow ( 2 , 4 ) ) ) ) ; for ( int i = 0 ; i < ( java . lang . Math . pow ( 2 , 4 ) ) ; i ++ ) { rs . set ( i , ...
org . junit . Assert . assertEquals ( ( i % 31 ) , rs . get ( i ) )
test_dont_track_finalize_when_extends ( ) { org . torpedoquery . jpa . internal . utils . ProxyFactoryFactory proxyFactoryFactory = org . torpedoquery . jpa . internal . TorpedoMagic . getProxyfactoryfactory ( ) ; org . torpedoquery . jpa . internal . utils . TorpedoMethodHandler torpedoMethodHandler = new org . torped...
org . junit . Assert . assertTrue ( torpedoMethodHandler . getMethods ( ) . isEmpty ( ) )
delegatesToJDKForNextIntFromZeroToN ( ) { "<AssertPlaceHolder>" ; } nextInt ( int ) { return delegate . nextInt ( n ) ; }
org . junit . Assert . assertEquals ( 1 , source . nextInt ( 2 ) )
testOverlaps ( ) { org . locationtech . jts . geom . GeometryFactory fact = new org . locationtech . jts . geom . GeometryFactory ( ) ; final org . locationtech . jts . geom . LinearRing ring = fact . createLinearRing ( new org . locationtech . jts . geom . Coordinate [ ] { new org . locationtech . jts . geom . Coordin...
org . junit . Assert . assertTrue ( expected . equals ( result ) )
setResponseStatusFailureCase ( ) { gov . hhs . fha . nhinc . docretrieve . util . DocRetrieveStatusUtil util = new gov . hhs . fha . nhinc . docretrieve . util . DocRetrieveStatusUtil ( ) ; java . lang . String status = "Failure" ; java . lang . String returnedStatus ; returnedStatus = util . setResponseStatus ( create...
org . junit . Assert . assertEquals ( returnedStatus , status )
testHasIndexRangeKeyCondition_WhenConditionCriteriaIsNonEqualityConditionOnAPropertyWhichIsAnIndexRangeKeyButNotAHashKeyButIsARangeKey ( ) { org . mockito . Mockito . when ( entityInformation . isGlobalIndexRangeKeyProperty ( "playlistName" ) ) . thenReturn ( true ) ; criteria . withPropertyBetween ( "playlistName" , "...
org . junit . Assert . assertTrue ( hasIndexRangeKeyCondition )
testApplyOffsetToCoordinates ( ) { org . xmlbeam . XBProjector projector = new org . xmlbeam . XBProjector ( new org . xmlbeam . config . DefaultXMLFactoriesConfig ( ) . setNamespacePhilosophy ( NamespacePhilosophy . AGNOSTIC ) ) ; org . xmlbeam . types . DefaultTypeConverter converter = new org . xmlbeam . types . Def...
org . junit . Assert . assertTrue ( coordinates . iterator ( ) . hasNext ( ) )
readPayloadBrokenOffset ( ) { byte [ ] payload = reader . readPayload ( new byte [ 1 ] , 2 , 1 ) ; "<AssertPlaceHolder>" ; } readPayload ( byte [ ] , int , int ) { if ( payloadLength < 0 ) { net . ripe . hadoop . pcap . PcapReader . LOG . warn ( "Malformed<sp>packet<sp>-<sp>negative<sp>payload<sp>length.<sp>Returning<s...
org . junit . Assert . assertTrue ( ( 0 == ( payload . length ) ) )
testMatchNoMatch ( ) { org . apache . olingo . odata2 . core . commons . ContentType m1 = org . apache . olingo . odata2 . core . commons . ContentType . create ( "aaa/bbb;x=z;a=b" ) ; org . apache . olingo . odata2 . core . commons . ContentType m2 = org . apache . olingo . odata2 . core . commons . ContentType . crea...
org . junit . Assert . assertTrue ( ( match == null ) )
createsArrayOfStrings ( ) { org . everrest . core . impl . provider . json . ArrayValue jsonArray = createJsonArray ( "to" , "be" , "or" , "not" , "to" , "be" ) ; java . lang . Object array = org . everrest . core . impl . provider . json . ObjectBuilder . createArray ( java . lang . String [ ] . class , jsonArray ) ; ...
org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { "to" , "be" , "or" , "not" , "to" , "be" } , ( ( java . lang . Object [ ] ) ( array ) ) )
testCalculateInternalScrollPanelHeightWhenScrollbarYIsDisabled ( ) { final java . lang . Double maximumBoundY = + 20.0 ; final java . lang . Double minimumBoundY = - 20.0 ; final java . lang . Double zoomLevel = 0.75 ; final java . lang . Double currentScrollPosition = 0.0 ; doReturn ( maximumBoundY ) . when ( scrollBo...
org . junit . Assert . assertEquals ( org . uberfire . ext . wires . core . grids . client . widget . scrollbars . GridLienzoScrollHandler . DEFAULT_INTERNAL_SCROLL_HEIGHT , panelHeight , 0 )
testPoint ( ) { final org . locationtech . geowave . core . geotime . store . data . PersistenceEncodingTest . GeoObjDataAdapter adapter = new org . locationtech . geowave . core . geotime . store . data . PersistenceEncodingTest . GeoObjDataAdapter ( org . locationtech . geowave . core . geotime . store . data . Persi...
org . junit . Assert . assertEquals ( 1 , ids . size ( ) )
testSize ( ) { jsonArray . add ( "wibble" ) ; jsonArray . add ( true ) ; jsonArray . add ( 123 ) ; "<AssertPlaceHolder>" ; } size ( ) { return names ( ) . size ( ) ; }
org . junit . Assert . assertEquals ( 3 , jsonArray . size ( ) )
testOf ( ) { org . javamoney . calc . common . BasisPoint perc = org . javamoney . calc . common . BasisPoint . of ( BigDecimal . ONE ) ; "<AssertPlaceHolder>" ; } of ( java . lang . Number ) { return new org . javamoney . calc . common . BasisPoint ( number ) ; }
org . junit . Assert . assertNotNull ( perc )
testDuplicatedElementsIteration ( ) { org . petitparser . parser . Parser parser2 = upperCase ( ) ; org . petitparser . parser . Parser parser1 = parser2 . seq ( parser2 ) ; org . petitparser . utils . Mirror mirror = org . petitparser . utils . Mirror . of ( parser1 ) ; java . util . List < org . petitparser . parser ...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( parser1 , parser2 ) , parsers )
testLogin ( ) { org . talend . components . salesforce . SalesforceConnectionProperties props = setupProps ( null , ( ! ( ADD_QUOTES ) ) ) ; org . talend . daikon . properties . presentation . Form f = props . getForm ( SalesforceConnectionProperties . FORM_WIZARD ) ; props = ( ( org . talend . components . salesforce ...
org . junit . Assert . assertEquals ( ValidationResult . Result . OK , props . getValidationResult ( ) . getStatus ( ) )
shouldAddExtractedTags ( ) { final java . util . Map < java . lang . String , java . lang . String > tags = com . google . common . collect . ImmutableMap . of ( "FFWD_TAG_bar" , "baz" ) ; final com . google . common . base . Supplier < java . util . Map < java . lang . String , java . lang . String > > environmentSupp...
org . junit . Assert . assertEquals ( com . google . common . collect . ImmutableMap . of ( "foo" , "bar" , "bar" , "baz" ) , commonTags )
testTheRightText ( ) { final java . lang . String text = "text1" ; final org . uberfire . ext . editor . commons . client . file . exports . TextContent content = org . uberfire . ext . editor . commons . client . file . exports . TextContent . create ( text ) ; "<AssertPlaceHolder>" ; } getText ( ) { return text ; }
org . junit . Assert . assertEquals ( text , content . getText ( ) )
attrsArray ( ) { java . util . function . Function < java . lang . String , org . jooby . Route . Definition > route = ( path ) -> new org . jooby . Route . Definition ( "*" , path , ( ) -> null ) ; org . jooby . Route . Definition r = route . apply ( "/" ) . attr ( "i" , new int [ ] { 7 } ) ; "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( new int [ ] { 7 } , ( ( int [ ] ) ( r . attr ( "i" ) ) ) ) )
testFilterMedicationsTreeDoesntStartWithSearchWord2 ( ) { final java . util . List < com . marand . thinkmed . html . components . tree . TreeNodeData > medications = getMedicationTree ( ) ; final java . util . List < com . marand . thinkmed . html . components . tree . TreeNodeData > filteredMedications = medicationsF...
org . junit . Assert . assertEquals ( 1 , filteredMedications . size ( ) )
testLeeg ( ) { final nl . bzk . migratiebrp . conversie . model . brp . BrpStapel < nl . bzk . migratiebrp . conversie . model . brp . groep . BrpPersoonAfgeleidAdministratiefInhoud > brpInhoud = doMapping ( mapper , nl . bzk . brp . levering . lo3 . support . MetaObjectUtil . maakIngeschrevene ( ) ) ; "<AssertPlaceHol...
org . junit . Assert . assertNull ( brpInhoud )
whenPreviouslyReadByOtherThread_thenNoProblems ( ) { org . multiverse . stms . gamma . transactionalobjects . GammaTxnLong ref = new org . multiverse . stms . gamma . transactionalobjects . GammaTxnLong ( stm , 10 ) ; org . multiverse . stms . gamma . transactions . GammaTxn otherTx = stm . newDefaultTxn ( ) ; ref . ge...
org . junit . Assert . assertEquals ( 10 , result )
testGetBooleanValue5 ( ) { com . huawei . streaming . config . StreamingConfigTest . config . put ( com . huawei . streaming . config . StreamingConfigTest . CONF_VAR , "false" ) ; "<AssertPlaceHolder>" ; } getBooleanValue ( java . lang . String ) { if ( this . containsKey ( key ) ) { try { return java . lang . Boolean...
org . junit . Assert . assertTrue ( ( ( com . huawei . streaming . config . StreamingConfigTest . config . getBooleanValue ( com . huawei . streaming . config . StreamingConfigTest . CONF_VAR ) ) == false ) )
testOrdinanceImmutable ( ) { org . gedcom4j . model . thirdpartyadapters . FamilyTreeMaker3Adapter a = new org . gedcom4j . model . thirdpartyadapters . FamilyTreeMaker3Adapter ( ) ; java . util . List < org . gedcom4j . model . CustomFact > cfs = a . getOrdinance ( jesse ) ; "<AssertPlaceHolder>" ; cfs . clear ( ) ; }...
org . junit . Assert . assertNotNull ( cfs )
preHandle ( ) { final boolean result = service . preHandle ( request , response , handler ) ; "<AssertPlaceHolder>" ; verify ( userConfigService ) . refreshCatalogUserConfigContext ( ) ; } preHandle ( javax . servlet . http . HttpServletRequest , javax . servlet . http . HttpServletResponse , java . lang . Object ) { u...
org . junit . Assert . assertTrue ( result )
test2 ( ) { final com . persistit . Key key1 = new com . persistit . Key ( _persistit ) ; final com . persistit . Key key2 = new com . persistit . Key ( _persistit ) ; System . out . print ( "test2<sp>" ) ; for ( int i1 = 0 ; i1 < ( com . persistit . unit . KeyTest1 . TEST_LONGS . length ) ; i1 ++ ) { for ( int i2 = 0 ...
org . junit . Assert . assertTrue ( result )
test_param_string_positional_injection_07 ( ) { java . lang . String str = "PREFIX<sp>:<sp><http://example/>\nINSERT<sp>DATA<sp>{<sp><s><sp><p><sp>\"?\"<sp>}" ; org . apache . jena . query . ParameterizedSparqlString pss = new org . apache . jena . query . ParameterizedSparqlString ( str ) ; pss . setLiteral ( 0 , "<sp...
org . junit . Assert . assertFalse ( pss . getEligiblePositionalParameters ( ) . hasNext ( ) )
fromString_format_notz ( ) { com . psddev . dari . util . Date expect = new java . text . SimpleDateFormat ( "yyyy/MM/dd<sp>HH:mm:ss" ) . parse ( "2011/05/13<sp>12:45:27" ) ; "<AssertPlaceHolder>" ; } fromString ( java . lang . String , java . lang . String ) { if ( string == null ) { throw new com . psddev . dari . ut...
org . junit . Assert . assertEquals ( expect , com . psddev . dari . util . DateUtils . fromString ( "2011/05/13<sp>12:45:27" , "yyyy/MM/dd<sp>HH:mm:ss" ) )
testGetMinX ( ) { System . out . println ( "getMinX" ) ; kg . apc . charting . AbstractGraphRow instance = new kg . apc . charting . AbstractGraphRowTest . AbstractGraphRowImpl ( ) ; long expResult = Long . MAX_VALUE ; long result = instance . getMinX ( ) ; "<AssertPlaceHolder>" ; } getMinX ( ) { return graphRow . getM...
org . junit . Assert . assertEquals ( expResult , result )
request_class_does_not_equal_base_class_returns_no_specimen ( ) { java . lang . Object result = builder . create ( com . flextrade . jfixture . customisation . Integer . class , mockContext ) ; "<AssertPlaceHolder>" ; } create ( java . lang . Object , com . flextrade . jfixture . SpecimenContext ) { for ( com . flextra...
org . junit . Assert . assertEquals ( new com . flextrade . jfixture . NoSpecimen ( ) , result )
test_DifferentAttributes ( ) { aggregator . addAll ( de . metas . util . collections . CollectionUtils . asSet ( createInvoiceLineAttribute ( attribute1 , "1_1" ) , createInvoiceLineAttribute ( attribute2 , "2" ) ) ) ; aggregator . addAll ( de . metas . util . collections . CollectionUtils . asSet ( createInvoiceLineAt...
org . junit . Assert . assertEquals ( expectedResult , aggregator . aggregate ( ) )
setMeasurand_powerActiveImport_measurandIsSet ( ) { java . lang . String measurand = "Power.Active.Import" ; sampledValue . setMeasurand ( measurand ) ; "<AssertPlaceHolder>" ; } getMeasurand ( ) { return measurand ; }
org . junit . Assert . assertThat ( sampledValue . getMeasurand ( ) , org . hamcrest . CoreMatchers . equalTo ( measurand ) )
testRenamePage ( ) { com . liferay . wiki . model . WikiPage page = com . liferay . wiki . util . test . WikiTestUtil . addPage ( _group . getGroupId ( ) , _node . getNodeId ( ) , true ) ; com . liferay . portal . kernel . service . ServiceContext serviceContext = com . liferay . portal . kernel . test . util . Service...
org . junit . Assert . assertNotNull ( renamedPage )
testDefaultFeedRights ( ) { com . epimorphics . lda . renderers . feed . tests . FeedRenderer fr = makeFeedRenderer ( config ) ; "<AssertPlaceHolder>" ; } getFeedRights ( ) { return feedRights ; }
org . junit . Assert . assertNull ( fr . getFeedRights ( ) )
testTablesMade ( ) { try ( java . sql . Connection c = db . getTestDatabase ( ) . getConnection ( ) ; java . sql . Statement s = c . createStatement ( ) ) { java . sql . ResultSet rs = s . executeQuery ( "SELECT<sp>*<sp>FROM<sp>foo" ) ; rs . next ( ) ; "<AssertPlaceHolder>" ; } } getTestDatabase ( ) { if ( ( dataSource...
org . junit . Assert . assertEquals ( "bar" , rs . getString ( 1 ) )
testApply4 ( ) { com . liferay . dynamic . data . mapping . form . evaluator . internal . function . ConcatFunction concatFunction = new com . liferay . dynamic . data . mapping . form . evaluator . internal . function . ConcatFunction ( ) ; java . lang . String actualString = concatFunction . apply ( new java . lang ....
org . junit . Assert . assertEquals ( "" , actualString )
when_focus_is_delayed_then_it_is_not_applied_on_form_submit_postback ( ) { browser . get ( contextPath . toExternalForm ( ) ) ; guardHttp ( submit ) . click ( ) ; "<AssertPlaceHolder>" ; } getFocusedElement ( ) { return org . richfaces . component . focus . FocusRetriever . retrieveActiveElement ( ) ; }
org . junit . Assert . assertEquals ( null , getFocusedElement ( ) )
testIsBeforeFirst2 ( ) { org . teiid . jdbc . ResultSetImpl rs = helpGetNoResults ( org . teiid . jdbc . TestAllResultsImpl . TYPE_FORWARD_ONLY ) ; boolean actual = rs . isBeforeFirst ( ) ; "<AssertPlaceHolder>" ; rs . close ( ) ; } isBeforeFirst ( ) { return ( ( getAbsoluteRowNumber ( ) ) == ( org . teiid . jdbc . Res...
org . junit . Assert . assertEquals ( false , actual )
getFloat ( ) { final java . lang . Float value = 1.2F ; final io . trane . ndbc . value . FloatValue wrapper = new io . trane . ndbc . value . FloatValue ( value ) ; "<AssertPlaceHolder>" ; } getFloat ( ) { return new java . lang . Float ( get ( ) ) ; }
org . junit . Assert . assertEquals ( value , wrapper . getFloat ( ) )
testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereNoPrimaryKeysExist ( ) { long pk1 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; long pk2 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; java . util . Set < java . io . Serializable > primaryKeys = ne...
org . junit . Assert . assertTrue ( assetDisplayPageEntries . isEmpty ( ) )
testBind_Collection ( ) { org . apache . cayenne . test . jdbc . TableHelper tArtist = new org . apache . cayenne . test . jdbc . TableHelper ( dbHelper , "ARTIST" ) . setColumns ( "ARTIST_ID" , "ARTIST_NAME" ) ; for ( int i = 1 ; i < 4 ; i ++ ) { tArtist . insert ( new java . lang . Long ( i ) , ( "Artist" + i ) ) ; }...
org . junit . Assert . assertEquals ( 2 , result . size ( ) )
when_tryProcess3_then_delegatesToTryProcess ( ) { boolean done = p . tryProcess3 ( com . hazelcast . jet . core . AbstractProcessorTest . MOCK_ITEM ) ; "<AssertPlaceHolder>" ; p . validateReceptionOfItem ( com . hazelcast . jet . core . AbstractProcessorTest . ORDINAL_3 , com . hazelcast . jet . core . AbstractProcesso...
org . junit . Assert . assertTrue ( done )
testHasRelationshipsWithOutgoingDirectionWithSingleRelationshipTypeParamsReversed ( ) { boolean hasRelationship = neo . hasRelationship ( RelTypes . KNOWS , org . neo4j . rest . graphdb . OUTGOING ) ; "<AssertPlaceHolder>" ; } hasRelationship ( org . neo4j . rest . graphdb . entity . RelationshipType , org . neo4j . re...
org . junit . Assert . assertTrue ( hasRelationship )
testGeotiffRetilerConfigurationAliased ( ) { java . lang . Boolean configurationAliasRegistered = false ; java . lang . Class configurationClass = it . geosolutions . geobatch . geotiff . retile . GeotiffRetilerConfiguration . class ; java . util . Iterator < java . util . Map . Entry < java . lang . String , java . la...
org . junit . Assert . assertTrue ( configurationAliasRegistered )
retrieveExplicitlyAssociatedProfileCase2 ( ) { org . restcomm . connect . core . service . profile . ProfileServiceTest . MockingService mocks = new org . restcomm . connect . core . service . profile . ProfileServiceTest . MockingService ( ) ; org . restcomm . connect . dao . entities . Organization organization = ret...
org . junit . Assert . assertEquals ( expectedProfile . getSid ( ) , resultantProfile . getSid ( ) )
getArrayFirstBigDecimalFromArray ( ) { org . spincast . core . json . JsonArray array2 = getJsonManager ( ) . createArray ( ) ; array2 . add ( new java . math . BigDecimal ( 123 ) ) ; array2 . add ( "titi" ) ; org . spincast . core . json . JsonArray array = getJsonManager ( ) . createArray ( ) ; array . add ( "nope" )...
org . junit . Assert . assertEquals ( new java . math . BigDecimal ( 123 ) , arrayFirst )
shouldWrapMessageSourceInDefaultObjectMessageSource ( ) { org . springframework . context . MessageSource messageSource = mock ( org . springframework . context . MessageSource . class ) ; org . springframework . springfaces . message . ObjectMessageSource objectMessageSource = org . springframework . springfaces . mes...
org . junit . Assert . assertThat ( objectMessageSource , org . hamcrest . Matchers . is ( org . springframework . springfaces . message . DefaultObjectMessageSource . class ) )
testAskForTransactionsMidfile ( ) { java . io . File f = new java . io . File ( ( ( TestEditLog . TEST_DIR ) + "/askfortransactionsmidfile" ) ) ; org . apache . hadoop . hdfs . server . namenode . NNStorage storage = org . apache . hadoop . hdfs . server . namenode . TestEditLog . setupEdits ( java . util . Collections...
org . junit . Assert . assertEquals ( ( ( TOTAL_TXIDS - txid ) + 1 ) , org . apache . hadoop . hdfs . server . namenode . TestFileJournalManager . getNumberOfTransactions ( jm , txid , true , false ) )
testGetFilePanel ( ) { System . out . println ( "getFilePanel" ) ; kg . apc . jmeter . reporters . LoadosophiaUploaderGui instance = new kg . apc . jmeter . reporters . LoadosophiaUploaderGui ( ) ; kg . apc . jmeter . reporters . Component result = instance . getFilePanel ( ) ; "<AssertPlaceHolder>" ; } getFilePanel ( ...
org . junit . Assert . assertNotNull ( result )
testPlayerMoveIntoLockedIslandAsMember ( ) { org . bukkit . entity . Player player = mock ( org . bukkit . entity . Player . class ) ; when ( player . getUniqueId ( ) ) . thenReturn ( uuid ) ; when ( im . hasIsland ( org . mockito . Mockito . any ( ) , org . mockito . Mockito . eq ( uuid ) ) ) . thenReturn ( true ) ; w...
org . junit . Assert . assertFalse ( e . isCancelled ( ) )
testNonInplaceOp1 ( ) { lombok . val arrayX = org . nd4j . linalg . factory . Nd4j . create ( 10 , 10 ) ; lombok . val arrayY = org . nd4j . linalg . factory . Nd4j . create ( 10 , 10 ) ; lombok . val arrayZ = org . nd4j . linalg . factory . Nd4j . create ( 10 , 10 ) ; arrayX . assign ( 3.0 ) ; arrayY . assign ( 1.0 ) ...
org . junit . Assert . assertEquals ( exp , arrayZ )
testConfigureReplicationActionType_Deactivate ( ) { final com . day . cq . replication . ReplicationActionType expected = com . day . cq . replication . ReplicationActionType . DEACTIVATE ; final com . day . cq . replication . ReplicationActionType actual = dispatcherFlushRules . configureReplicationActionType ( "DEACT...
org . junit . Assert . assertEquals ( expected , actual )
testFromString ( ) { java . lang . String initial = "12324124321234543256758654.76543212345676543254356765434567654" ; function . execute ( null , null , null , new java . lang . Object [ ] { initial } , null ) ; java . lang . Object result = function . getResult ( ) ; "<AssertPlaceHolder>" ; } getResult ( ) { return s...
org . junit . Assert . assertEquals ( result , new java . math . BigDecimal ( initial ) )
testVisitCountFunction ( ) { es . ieci . tecdoc . fwktd . sql . node . expression . functions . agregate . CountFunction function = new es . ieci . tecdoc . fwktd . sql . node . expression . functions . agregate . CountFunction ( ) ; expressionRenderer . visit ( function ) ; "<AssertPlaceHolder>" ; } getSqlString ( ) {...
org . junit . Assert . assertNotNull ( function . getSqlString ( ) )
testGetRegistryService ( ) { org . osgi . framework . ServiceReference < com . liferay . registry . Registry > serviceReference = _bundleContext . getServiceReference ( com . liferay . registry . Registry . class ) ; com . liferay . registry . Registry registry = _bundleContext . getService ( serviceReference ) ; "<Ass...
org . junit . Assert . assertNotNull ( registry )
testActionPerformed_Merge ( ) { System . out . println ( "actionPerformed" ) ; kg . apc . jmeter . vizualizers . MergeResultsGui instance = new kg . apc . jmeter . vizualizers . MergeResultsGui ( ) ; javax . swing . JTable grid = instance . getGrid ( ) ; java . awt . event . ActionEvent actionMerge = new java . awt . e...
org . junit . Assert . assertTrue ( f . exists ( ) )
testHashingOnClassConstraint ( ) { java . lang . String drl = ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "import<sp>" + ( org . drools . compiler . NodeHashingTest . A . class . getCanonicalName ( ) ) ) + "\n" ) + "rule<sp>R1<sp>when\n" ) + "<sp>A(<sp>configClass<sp>==<sp>String.class<sp>);\n" ) + "then\n" ) + "end\n" ) + "\n" ) + ...
org . junit . Assert . assertEquals ( 3 , kieSession . fireAllRules ( ) )
clearTest2 ( ) { org . krakenapps . pcap . util . Buffer buffer = initBuffer2 ( ) ; byte [ ] temp = new byte [ 12 ] ; buffer . gets ( temp ) ; buffer . clear ( ) ; "<AssertPlaceHolder>" ; } get ( ) { return value ; }
org . junit . Assert . assertEquals ( 1 , buffer . get ( ) )
testIsRevealedWhenInMiddleOfClientArea ( ) { org . eclipse . swt . graphics . Point origin = new org . eclipse . swt . graphics . Point ( 0 , 0 ) ; org . eclipse . swt . graphics . Rectangle clientArea = createRectangle ( 0 , 0 , 100 , 100 ) ; org . eclipse . swt . graphics . Rectangle controlBounds = createRectangle (...
org . junit . Assert . assertTrue ( isRevealed )
testUpdateApplicationPriority ( ) { org . apache . hadoop . yarn . client . cli . ApplicationCLI cli = createAndGetAppCLI ( ) ; org . apache . hadoop . yarn . api . records . ApplicationId applicationId = org . apache . hadoop . yarn . api . records . ApplicationId . newInstance ( 1234 , 6 ) ; org . apache . hadoop . y...
org . junit . Assert . assertEquals ( result , 0 )
minimalBuilderTest ( ) { org . appenders . log4j2 . elasticsearch . bulkprocessor . PEMCertInfo . Builder builder = org . appenders . log4j2 . elasticsearch . bulkprocessor . PEMCertInfoTest . createTestCertInfoBuilder ( ) ; org . appenders . log4j2 . elasticsearch . CertInfo certInfo = builder . build ( ) ; "<AssertPl...
org . junit . Assert . assertNotNull ( certInfo )
testCustomOps1 ( ) { lombok . val map = org . nd4j . linalg . factory . Nd4j . getExecutioner ( ) . getCustomOperations ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return objects . size ( ) ; }
org . junit . Assert . assertTrue ( ( ( map . size ( ) ) > 0 ) )
testRouterMacAndVlanFilter ( ) { org . onosproject . net . flowobjective . FilteringObjective filteringObjective = buildFilteringObjective ( org . onosproject . pipelines . fabric . pipeliner . ROUTER_MAC ) ; org . onosproject . pipelines . fabric . pipeliner . ObjectiveTranslation actualTranslation = translator . tran...
org . junit . Assert . assertEquals ( expectedTranslation , actualTranslation )
testAddFormula ( ) { final org . prop4j . explain . solvers . SatProblem instance = getInstance ( ) ; instance . addFormula ( new org . prop4j . And ( new org . prop4j . Literal ( "A" , false ) , new org . prop4j . Or ( "A" , "B" ) ) ) ; final java . util . List < org . prop4j . Node > expected = new java . util . Link...
org . junit . Assert . assertEquals ( expected , actual )
testImage ( ) { byte [ ] byteArray = null ; org . apache . olingo . odata2 . ref . model . Employee employee1 = new org . apache . olingo . odata2 . ref . model . Employee ( 1 , org . apache . olingo . odata2 . ref . model . EmployeeTest . VALUE_NAME ) ; employee1 . setImage ( org . apache . olingo . odata2 . ref . mod...
org . junit . Assert . assertArrayEquals ( byteArray , employee1 . getImage ( ) )
intializePricingForSelectedTemplate_ObjectNotFoundException ( ) { org . oscm . internal . types . exception . ObjectNotFoundException oex = new org . oscm . internal . types . exception . ObjectNotFoundException ( ) ; when ( ctrl . pricingService . getMarketplacePricingForService ( any ( org . oscm . internal . pricing...
org . junit . Assert . assertEquals ( 0 , model . getSelectedTemplateKey ( ) )
testClientACK ( ) { javax . jms . Queue queueSource = createQueue ( "Source" ) ; javax . jms . Queue queueTarget = createQueue ( "Dest" ) ; javax . jms . Connection connection = cf . createConnection ( ) ; javax . jms . Session session = connection . createSession ( false , Session . CLIENT_ACKNOWLEDGE ) ; final javax ...
org . junit . Assert . assertNotNull ( receivedMessage )
testSparqlQuery_fromPrompt_cancelled ( ) { final java . lang . String instanceName = "unitTest" ; final java . lang . String queryFile = null ; final java . lang . String expectedMessage = "" ; final org . apache . rya . api . client . ExecuteSparqlQuery mockQuery = mock ( org . apache . rya . api . client . ExecuteSpa...
org . junit . Assert . assertEquals ( expectedMessage , message )
testSizeOnNonEmptyDeque ( ) { com . sun . sgs . test . app . util . TestScalableDeque . txnScheduler . runTask ( new com . sun . sgs . test . util . TestAbstractKernelRunnable ( ) { public void run ( ) throws com . sun . sgs . test . app . util . Exception { com . sun . sgs . app . util . ScalableDeque < java . lang . ...
org . junit . Assert . assertEquals ( 1 , d . size ( ) )
testReportKBuilderErrorWhenUsingAJavaClassWithNoPkg ( ) { final java . lang . String java = "public<sp>class<sp>JavaClass<sp>{<sp>}\n" ; final org . kie . api . KieServices ks = KieServices . Factory . get ( ) ; final org . kie . api . builder . KieFileSystem kfs = ks . newKieFileSystem ( ) . write ( "src/main/java/Jav...
org . junit . Assert . assertEquals ( 1 , results . getMessages ( ) . size ( ) )
test01 ( ) { java . util . ArrayList < java . lang . Integer > removedIds = new java . util . ArrayList ( ) ; removedIds . add ( 0 ) ; int [ ] range = new int [ ] { 0 , 1 } ; com . itextpdf . layout . renderer . TextRenderer . updateRangeBasedOnRemovedCharacters ( removedIds , range ) ; "<AssertPlaceHolder>" ; } update...
org . junit . Assert . assertArrayEquals ( new int [ ] { 0 , 0 } , range )
testJoinDateAndTime ( ) { java . util . Date date = org . hibersap . util . DateUtil . newDate ( 2008 , Calendar . JULY , 3 ) ; java . util . Date time = org . hibersap . util . DateUtil . newDate ( 1970 , Calendar . JANUARY , 1 , 22 , 56 , 32 ) ; java . util . Date expected = org . hibersap . util . DateUtil . newDate...
org . junit . Assert . assertEquals ( expected , joined )
testGetLastNByPatID ( ) { try { org . isf . examination . test . Tests . jpa . beginTransaction ( ) ; org . isf . patient . model . Patient patient = org . isf . examination . test . Tests . testPatient . setup ( false ) ; org . isf . examination . model . PatientExamination lastPatientExamination = org . isf . examina...
org . junit . Assert . assertEquals ( true , false )
testExportCsvWithNewColumns ( ) { final java . lang . String preparationId = testClient . createPreparationFromFile ( "export/split_cars.csv" , "testSplitExport" , home . getId ( ) ) ; testClient . applyActionFromFile ( preparationId , "export/split.json" ) ; final java . lang . String expectedExport = org . apache . c...
org . junit . Assert . assertFalse ( expectedExport . isEmpty ( ) )
testGetAndValidateStorageUnitNoS3StorageUnit ( ) { org . finra . herd . model . api . xml . BusinessObjectDataKey businessObjectDataKey = new org . finra . herd . model . api . xml . BusinessObjectDataKey ( BDEF_NAMESPACE , BDEF_NAME , FORMAT_USAGE_CODE , FORMAT_FILE_TYPE_CODE , FORMAT_VERSION , PARTITION_VALUE , NO_SU...
org . junit . Assert . assertEquals ( java . lang . String . format ( "Business<sp>object<sp>data<sp>has<sp>no<sp>S3<sp>storage<sp>unit.<sp>Business<sp>object<sp>data:<sp>{%s}" , org . finra . herd . service . impl . BUSINESS_OBJECT_DATA_KEY_AS_STRING ) , e . getMessage ( ) )
consistency ( ) { final long seed = new java . util . Random ( ) . nextLong ( ) ; final int count = 200000 ; org . cojen . tupl . Index lix = mLeader . openIndex ( "test" ) ; java . util . Random rnd = new java . util . Random ( seed ) ; for ( int i = 0 ; i < count ; i ++ ) { byte [ ] key = randomStr ( rnd , 10 , 100 )...
org . junit . Assert . assertEquals ( count , rix . count ( null , null ) )
testSetData ( ) { toolItem . setData ( "foo" , "bar" ) ; "<AssertPlaceHolder>" ; } getData ( java . lang . String ) { if ( ( dataTable ) == null ) return null ; return ( ( java . lang . String ) ( dataTable . get ( key ) ) ) ; }
org . junit . Assert . assertEquals ( "bar" , toolItem . getData ( "foo" ) )
testKeepValueSerialization ( ) { com . orientechnologies . orient . core . metadata . schema . OSchema schema = database . getMetadata ( ) . getSchema ( ) ; com . orientechnologies . orient . core . metadata . schema . OClass classA = schema . createClass ( "ClassC" ) ; com . orientechnologies . orient . core . metadat...
org . junit . Assert . assertEquals ( ( ( java . lang . String ) ( doc . field ( "name" ) ) ) , ( ( java . lang . String ) ( doc1 . field ( "name" ) ) ) )
convertAnODTDocumentToPDF ( ) { final java . io . File convertedDocument = converter . convert ( document , inFormat ( pdf ) ) ; "<AssertPlaceHolder>" ; } exists ( ) { return ( getId ( ) ) != null ; }
org . junit . Assert . assertThat ( convertedDocument . exists ( ) , org . hamcrest . Matchers . is ( true ) )
test ( ) { try { com . hp . mwtests . ts . txoj . common . resources . AtomicObject obj = new com . hp . mwtests . ts . txoj . common . resources . AtomicObject ( ) ; com . arjuna . ats . arjuna . common . Uid objRef = obj . get_uid ( ) ; com . arjuna . ats . arjuna . AtomicAction A = new com . arjuna . ats . arjuna . ...
org . junit . Assert . assertEquals ( 1234 , recObj . get ( ) )
testFilterWithFilteredIterableReturnsItself ( ) { org . apache . commons . functor . core . collection . FilteredIterable < java . lang . Integer > filter = org . apache . commons . functor . core . collection . FilteredIterable . of ( list ) ; "<AssertPlaceHolder>" ; } of ( java . lang . Iterable ) { if ( iterable == ...
org . junit . Assert . assertEquals ( filter , org . apache . commons . functor . core . collection . FilteredIterable . of ( filter ) )
whenAddTwoElementsThenSecondElementWithHigherHashCode ( ) { linkedSet . add ( 2 ) ; linkedSet . add ( 1 ) ; java . util . Iterator itr = linkedSet . iterator ( ) ; itr . next ( ) ; "<AssertPlaceHolder>" ; } next ( ) { if ( ! ( hasNext ( ) ) ) { throw new java . util . NoSuchElementException ( ) ; } E item = currentNode...
org . junit . Assert . assertThat ( itr . next ( ) , org . hamcrest . core . Is . is ( 2 ) )
testSaxEventToXmlElementConverterRedeclaredNamespaceUriVariation ( ) { java . lang . String doubleDeclaredNamespaceUriSnippet = "<x:y<sp>xmlns='default'<sp>xmlns:x='www.x.com'<sp>x:one='2'<sp>x:two='2'>" + ( ( ( "<sp><y:z<sp>xmlns:y='www.x.com'<sp>x:one='1'<sp>y:two='2'>" + "<sp><x:z>abcdefg</x:z>" ) + "<sp></y:z>" ) +...
org . junit . Assert . assertThat ( reconstructedXml , org . hamcrest . Matchers . is ( reconstructedExpectation ) )
evaluatesField ( ) { org . teavm . flavour . expr . test . IntComputation c = parseExpr ( org . teavm . flavour . expr . test . IntComputation . class , "foo.y" ) ; vars . foo ( new org . teavm . flavour . expr . test . Foo ( 23 ) ) ; "<AssertPlaceHolder>" ; } parseExpr ( java . lang . Class , java . lang . String ) { ...
org . junit . Assert . assertThat ( c . compute ( ) , org . hamcrest . Matchers . is ( 23 ) )
replaceStringSet ( ) { com . emc . storageos . db . client . model . StringSetMap map = new com . emc . storageos . db . client . model . StringSetMap ( ) ; java . lang . String newValue = "one<sp>one" ; map . put ( "1" , "one" ) ; map . put ( "2" , "two" ) ; map . put ( "3" , "three" ) ; java . util . Set < java . lan...
org . junit . Assert . assertEquals ( newValue , values [ 0 ] )
moveDownUnordered ( ) { c2 . movePhone ( true , cpMove2 ) ; boolean passed = false ; for ( dk . i2m . converge . core . contacts . ContactPhone phone : c2 . getPhones ( ) ) { if ( ( phone . equals ( cpMove2 ) ) && ( ( phone . getDisplayOrder ( ) ) == 24 ) ) { passed = true ; } } "<AssertPlaceHolder>" ; } getDisplayOrde...
org . junit . Assert . assertEquals ( true , passed )
testCreateDecompressor ( ) { "<AssertPlaceHolder>" ; } createDecompressor ( ) { com . conductor . hadoop . compress . SnappyFramedCodec . LOG . warn ( "This<sp>codec<sp>doesn't<sp>use<sp>a<sp>decompressor,<sp>returning<sp>null." ) ; return null ; }
org . junit . Assert . assertNull ( subject . createDecompressor ( ) )
testPopulateReleases_getValidCountOfEnumElements ( ) { int expectedCountOfReleases = 32 ; org . pentaho . ui . xul . util . AbstractModelList < java . lang . String > listReleases = org . powermock . reflect . Whitebox . invokeMethod ( jobExecutorController , "populateReleases" ) ; "<AssertPlaceHolder>" ; } size ( ) { ...
org . junit . Assert . assertEquals ( expectedCountOfReleases , listReleases . size ( ) )
testGetHookEnabledNotAuthed ( ) { when ( authContext . isAuthenticated ( ) ) . thenReturn ( false ) ; javax . ws . rs . core . Response actual = rest . getHookEnabled ( repository ) ; "<AssertPlaceHolder>" ; } getHookEnabled ( com . atlassian . bitbucket . repository . Repository ) { if ( authContext . isAuthenticated ...
org . junit . Assert . assertEquals ( Response . Status . FORBIDDEN . getStatusCode ( ) , actual . getStatus ( ) )
testCuboidCounts2 ( ) { org . apache . kylin . cube . model . CubeDesc cube = getTestKylinCubeWithSeller ( ) ; org . apache . kylin . cube . cuboid . CuboidCLI . calculateAllLevelCount ( cube ) ; int [ ] counts = org . apache . kylin . cube . cuboid . CuboidCLI . calculateAllLevelCount ( cube ) ; printCount ( counts ) ...
org . junit . Assert . assertArrayEquals ( new int [ ] { 1 , 4 , 7 , 8 , 7 , 4 } , counts )
testGithubUserPage ( ) { Google google = com . burakdede . Hoodie . registerNewTarget ( Google . class , "https://github.com" ) ; java . lang . String githubPage = google . getGithubPageForUser ( "burakdd" ) ; "<AssertPlaceHolder>" ; } registerNewTarget ( java . lang . Class , java . lang . String ) { T target ; com . ...
org . junit . Assert . assertNotNull ( githubPage )
testUpdateWithBadPropertyType ( ) { ca . corefacility . bioinformatics . irida . utils . model . IdentifiableTestEntity entity = new ca . corefacility . bioinformatics . irida . utils . model . IdentifiableTestEntity ( ) ; entity . setId ( new java . lang . Long ( 1 ) ) ; java . util . Map < java . lang . String , java...
org . junit . Assert . assertNotNull ( ex . getAffectedClass ( ) )
testUpdateAgentWithoutRights ( ) { net . maritimecloud . identityregistry . model . database . Agent agent = new net . maritimecloud . identityregistry . model . database . Agent ( ) ; agent . setIdOnBehalfOfOrganization ( 1L ) ; agent . setIdActingOrganization ( 2L ) ; net . maritimecloud . identityregistry . model . ...
org . junit . Assert . assertTrue ( false )
testSignaturePassword ( ) { java . lang . String address = ( "https://localhost:" + ( test . port ) ) + "/xmlsig/bookstore/books" ; org . apache . cxf . jaxrs . client . JAXRSClientFactoryBean bean = new org . apache . cxf . jaxrs . client . JAXRSClientFactoryBean ( ) ; bean . setAddress ( address ) ; org . apache . cx...
org . junit . Assert . assertEquals ( 126L , book . getId ( ) )
testAddListener01 ( ) { org . dresdenocl . model . IModel model ; model = org . dresdenocl . modelbus . test . ModelBusTestUtility . getUML2Model ( "resources/models/model01.uml" ) ; org . dresdenocl . model . IModelListener listener ; listener = new org . dresdenocl . modelbus . test . model . ModelListenerMock ( ) ; ...
org . junit . Assert . assertTrue ( model . addListener ( listener ) )
testLength ( ) { edu . ucla . sspace . vector . SparseDoubleVector v = new edu . ucla . sspace . vector . CompactSparseVector ( new double [ ] { 4 , 4 , 4 , 4 } ) ; v = new edu . ucla . sspace . vector . ScaledSparseDoubleVector ( v , 5 ) ; "<AssertPlaceHolder>" ; } length ( ) { return length ; }
org . junit . Assert . assertEquals ( 4 , v . length ( ) )
propertyToWidgetImmediatelySetsTheWidgetsValue ( ) { s . set ( "test" ) ; binder . bind ( s ) . to ( box ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value . get ( ) ; }
org . junit . Assert . assertThat ( box . getValue ( ) , org . hamcrest . CoreMatchers . is ( "test" ) )
register ( ) { final com . github . rinde . rinsim . core . model . road . TestRoadUser driver = new com . github . rinde . rinsim . core . model . road . TestRoadUser ( ) ; model . register ( driver ) ; "<AssertPlaceHolder>" ; } getRoadModel ( ) { return model ; }
org . junit . Assert . assertEquals ( model , driver . getRoadModel ( ) )
figure14 ( ) { java . util . List < org . openscience . cdk . interfaces . IAtomContainer > mols = sdf ( "ihlenfeldt93-figure-14.sdf" , 2 ) ; org . openscience . cdk . interfaces . IAtomContainer a = mols . get ( 0 ) ; org . openscience . cdk . interfaces . IAtomContainer b = mols . get ( 1 ) ; org . openscience . cdk ...
org . junit . Assert . assertThat ( org . openscience . cdk . hash . HashCodeScenariosTest . eqMesg ( a , b ) , aHash , org . hamcrest . CoreMatchers . is ( bHash ) )
testConfigureEnableLowercase ( ) { System . out . println ( ( ( getTestTraceHead ( "[NGSICKANSink.configure]" ) ) + "--------<sp>enable_lowercase<sp>can<sp>only<sp>be<sp>'true'<sp>or<sp>'false'" ) ) ; java . lang . String apiKey = null ; java . lang . String attrPersistence = null ; java . lang . String backendMaxConns...
org . junit . Assert . assertTrue ( sink . getInvalidConfiguration ( ) )