input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testFilterNietTeLeverenPersonenVoorAfnemerindicatieBinnenPopulatie ( ) { final nl . bzk . brp . domain . algemeen . Autorisatiebundel leveringAutorisatie = maakAutorisatiebudel ( SoortDienst . MUTATIELEVERING_OP_BASIS_VAN_AFNEMERINDICATIE ) ; final nl . bzk . brp . domain . algemeen . Populatie populatie = nl . bzk . b...
org . junit . Assert . assertTrue ( resultaat )
mergeWithUnknown ( ) { puck . thrifty . datatype . DoubleElement elem = new puck . thrifty . datatype . DoubleElement ( "test" ) ; puck . thrifty . datatype . Element mergeElem = elem . merge ( new puck . thrifty . datatype . UnknownElement ( "test" ) ) ; "<AssertPlaceHolder>" ; } merge ( puck . thrifty . datatype . El...
org . junit . Assert . assertSame ( elem , mergeElem )
findAllTest ( ) { java . util . List < cn . hutool . db . Entity > results = cn . hutool . db . CRUDTest . db . findAll ( "user" ) ; "<AssertPlaceHolder>" ; } size ( ) { return this . size ; }
org . junit . Assert . assertEquals ( 4 , results . size ( ) )
testVerifyToken ( ) { org . jinstagram . realtime . InstagramSubscription fixture = new org . jinstagram . realtime . InstagramSubscription ( ) ; java . lang . String verifyToken = "" ; org . jinstagram . realtime . InstagramSubscription result = fixture . verifyToken ( verifyToken ) ; "<AssertPlaceHolder>" ; } verifyT...
org . junit . Assert . assertNotNull ( result )
test_getPageCount_ThreeItems_FourPerPage ( ) { int pageSize = 4 ; long itemCount = 3 ; long expectedPageCount = 1 ; org . multibit . exchange . infrastructure . web . PaginationData paginationData = getPaginationDataWithPageSizeAndItemCount ( pageSize , itemCount ) ; long actualPageCount = paginationData . getPageCount...
org . junit . Assert . assertEquals ( expectedPageCount , actualPageCount )
canProcessToTokens ( ) { mary . setOutputType ( MaryDataType . TOKENS . name ( ) ) ; org . w3c . dom . Document tokens = mary . generateXML ( "Hello<sp>world" ) ; "<AssertPlaceHolder>" ; } generateXML ( java . lang . String ) { verifyInputTypeIsText ( ) ; verifyOutputTypeIsXML ( ) ; marytts . datatypes . MaryData in = ...
org . junit . Assert . assertNotNull ( tokens )
embeddedTx ( ) { com . orientechnologies . orient . core . record . impl . ODocument doc = new com . orientechnologies . orient . core . record . impl . ODocument ( "City" ) ; db . begin ( ) ; doc . field ( "name" , "Berlin" ) ; db . save ( doc ) ; db . commit ( ) ; java . util . List < com . orientechnologies . orient...
org . junit . Assert . assertEquals ( results . size ( ) , 1 )
testSomeMethod ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 1 , 1 )
testOneParam ( ) { org . nutz . lang . MirrorTest . A < java . lang . String > a = new org . nutz . lang . MirrorTest . A < java . lang . String > ( ) { } ; "<AssertPlaceHolder>" ; } getTypeParams ( java . lang . Class ) { if ( ( klass == null ) || ( "java.lang.Object" . equals ( klass . getName ( ) ) ) ) return null ;...
org . junit . Assert . assertEquals ( java . lang . String . class , org . nutz . lang . Mirror . getTypeParams ( a . getClass ( ) ) [ 0 ] )
testGenericJwt ( ) { final java . lang . String token = "eyJjdHkiOiJKV1QiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiZGlyIn0..NTvhJXwZ_sN4zYBK.exyLJWkOclCVcffz58CE-" + ( ( "3XWWV24aYyGWR5HVrfm4HLQi1xgmwglLlEIiFlOSTOSZ_LeAwl2Z3VFh-5EidocjwGkAPGQA_4_KCLbK8Im7M25ZZvDzCJ1kKN1JrDIIrBWCcuI4Mbw0O" + "_YGb8TfIECPkpeG7wEgBG30sb1kH-F_vg9yjY...
org . junit . Assert . assertNotNull ( credentials . getUserProfile ( ) )
basicColumnTest ( ) { java . lang . String transformationCode = "return<sp>getValue(\"value\")" ; edu . isi . karma . transformation . tokenizer . PythonTransformationAsURIValidator validator = new edu . isi . karma . transformation . tokenizer . PythonTransformationAsURIValidator ( ) ; "<AssertPlaceHolder>" ; } valida...
org . junit . Assert . assertTrue ( validator . validate ( transformationCode ) )
testCreateProducerAndSend ( ) { try ( org . apache . qpid . jms . test . testpeer . TestAmqpPeer testPeer = new org . apache . qpid . jms . test . testpeer . TestAmqpPeer ( ) ) { javax . jms . JMSContext context = testFixture . createJMSContext ( testPeer , SERVER_ANONYMOUS_RELAY ) ; testPeer . expectBegin ( ) ; org . ...
org . junit . Assert . assertNotNull ( producer )
testFailures ( ) { java . util . List < java . lang . Throwable > problems = validateAllMethods ( org . junit . tests . running . methods . TestMethodTest . EverythingWrong . class ) ; int errorCount = 1 + ( 4 * 5 ) ; "<AssertPlaceHolder>" ; } size ( ) { return list . size ( ) ; }
org . junit . Assert . assertEquals ( errorCount , problems . size ( ) )
byExt ( ) { java . util . Optional < org . jooby . MediaType > type = org . jooby . MediaType . byExtension ( "json" ) ; "<AssertPlaceHolder>" ; } get ( ) { request ( ) . get ( "/members" ) . expect ( ( "[<sp>{\n" + ( ( "<sp>\"id\"<sp>:<sp>1,\n" + "<sp>\"name\"<sp>:<sp>\"pablo\"\n" ) + "}<sp>]" ) ) ) ; }
org . junit . Assert . assertEquals ( MediaType . json , type . get ( ) )
testDeleteAnswerToAQuestion ( ) { java . sql . Connection con = getConnection ( ) ; java . lang . String answerId = "1018" ; org . silverpeas . core . ResourceReference resourceReference = new org . silverpeas . core . ResourceReference ( "178" , "quizz83" ) ; try ( java . sql . Connection otherCon = getConnection ( ) ...
org . junit . Assert . assertEquals ( 2 , answers . size ( ) )
testGetXMPWithNonXMPImage ( ) { java . nio . file . Path file = edu . illinois . library . cantaloupe . test . TestUtil . getImage ( "jpg" ) ; try ( javax . imageio . stream . ImageInputStream is = javax . imageio . ImageIO . createImageInputStream ( file . toFile ( ) ) ) { instance . setSource ( is ) ; "<AssertPlaceHo...
org . junit . Assert . assertNull ( instance . getXMP ( ) )
testEmpty ( ) { no . priv . garshol . duke . RecordIterator it = source . getRecordsFromString ( "" ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { return hasNext ; }
org . junit . Assert . assertTrue ( ( ! ( it . hasNext ( ) ) ) )
testSomeEmptyOffsetsPhrase ( ) { java . lang . String query = buildFunction ( phraseFunction , "BODY" , Constants . TERM_OFFSET_MAP_JEXL_VARIABLE_NAME , "'foo'" , "'bar'" , "'car'" ) ; org . apache . commons . jexl2 . Expression expr = datawave . query . jexl . functions . ContentFunctionsTest . engine . createExpressi...
org . junit . Assert . assertTrue ( datawave . query . jexl . functions . ContentFunctionsTest . expect ( o , false ) )
SimplifiedQuery15Test ( ) { org . verdictdb . sqlreader . RelationStandardizer . resetItemID ( ) ; java . lang . String sql = "select<sp>" + ( ( ( ( ( ( ( ( "l_suppkey,<sp>" + "l_suppkey,<sp>" 4 ) + "from<sp>" ) + "lineitem_scrambled<sp>" ) + "l_suppkey,<sp>" 0 ) + "l_shipdate<sp>>=<sp>date<sp>'1998-01-01'<sp>" ) + "l_...
org . junit . Assert . assertEquals ( 3 , queryExecutionPlan . root . getExecutableNodeBaseDependents ( ) . size ( ) )
testBatchEmit ( ) { backtype . storm . task . TopologyContext context = mock ( backtype . storm . task . TopologyContext . class ) ; backtype . storm . spout . ISpoutOutputCollector col = mock ( backtype . storm . spout . ISpoutOutputCollector . class ) ; de . hub . cs . dbis . aeolus . batching . BatchSpoutOutputColle...
org . junit . Assert . assertTrue ( collector . batchEmitted )
isSameElementReturnsTrue ( ) { final org . bonitasoft . studio . model . expression . Expression expr = ExpressionFactory . eINSTANCE . createExpression ( ) ; final org . bonitasoft . studio . model . process . Data refData = ProcessFactory . eINSTANCE . createData ( ) ; refData . setName ( "myData" ) ; expr . getRefer...
org . junit . Assert . assertTrue ( org . bonitasoft . studio . common . emf . tools . ModelHelper . isSameElement ( data , refData ) )
testGetEbsBlockDeviceConfigsWhenInputListIsEmpty ( ) { java . util . List < com . amazonaws . services . elasticmapreduce . model . EbsBlockDeviceConfig > result = emrDaoImpl . getEbsBlockDeviceConfigs ( new java . util . ArrayList ( ) ) ; verifyNoMoreInteractionsHelper ( ) ; "<AssertPlaceHolder>" ; } verifyNoMoreInter...
org . junit . Assert . assertNull ( result )
_1 ( ) { int actual = new fr . inria . lille . examples . tcas . Tcas ( ) . is_upward_preferred ( 1 , 0 , 100 ) ; "<AssertPlaceHolder>" ; } is_upward_preferred ( int , int , int ) { int bias ; if ( 0 != inhibit ) { bias = down_sep ; } else { bias = up_sep ; } if ( bias > down_sep ) { return 1 ; } else { return 0 ; } }
org . junit . Assert . assertEquals ( 0 , actual )
testReplaceCurrentTimestamp ( ) { java . lang . String beforeSql = "insert<sp>into<sp>sym_node<sp>values<sp>('00000',<sp>'test-root-group',<sp>'00000',<sp>1,<sp>null,<sp>null,<sp>'2.0',<sp>null,<sp>null,<sp>current_timestamp,<sp>null,<sp>0,<sp>0,<sp>'00000',<sp>'engine')" ; java . lang . String afterSql = "insert<sp>in...
org . junit . Assert . assertEquals ( afterSql , org . jumpmind . util . FormatUtils . replaceTokens ( beforeSql , replacementTokens , false ) )
testGetSharedConnectionNotShared ( ) { factory . setShareNativeConnection ( false ) ; factory . setHostName ( "fakeHost" ) ; factory . afterPropertiesSet ( ) ; "<AssertPlaceHolder>" ; } getSharedConnection ( ) { return shareNativeConnection ? ( ( io . lettuce . core . api . StatefulRedisConnection ) ( getOrCreateShared...
org . junit . Assert . assertNull ( factory . getSharedConnection ( ) )
testGetServiceIds ( ) { org . hyperic . hq . product . ServiceTypeInfo sinfo = new org . hyperic . hq . product . ServiceTypeInfo ( ) ; sinfo . setDescription ( "Test<sp>ServiceType<sp>Desc" ) ; sinfo . setInternal ( false ) ; sinfo . setName ( "Test<sp>ServiceType<sp>Name" ) ; org . hyperic . hq . appdef . server . se...
org . junit . Assert . assertEquals ( java . util . Arrays . equals ( serviceIds . toArray ( new java . lang . Integer [ 9 ] ) , ids ) , true )
noArgReturnsSortedArrayStringMapIfNoPropertySpecified ( ) { "<AssertPlaceHolder>" ; } createContextData ( ) { if ( ( org . apache . logging . log4j . core . impl . ContextDataFactory . DEFAULT_CONSTRUCTOR ) == null ) { return new org . apache . logging . log4j . util . SortedArrayStringMap ( ) ; } try { return ( ( org ...
org . junit . Assert . assertTrue ( ( ( org . apache . logging . log4j . core . impl . ContextDataFactory . createContextData ( ) ) instanceof org . apache . logging . log4j . util . SortedArrayStringMap ) )
convert1 ( ) { final org . exist . xquery . value . DayTimeDurationValue dtdv = new org . exist . xquery . value . DayTimeDurationValue ( "P3DT1H2M3S" ) ; final org . exist . xquery . value . DurationValue dv = ( ( org . exist . xquery . value . DurationValue ) ( dtdv . convertTo ( Type . DURATION ) ) ) ; "<AssertPlace...
org . junit . Assert . assertEquals ( "P3DT1H2M3S" , dv . getStringValue ( ) )
timeoutsAreEqualToThemselves ( ) { stormpot . Timeout a = new stormpot . Timeout ( 1 , java . util . concurrent . TimeUnit . SECONDS ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( a , org . hamcrest . Matchers . equalTo ( a ) )
test_save_sheet_regexp_single ( ) { final com . gh . mygreen . xlsmapper . fieldprocessor . AnnoSheetTest . RegexpSheet outSheet = new com . gh . mygreen . xlsmapper . fieldprocessor . AnnoSheetTest . RegexpSheet ( ) ; outSheet . sheetName = "1" ; com . gh . mygreen . xlsmapper . XlsMapper mapper = new com . gh . mygre...
org . junit . Assert . assertThat ( outSheet . sheetName , is ( "1" ) )
testGetFloatPosition ( ) { final net . imglib2 . TestAbstractRealLocalizable . AbstractRealLocalizableImpl x = new net . imglib2 . TestAbstractRealLocalizable . AbstractRealLocalizableImpl ( 2 ) ; final float [ ] p = new float [ ] { 1.1F , 2.2F } ; x . localize ( p ) ; for ( int i = 0 ; i < 2 ; i ++ ) { "<AssertPlaceHo...
org . junit . Assert . assertEquals ( x . getFloatPosition ( i ) , p [ i ] , 0 )
c ( ) { org . junit . contrib . assumes . AssumesTest . FailedAssumptionsAreSkipped . log += "c" ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( true , org . hamcrest . CoreMatchers . is ( false ) )
testSubTypesOfDomain ( ) { com . sun . enterprise . config . serverbeans . JavaConfig config = super . getHabitat ( ) . getService ( com . sun . enterprise . config . serverbeans . JavaConfig . class ) ; try { java . lang . Class < ? > [ ] subTypes = org . jvnet . hk2 . config . ConfigSupport . getSubElementsTypes ( ( ...
org . junit . Assert . assertTrue ( found )
test_unlimitedConnections_specified ( ) { final net . ripe . db . whois . common . domain . IpResourceEntry < java . lang . Boolean > entry = new net . ripe . db . whois . common . domain . IpResourceEntry ( net . ripe . db . whois . common . ip . IpInterval . asIpInterval ( inetAddress ) , true ) ; when ( loader . loa...
org . junit . Assert . assertThat ( subject . isUnlimitedConnections ( inetAddress ) , org . hamcrest . Matchers . is ( true ) )
testRenewalNotSupported ( ) { org . jscep . transport . response . Capabilities caps = new org . jscep . transport . response . Capabilities ( ) ; "<AssertPlaceHolder>" ; } isRenewalSupported ( ) { return caps . contains ( Capability . RENEWAL ) ; }
org . junit . Assert . assertFalse ( caps . isRenewalSupported ( ) )
testStartupInExistingDirectory ( ) { java . io . File dir = new java . io . File ( ( ( ( "target" + ( java . io . File . separator ) ) + "temp" ) + ( java . io . File . separator ) ) ) ; org . neo4j . index . Neo4jTestCase . deleteFileOrDirectory ( dir ) ; dir . mkdir ( ) ; org . neo4j . kernel . EmbeddedGraphDatabase ...
org . junit . Assert . assertNotNull ( index )
testJsonList2 ( ) { java . util . List < org . onetwo . common . jackson . UserEntity > users = new java . util . ArrayList < org . onetwo . common . jackson . UserEntity > ( ) ; int size = 5 ; for ( int i = 0 ; i < size ; i ++ ) { users . add ( createUser ( ) ) ; } java . lang . String json = org . onetwo . common . j...
org . junit . Assert . assertEquals ( size , u2 . size ( ) )
toXml ( ) { cruise . umple . compiler . VioletClass class1 = c . newClass ( "Mentor" ) ; cruise . umple . compiler . VioletClass class2 = c . newClass ( "Mentor" ) ; cruise . umple . compiler . VioletAssociation association = c . newAssociation ( "0..*" , "0..1" , class1 , class2 ) ; cruise . umple . compiler . VioletD...
org . junit . Assert . assertEquals ( expected , actual )
getAutoCommitShouldReturnFalse ( ) { openConnection . setAutoCommit ( false ) ; "<AssertPlaceHolder>" ; } getAutoCommit ( ) { this . checkClosed ( ) ; return autoCommit ; }
org . junit . Assert . assertFalse ( openConnection . getAutoCommit ( ) )
shouldAllowTraversalToIterateInDifferentThreadThanOriginallyEvaluatedWithAutoCommit ( ) { final org . apache . tinkerpop . gremlin . tinkergraph . structure . TinkerGraph graph = org . apache . tinkerpop . gremlin . tinkergraph . structure . TinkerFactory . createModern ( ) ; final org . apache . tinkerpop . gremlin . ...
org . junit . Assert . assertEquals ( 6 , vertexCount . get ( ) )
testDescriptionListOfString ( ) { world . bentobox . bentobox . api . panels . builders . PanelItemBuilder builder = new world . bentobox . bentobox . api . panels . builders . PanelItemBuilder ( ) ; java . util . List < java . lang . String > test = java . util . Arrays . asList ( "test<sp>line<sp>1" , "test<sp>line<s...
org . junit . Assert . assertEquals ( test , item . getDescription ( ) )
testGetAssetCategoryIdsNotContainsAnyCategory ( ) { long assetCategoryId = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . asset . publisher . util . test . AssetPublisherUtilTest . AssetQueryRule assetQueryRule = new com . liferay . asset . publisher . util . test . Asse...
org . junit . Assert . assertEquals ( java . util . Arrays . toString ( assetCategoryIds ) , 0 , assetCategoryIds . length )
testMatchesWithMatchingFilters ( ) { createConfiguratorFilter ( ) ; createConfiguratorProperties ( ) ; createHttpServiceFilter ( ) ; createHttpServiceProperties ( ) ; boolean matches = matcher . matches ( ) ; "<AssertPlaceHolder>" ; } matches ( ) { return ( matchesHttpService ( ) ) && ( matchesConfigurator ( ) ) ; }
org . junit . Assert . assertTrue ( matches )
testAddAndFind ( ) { dao . add ( "uuid" , "componentId" , "contextId" ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String , int ) { java . lang . String result = get ( index ) ; if ( result == null ) { result = get ( idx ) ; } return result ; }
org . junit . Assert . assertEquals ( "uuid" , dao . get ( "componentId" , "contextId" ) )
testGetProjectsNonAdminCallerSame ( ) { caller = userToGetFor ; org . sagebionetworks . reflection . model . PaginatedResults < org . sagebionetworks . repo . model . ProjectHeader > results = userProfileManager . getProjects ( caller , userToGetFor , teamToFetch , type , sortColumn , sortDirection , limit , offset ) ;...
org . junit . Assert . assertNotNull ( results )
readPacketError2 ( ) { reader . setAdapter ( adapter ) ; org . mockito . Mockito . when ( adapter . readData ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( "not<sp>null" ) ; reader . readPacket ( file . getAbsolutePath ( ) , listener ) ; "<AssertPlaceHolder>" ; } readPacket ( java . lang . String , com . ...
org . junit . Assert . assertTrue ( false )
testCreateConnectorSkin_badSkinClass ( ) { de . tesis . dynaware . grapheditor . core . skins . SkinFactoryTest . CONNECTOR . setType ( de . tesis . dynaware . grapheditor . core . skins . SkinFactoryTest . CONNECTOR_TYPE ) ; skinFactory . setConnectorSkin ( de . tesis . dynaware . grapheditor . core . skins . SkinFact...
org . junit . Assert . assertTrue ( ( ( skinFactory . createConnectorSkin ( de . tesis . dynaware . grapheditor . core . skins . SkinFactoryTest . CONNECTOR ) ) instanceof de . tesis . dynaware . grapheditor . core . skins . defaults . DefaultConnectorSkin ) )
ignoreSyntheticFields ( ) { nl . jqno . equalsverifier . internal . reflection . FieldIterable iterable = nl . jqno . equalsverifier . internal . reflection . FieldIterable . of ( Outer . Inner . class ) ; "<AssertPlaceHolder>" ; } iterator ( ) { return createFieldList ( ) . iterator ( ) ; }
org . junit . Assert . assertFalse ( iterable . iterator ( ) . hasNext ( ) )
testWordCount ( ) { org . qcri . rheem . core . api . RheemContext rheemContext = new org . qcri . rheem . core . api . RheemContext ( ) . with ( org . qcri . rheem . java . Java . basicPlugin ( ) ) ; final org . qcri . rheem . api . List < java . lang . String > inputValues = org . qcri . rheem . api . Arrays . asList...
org . junit . Assert . assertEquals ( org . qcri . rheem . core . util . RheemCollections . asSet ( expectedOutputValues ) , org . qcri . rheem . core . util . RheemCollections . asSet ( outputValues ) )
validate_shouldPassValidationIfFieldLengthsAreCorrect ( ) { org . openmrs . PersonAddress personAddress = new org . openmrs . PersonAddress ( ) ; personAddress . setStartDate ( null ) ; personAddress . setEndDate ( null ) ; personAddress . setAddress1 ( "countyDistrict" 3 ) ; personAddress . setAddress2 ( "address2" ) ...
org . junit . Assert . assertEquals ( false , errors . hasErrors ( ) )
restoreRecordsWarningWhenFileIsNotNormal ( ) { java . nio . file . Path symlink = ddfHome . resolve ( createSoftLink ( "symlink" , path ) ) ; when ( mockPathUtils . resolveAgainstDDFHome ( any ( java . nio . file . Path . class ) ) ) . thenReturn ( symlink ) ; entry = new org . codice . ddf . configuration . migration ...
org . junit . Assert . assertThat ( entry . restore ( true ) , org . hamcrest . CoreMatchers . equalTo ( true ) )
testImageServerSingleMultipart ( ) { java . io . File f = testDir . newFolder ( ) ; java . io . File imgFile = new org . nd4j . linalg . io . ClassPathResource ( "datavec-spark-inference/testimages/class0/0.jpg" ) . getTempFileFromArchive ( f ) ; com . mashape . unirest . http . JsonNode jsonNode = com . mashape . unir...
org . junit . Assert . assertEquals ( 1 , result . size ( 0 ) )
testUnmeteredAnnotationOnFieldInterface ( ) { org . github . jamm . MemoryMeter meter = new org . github . jamm . MemoryMeter ( ) ; long withoutSize = meter . measureDeep ( new org . github . jamm . MemoryMeterTest . WithFieldAnnotatedInterface ( null ) ) ; org . github . jamm . MemoryMeterTest . AnnotatedInterface fie...
org . junit . Assert . assertEquals ( withoutSize , withSize )
runTest ( ) { boolean result = checkNoError ( "Social_ActivityStreams_Saved_View" ) ; "<AssertPlaceHolder>" ; } getNoErrorMsg ( ) { return noErrorMsg ; }
org . junit . Assert . assertTrue ( getNoErrorMsg ( ) , result )
testBuildWithDisabledDefaultConstraintsWithOrderBy ( ) { unit . setSecurity ( false ) ; unit . setActive ( false ) ; org . lnu . is . domain . degree . Degree context = new org . lnu . is . domain . degree . Degree ( ) ; org . lnu . is . pagination . OrderBy orderBy1 = new org . lnu . is . pagination . OrderBy ( "perso...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
objectArrayTest ( ) { java . lang . Object [ ] array = new java . lang . Object [ 4 ] ; array [ 0 ] = new com . jframework . licp . test . basetest . data . Person ( ) ; array [ 1 ] = new com . jframework . licp . test . basetest . data . BaseData ( ) ; array [ 2 ] = new com . jframework . licp . test . basetest . data...
org . junit . Assert . assertTrue ( ( ( com . jframework . licp . test . basetest . data . Person ) ( result [ 0 ] ) ) . equals ( ( ( com . jframework . licp . test . basetest . data . Person ) ( array [ 0 ] ) ) ) )
testIf ( ) { org . eclipse . collections . impl . block . function . IfFunction < java . lang . Integer , java . lang . Boolean > function = new org . eclipse . collections . impl . block . function . IfFunction ( org . eclipse . collections . impl . block . factory . Predicates . greaterThan ( 5 ) , ( java . lang . In...
org . junit . Assert . assertTrue ( function . valueOf ( 10 ) )
checkValidStartupSetting ( ) { java . lang . System . clearProperty ( MonitoringViewProperties . PARFAIT_STARTUP ) ; java . lang . String startup = io . pcp . parfait . MonitoringViewProperties . getDefaultStartup ( ) ; java . lang . System . setProperty ( MonitoringViewProperties . PARFAIT_STARTUP , "bad-do-not-modify...
org . junit . Assert . assertEquals ( startup , io . pcp . parfait . MonitoringViewProperties . getDefaultStartup ( ) )
testGetField ( ) { com . redhat . lightblue . query . ForEachExpression instance = new com . redhat . lightblue . query . ForEachExpression ( com . redhat . lightblue . util . Path . EMPTY , null , null ) ; com . redhat . lightblue . util . Path expResult = com . redhat . lightblue . util . Path . EMPTY ; com . redhat ...
org . junit . Assert . assertEquals ( expResult , result )
updateAndPublishService ( ) { org . oscm . internal . service . POServiceForPublish s = givenPOServiceForPublish ( ) ; org . oscm . internal . components . response . Response response = bean . updateAndPublishService ( s , new java . util . ArrayList < org . oscm . internal . resalepermissions . POResalePermissionDeta...
org . junit . Assert . assertEquals ( 0 , response . getResults ( ) . size ( ) )
testTool ( ) { org . apache . hadoop . hdfs . HdfsConfiguration conf = new org . apache . hadoop . hdfs . HdfsConfiguration ( false ) ; for ( org . apache . hadoop . hdfs . tools . GetConf . Command cmd : org . apache . hadoop . hdfs . tools . GetConf . Command . values ( ) ) { org . apache . hadoop . hdfs . tools . Ge...
org . junit . Assert . assertTrue ( runTool ( conf , args , true ) . contains ( "value" ) )
testParseSimpleNoDecimals ( ) { java . lang . String source = "{{1,<sp>1,<sp>1},<sp>{1,<sp>1,<sp>1}}" ; org . apache . commons . math4 . linear . RealMatrix expected = org . apache . commons . math4 . linear . MatrixUtils . createRealMatrix ( new double [ ] [ ] { new double [ ] { 1 , 1 , 1 } , new double [ ] { 1 , 1 , ...
org . junit . Assert . assertEquals ( expected , actual )
testDifferentOrders ( ) { edu . ucla . sspace . graph . isomorphism . Graph < edu . ucla . sspace . graph . isomorphism . Edge > g1 = new edu . ucla . sspace . graph . isomorphism . SparseUndirectedGraph ( ) ; g1 . add ( 0 ) ; edu . ucla . sspace . graph . isomorphism . Graph < edu . ucla . sspace . graph . isomorphism...
org . junit . Assert . assertFalse ( isoTest . areIsomorphic ( g1 , g2 ) )
testTwinsReleaseOne ( ) { com . eclipsesource . v8 . utils . MemoryManager memoryManager = new com . eclipsesource . v8 . utils . MemoryManager ( v8 ) ; com . eclipsesource . v8 . V8Object object = new com . eclipsesource . v8 . V8Object ( v8 ) ; object . twin ( ) ; object . close ( ) ; "<AssertPlaceHolder>" ; memoryMa...
org . junit . Assert . assertEquals ( 1 , memoryManager . getObjectReferenceCount ( ) )
testConstraintWithFunctionAndStringConcatenation ( ) { java . lang . String str = ( ( ( ( ( ( ( ( ( ( ( ( ( "import<sp>" + ( org . drools . modelcompiler . domain . ChildFactWithObject . class . getCanonicalName ( ) ) ) + ";\n" ) + "import<sp>" ) + ( org . drools . modelcompiler . ComplexRulesTest . BusinessFunctions ....
org . junit . Assert . assertEquals ( 1 , ksession . fireAllRules ( ) )
testReplace ( com . joliciel . talismane . lexicon . Diacriticizer ) { new mockit . NonStrictExpectations ( ) { { diacriticizer . diacriticize ( "config.file" 0 ) ; returns ( new java . util . HashSet ( java . util . Arrays . asList ( "src/test/resources/test.conf" 1 ) ) ) ; diacriticizer . diacriticize ( "Il" ) ; retu...
org . junit . Assert . assertEquals ( "src/test/resources/test.conf" 4 , sb . toString ( ) )
testChangeMarketplaceBranding ( ) { org . oscm . vo . VOMarketplace marketplace = org . oscm . ws . MarketplaceServiceWSTest . factory . createMarketplaceVO ( org . oscm . ws . MarketplaceServiceWSTest . PLATFORM_OPERATOR , false , "localMp" ) ; marketplace = createAndValidateMarketplace ( marketplace ) ; org . oscm . ...
org . junit . Assert . assertNotNull ( marketplace2 )
get ( ) { final org . graylog . plugins . metrics . csv . providers . CsvReporterProvider provider = new org . graylog . plugins . metrics . csv . providers . CsvReporterProvider ( new org . graylog . plugins . metrics . csv . MetricsCsvReporterConfiguration ( ) , new com . codahale . metrics . MetricRegistry ( ) ) ; f...
org . junit . Assert . assertNotNull ( reporter )
testStructValue ( ) { java . util . Map < java . lang . String , java . lang . Object > map = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; map . put ( "name" , "kraken" ) ; map . put ( "version" , "0.1" ) ; java . lang . String actual = callBuilder ( map ) ; java . lang . String expec...
org . junit . Assert . assertEquals ( expected , actual )
shouldBeSymmetric ( ) { org . eclipse . egit . ui . internal . synchronize . model . GitModelBlob left = createGitModelBlob ( zeroId ( ) , getFile1Location ( ) ) ; org . eclipse . egit . ui . internal . synchronize . model . GitModelBlob right = createGitModelBlob ( zeroId ( ) , getFile1Location ( ) ) ; boolean actual1...
org . junit . Assert . assertEquals ( actual1 , actual2 )
notImmutableTakesPrecedenceOverCouldNotAnalyse_weKnowItsAlreadyNotImmutableJustReportItThatWay ( ) { org . mutabilitydetector . checkers . ResultCalculator calculator = new org . mutabilitydetector . checkers . ResultCalculator ( ) ; java . util . Map < org . mutabilitydetector . IsImmutable , java . lang . Integer > r...
org . junit . Assert . assertEquals ( IsImmutable . NOT_IMMUTABLE , calculator . calculateImmutableStatus ( results ) )
getOptionsFromCOSArray ( ) { org . sejda . sambox . pdmodel . interactive . form . PDChoice choiceField = new org . sejda . sambox . pdmodel . interactive . form . PDComboBox ( acroForm ) ; org . sejda . sambox . cos . COSArray choiceFieldOptions = new org . sejda . sambox . cos . COSArray ( ) ; org . sejda . sambox . ...
org . junit . Assert . assertEquals ( options , choiceField . getOptions ( ) )
when_3instreams_then_pushAllIntoOutstream ( ) { com . hazelcast . jet . impl . execution . MockInboundStream instream1 = new com . hazelcast . jet . impl . execution . MockInboundStream ( 0 , mockInput . subList ( 0 , 4 ) , 4 ) ; com . hazelcast . jet . impl . execution . MockInboundStream instream2 = new com . hazelca...
org . junit . Assert . assertEquals ( new java . util . HashSet ( mockInput ) , new java . util . HashSet ( outstream1 . getBuffer ( ) ) )
testRegister ( ) { "<AssertPlaceHolder>" ; } registerApplication ( org . onosproject . core . ApplicationId ) { states . put ( appId , testSecInfo ) ; return true ; }
org . junit . Assert . assertTrue ( store . registerApplication ( appId ) )
longValueFunctionToComparator ( ) { org . eclipse . collections . api . list . MutableList < java . lang . Long > list = org . eclipse . collections . impl . list . mutable . FastList . newListWith ( 5L , 4L , 3L , 2L , 1L ) . shuffleThis ( ) ; list . sortThis ( org . eclipse . collections . impl . block . factory . Co...
org . junit . Assert . assertEquals ( org . eclipse . collections . impl . list . mutable . FastList . newListWith ( 1L , 2L , 3L , 4L , 5L ) , list )
lazy_setbased_backreference_should_be_loaded_when_touched ( ) { setupLoungeWithLoadableBackrefs ( ) ; org . ektorp . impl . docref . LazyLounge ektorp = dbCon . get ( org . ektorp . impl . docref . LazyLounge . class , "lounge_id" ) ; verify ( httpClient , times ( 1 ) ) . get ( anyString ( ) ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertEquals ( 2 , ektorp . getSeatedPeople ( ) . size ( ) )
testCanGetSubscriptionChanges ( ) { dbTester . loadData ( "node_1" ) ; store . addUserSubscription ( new org . buddycloud . channelserver . pubsub . model . impl . NodeSubscriptionImpl ( TEST_SERVER1_NODE1_ID , TEST_SERVER1_USER2_JID , org . buddycloud . channelserver . pubsub . subscription . Subscriptions . subscribe...
org . junit . Assert . assertEquals ( 6 , changes . size ( ) )
nullReturnedForMissingConfigurationUnit ( ) { final org . lightadmin . core . config . domain . unit . ConfigurationUnits testee = configurationUnits ( org . lightadmin . core . config . domain . unit . ConfigurationUnitsTest . DomainTypeConfiguration . class , configurationUnitFor ( org . lightadmin . core . config . ...
org . junit . Assert . assertNull ( testee . getScreenContext ( ) )
testMiniClusterBindToWildcard ( ) { org . apache . hadoop . hbase . HBaseTestingUtility hbt = new org . apache . hadoop . hbase . HBaseTestingUtility ( ) ; hbt . getConfiguration ( ) . set ( "hbase.regionserver.ipc.address" , "0.0.0.0" ) ; org . apache . hadoop . hbase . MiniHBaseCluster cluster = hbt . startMiniCluste...
org . junit . Assert . assertEquals ( 1 , cluster . getLiveRegionServerThreads ( ) . size ( ) )
testJoinSplit ( ) { java . util . List < java . lang . String > strs = java . util . Arrays . asList ( "a" , "" , "aba" , "abacaba" , "_" , "q" , "\\1\\2\n" ) ; java . lang . String encoded = com . google . jstestdriver . idea . rt . util . EscapeUtils . join ( strs , 'a' ) ; java . util . List < java . lang . String >...
org . junit . Assert . assertEquals ( strs , decoded )
testNegativeIntArray ( ) { int [ ] l = new int [ ] { - 12 } ; java . lang . Object deserialize = org . mapdb . elsa . ElsaSerializerBaseTest . clone ( l ) ; "<AssertPlaceHolder>" ; } clone ( E ) { return org . mapdb . elsa . ElsaSerializerBaseTest . clonePojo ( value ) ; }
org . junit . Assert . assertTrue ( org . mapdb . elsa . Arrays . equals ( l , ( ( int [ ] ) ( deserialize ) ) ) )
testCheckTimeoutConnectionTimedout ( ) { final java . util . function . Consumer < org . opendaylight . controller . cluster . access . concepts . Response < ? , ? > > callback = mock ( java . util . function . Consumer . class ) ; connection . sendRequest ( createRequest ( replyToProbe . ref ( ) ) , callback ) ; final...
org . junit . Assert . assertNull ( timeout )
shouldIndicateNoMutationWhenNothingHasBeenChanged ( ) { createTestDatabase ( ) ; mutateGraph ( new com . graphaware . tx . event . improved . VoidReturningCallback ( ) { @ com . graphaware . tx . event . improved . Override protected void doInTx ( com . graphaware . tx . event . improved . GraphDatabaseService database...
org . junit . Assert . assertFalse ( transactionData . mutationsOccurred ( ) )
readArray_enough ( ) { java . io . InputStream origin = bytes ( "Hello|World|!" ) ; java . io . InputStream testee = new com . asakusafw . runtime . directio . util . DelimiterRangeInputStream ( origin , '|' , 100 , false ) ; "<AssertPlaceHolder>" ; } readBytes ( java . io . InputStream , int ) { byte [ ] buf = new byt...
org . junit . Assert . assertThat ( readBytes ( testee , 4 ) , is ( "Hello|World|!" ) )
testBehavesWithoutMetricsContainer ( ) { "<AssertPlaceHolder>" ; } getCurrentContainer ( ) { org . apache . beam . sdk . metrics . MetricsContainer container = org . apache . beam . sdk . metrics . MetricsEnvironment . CONTAINER_FOR_THREAD . get ( ) ; if ( ( container == null ) && ( org . apache . beam . sdk . metrics ...
org . junit . Assert . assertNull ( org . apache . beam . sdk . metrics . MetricsEnvironment . getCurrentContainer ( ) )
testExecute ( ) { System . out . println ( "execute" ) ; org . apache . jmeter . samplers . SampleResult previousResult = null ; org . apache . jmeter . samplers . Sampler currentSampler = null ; kg . apc . jmeter . functions . FifoGet instance = new kg . apc . jmeter . functions . FifoGet ( ) ; java . util . LinkedLis...
org . junit . Assert . assertEquals ( expResult , result )
testEqualsSelf ( ) { org . jfree . data . time . Millisecond millisecond = new org . jfree . data . time . Millisecond ( ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == o ) { return true ; } if ( ! ( o instanceof org . jfree . base . modules . PackageState ) ) { return false ; } final o...
org . junit . Assert . assertTrue ( millisecond . equals ( millisecond ) )
testDifference ( ) { org . openscience . cdk . interfaces . IChemObject atom1 = mock ( org . openscience . cdk . interfaces . IChemObject . class ) ; org . openscience . cdk . interfaces . IChemObject atom2 = mock ( org . openscience . cdk . interfaces . IChemObject . class ) ; when ( atom1 . getFlags ( ) ) . thenRetur...
org . junit . Assert . assertNotNull ( difference )
locationMacroWithCxxGenrule ( ) { com . facebook . buck . cxx . CxxGenruleBuilder genruleBuilder = new com . facebook . buck . cxx . CxxGenruleBuilder ( com . facebook . buck . core . model . BuildTargetFactory . newInstance ( "//other:gen_lib" ) ) . setOut ( "libtest.a" ) ; com . facebook . buck . cxx . PrebuiltCxxLib...
org . junit . Assert . assertThat ( pathResolver . getAbsolutePath ( staticLibraryPath ) , org . hamcrest . Matchers . equalTo ( pathResolver . getAbsolutePath ( genrule . getGenrule ( CxxPlatformUtils . DEFAULT_PLATFORM , graphBuilder ) ) ) )
shouldBuildOperationChainWithTypeUnsafe ( ) { final uk . gov . gchq . gaffer . operation . impl . get . GetAdjacentIds getAdjIds1 = new uk . gov . gchq . gaffer . operation . impl . get . GetAdjacentIds ( ) ; final uk . gov . gchq . gaffer . operation . impl . export . set . ExportToSet < uk . gov . gchq . gaffer . com...
org . junit . Assert . assertArrayEquals ( new uk . gov . gchq . gaffer . operation . Operation [ ] { getAdjIds1 , exportToSet1 , discardOutput1 , getSetExport1 , getAdjIds2 , exportToSet2 , discardOutput2 , getSetExport2 } , opChain . getOperationArray ( ) )
testRemoveAttribute_returnsNullForNonExistingAttribute ( ) { uiSession . removeAttribute ( "does.not.exist" ) ; "<AssertPlaceHolder>" ; } getAttribute ( java . lang . String ) { org . eclipse . rap . rwt . internal . util . ParamCheck . notNull ( name , "name" ) ; return props . getProperty ( name ) ; }
org . junit . Assert . assertNull ( uiSession . getAttribute ( "does.not.exist" ) )
testSelectionEvent_executeAction ( ) { mockUI ( mock ( com . eclipsesource . tabris . ui . ActionListener . class ) ) ; control . notifyListeners ( SWT . Selection , new org . eclipse . swt . widgets . Event ( ) ) ; com . eclipsesource . tabris . internal . ui . TestAction action = ( ( com . eclipsesource . tabris . in...
org . junit . Assert . assertTrue ( action . wasExecuted ( ) )
testShouldBeAbleToConvertACapabilityObject ( ) { org . openqa . selenium . remote . DesiredCapabilities caps = new org . openqa . selenium . remote . DesiredCapabilities ( ) ; caps . setCapability ( "key" , "alpha" ) ; java . lang . String json = new org . openqa . selenium . remote . BeanToJsonConverter ( ) . convert ...
org . junit . Assert . assertEquals ( "alpha" , converted . getString ( "key" ) )
storeUsingBigKey ( ) { org . mule . runtime . api . store . ObjectStore os = objectStoreFactory . createObjectStore ( "myOs" ) ; java . lang . StringBuilder bigKey = new java . lang . StringBuilder ( ) ; for ( int i = 0 ; i < 50 ; i ++ ) { bigKey . append ( "abcdefghijklmnopqrstuvwxyz" ) ; } os . store ( bigKey . toStr...
org . junit . Assert . assertThat ( os . retrieve ( bigKey . toString ( ) ) , org . hamcrest . core . Is . is ( 1 ) )
shouldGenerateCorrectSqlForMathOperations13 ( ) { java . lang . String result = testDialect . getSqlFrom ( org . alfasoftware . morf . sql . SqlUtils . field ( "a" ) . plus ( org . alfasoftware . morf . sql . SqlUtils . field ( "b" ) ) . plus ( org . alfasoftware . morf . sql . SqlUtils . field ( "c" ) ) . divideBy ( o...
org . junit . Assert . assertEquals ( expectedSqlForMathOperations13 ( ) , result )
testStringOnly ( ) { net . kyori . text . Component component = TextParsers . XML_PARSER . parse ( "foo" ) ; net . kyori . text . TextComponent expected = net . kyori . text . TextComponent . of ( "foo" ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String ) { return new com . blurengine . blur . modules . filters...
org . junit . Assert . assertEquals ( expected , component )
shouldFindResourceByPublicId ( ) { java . util . Map result = cloudinary . search ( ) . expression ( java . lang . String . format ( "public_id:%s" , com . cloudinary . test . AbstractSearchTest . SEARCH_TEST_1 ) ) . execute ( ) ; java . util . List < java . util . Map > resources = ( ( java . util . List < java . util...
org . junit . Assert . assertEquals ( 1 , resources . size ( ) )
parse ( ) { char expected = 'e' ; io . robe . convert . xml . parsers . ParseChar parseChar = new io . robe . convert . xml . parsers . ParseChar ( ) ; char actual = parseChar . parse ( io . robe . convert . xml . ParserUtil . getParser ( "<char>e</char>" ) , null ) ; "<AssertPlaceHolder>" ; } getParser ( java . lang ....
org . junit . Assert . assertEquals ( expected , actual )
testIsMapFieldMapOfStringSets_StringSets ( ) { java . util . Map < java . lang . String , java . util . Set < java . lang . String > > roleMap = new java . util . HashMap ( ) ; roleMap . put ( "expert" , toSingletonSet ( "expert@company.com" ) ) ; org . eclipse . sw360 . datahandler . thrift . projects . Project projec...
org . junit . Assert . assertThat ( b , org . hamcrest . core . Is . is ( true ) )
testWriteLong ( ) { com . liferay . portal . kernel . io . Serializer serializer = new com . liferay . portal . kernel . io . Serializer ( ) ; java . nio . ByteBuffer byteBuffer = java . nio . ByteBuffer . allocate ( ( ( com . liferay . portal . kernel . io . SerializerTest . _COUNT ) * 8 ) ) ; byteBuffer . order ( Byt...
org . junit . Assert . assertArrayEquals ( byteBuffer . array ( ) , serializerByteBuffer . array ( ) )