input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
shouldMergeManifestsIfAsked ( ) { java . util . jar . Manifest fromJar = createManifestWithExampleSection ( com . google . common . collect . ImmutableMap . of ( "Not-Seen" , "ever" ) ) ; java . util . jar . Manifest fromUser = createManifestWithExampleSection ( com . google . common . collect . ImmutableMap . of ( "ca...
org . junit . Assert . assertEquals ( expectedManifest . getEntries ( ) , seenManifest . getEntries ( ) )
testMetadataEnumLookupMapper ( ) { int partition = 1 ; long offset = 5L ; long ts = 1000000L ; byte [ ] value = "value" . getBytes ( ) ; byte [ ] key = "key" . getBytes ( ) ; java . util . List < org . apache . hadoop . io . Writable > expectedWritables = java . util . Arrays . asList ( new org . apache . hadoop . io ....
org . junit . Assert . assertEquals ( expectedWritables , actual )
normalize_ca_with_null ( ) { "<AssertPlaceHolder>" ; } normalize_ca ( java . lang . String ) { return com . gisgraphy . geoloc . ZipcodeNormalizer . normalize_country ( string , com . gisgraphy . geoloc . ZipcodeNormalizer . CA_PATTERN ) ; }
org . junit . Assert . assertNull ( com . gisgraphy . geoloc . ZipcodeNormalizer . normalize_ca ( null ) )
testToJsonWebKey ( ) { java . security . spec . ECGenParameterSpec gps = new java . security . spec . ECGenParameterSpec ( com . microsoft . azure . keyvault . cryptography . EcKey . P521 ) ; com . microsoft . azure . keyvault . cryptography . test . ECKeyTest . EC_KEY_GENERATOR . initialize ( gps ) ; java . security ....
org . junit . Assert . assertEquals ( jwk , newJwk )
testLoadNotExisting ( ) { storage . loadTemplateMapsFromFile ( ) ; java . lang . String notExists = "not-exists" ; org . kie . server . controller . api . model . spec . ServerTemplate loadedTemplate = storage . load ( notExists ) ; "<AssertPlaceHolder>" ; } load ( java . lang . String ) { org . kie . server . controll...
org . junit . Assert . assertNull ( loadedTemplate )
testWithWriter ( ) { final java . lang . String writer = "writer" ; final org . apache . oozie . fluentjob . api . action . PipesBuilder builder = new org . apache . oozie . fluentjob . api . action . PipesBuilder ( ) ; builder . withWriter ( writer ) ; final org . apache . oozie . fluentjob . api . action . Pipes pipe...
org . junit . Assert . assertEquals ( writer , pipes . getWriter ( ) )
createQuery2 ( ) { java . util . List < com . querydsl . core . Tuple > rows = query ( ) . from ( com . querydsl . jpa . JPABase . cat ) . select ( new com . querydsl . core . types . Expression < ? > [ ] { com . querydsl . jpa . JPABase . cat . id , com . querydsl . jpa . JPABase . cat . name } ) . createQuery ( ) . g...
org . junit . Assert . assertEquals ( 2 , row . size ( ) )
cannotScrollBeforeTop ( ) { selectMenuPath ( com . vaadin . v7 . tests . components . grid . basicfeatures . client . GridDetailsClientTest . SET_GENERATOR ) ; toggleDetailsFor ( 1 ) ; scrollToRow ( 0 , ScrollDestination . END ) ; "<AssertPlaceHolder>" ; } getGridVerticalScrollPos ( ) { return ( ( java . lang . Number ...
org . junit . Assert . assertEquals ( 0 , getGridVerticalScrollPos ( ) )
testExecuteAction_mdxConnectionAction ( ) { mdxBaseComponent . setActionDefinition ( connAction ) ; doReturn ( conn ) . when ( mdxBaseComponent ) . getDatasourceConnection ( ) ; doNothing ( ) . when ( mdxBaseComponent ) . setOutputValue ( anyString ( ) , anyString ( ) ) ; "<AssertPlaceHolder>" ; } executeAction ( ) { j...
org . junit . Assert . assertTrue ( mdxBaseComponent . executeAction ( ) )
testGet_testCaseNotFound ( ) { com . hazelcast . simulator . worker . performance . PerformanceStats performanceStats = performanceStatsCollector . get ( "notFound" , true ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( ( operationCount ) == ( com . hazelcast . simulator . worker . performance . PerformanceStats ....
org . junit . Assert . assertTrue ( performanceStats . isEmpty ( ) )
testFailure ( ) { org . jboss . as . test . integration . management . cli . CliProcessWrapper cli = new org . jboss . as . test . integration . management . cli . CliProcessWrapper ( ) . addCliArgument ( "--connect" ) . addCliArgument ( ( ( ( "--controller=" + ( org . jboss . as . test . shared . TestSuiteEnvironment ...
org . junit . Assert . assertTrue ( ( ( cli . getProcessExitValue ( ) ) != 0 ) )
trimAll_A$String_1 ( ) { org . junithelper . core . filter . impl . TrimAnnotationFilter target = new org . junithelper . core . filter . impl . TrimAnnotationFilter ( ) ; java . lang . String src = "@Deprected\r\npublic<sp>void<sp>aaa(@NotNull<sp>String<sp>bbb)<sp>{" ; java . lang . String actual = target . trimAll ( ...
org . junit . Assert . assertEquals ( expected , actual )
shouldReturnErrorOnHostNameWithHttpProtocolValidation ( ) { java . lang . String invalidHostname = "http://host.xz" ; when ( constant . invalidHostName ( ) ) . thenReturn ( "ErrorMessage" ) ; java . lang . String errorMessage = ( ( org . eclipse . che . ide . ui . dialogs . input . InputValidator ) ( presenter . hostNa...
org . junit . Assert . assertEquals ( "ErrorMessage" , errorMessage )
testPEGAchillesHeel ( ) { org . antlr . v4 . tool . Grammar g = new org . antlr . v4 . tool . Grammar ( ( "parser<sp>grammar<sp>T;\n" + "5:BLOCK_START<sp>0<sp>6\n" 6 ) ) ; java . lang . String expecting = "max<sp>type<sp>2\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "5:BLOCK_START<sp>0<sp>6\n" 4 + "1:RULE_STOP<sp>0\n" ) + "2:...
org . junit . Assert . assertEquals ( expecting , result )
testImportedMatView ( ) { org . teiid . adminapi . impl . ModelMetaData mmd2 = new org . teiid . adminapi . impl . ModelMetaData ( ) ; mmd2 . setName ( "view1" ) ; mmd2 . setModelType ( Type . PHYSICAL ) ; mmd2 . setSchemaSourceType ( "DDL" ) ; mmd2 . setSchemaText ( "create<sp>foreign<sp>table<sp>x<sp>(col<sp>integer)...
org . junit . Assert . assertEquals ( "base" , rs . getString ( 1 ) )
testJsonToMapIsEmpty ( ) { java . lang . String jsonStr = "" ; java . util . Map < java . lang . String , java . lang . String > dbMap = jsonUtil . jsonToMap ( jsonStr ) ; boolean isEmpty = dbMap . isEmpty ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( ( mDispatcherThread ) == null ) || ( mDispatcherThread . is...
org . junit . Assert . assertTrue ( isEmpty )
header_ignore_less_ignore ( ) { com . asakusafw . runtime . io . text . driver . RecordDefinition < java . lang . String [ ] > def = com . asakusafw . runtime . io . text . driver . RecordDefinition . builder ( java . lang . String [ ] . class ) . withHeaderType ( HeaderType . SKIP ) . withOnLessInput ( ErrorAction . I...
org . junit . Assert . assertThat ( results , is ( new java . lang . String [ ] [ ] { new java . lang . String [ ] { "A" , "B" } } ) )
testInvalidAttachmentFileTypeUpload ( ) { org . eclipse . vorto . repository . server . it . TestModel test = TestModel . TestModelBuilder . aTestModel ( ) . build ( ) ; test . createModel ( repositoryServer , userAdmin ) ; addAttachment ( test . prettyName , userAdmin , "test.bin" , MediaType . APPLICATION_JSON ) . an...
org . junit . Assert . assertTrue ( true )
shouldAllowSessionToCreateAndAccessNewChildNodeOnExistingNodeBeforeSave ( ) { check ( cache ) . noNode ( "/childB/newChild" ) ; print ( false ) ; org . modeshape . jcr . cache . MutableCachedNode nodeB = check ( session1 ) . mutableNode ( "/childB" ) ; org . modeshape . jcr . cache . NodeKey newKey = session1 . createN...
org . junit . Assert . assertThat ( newChild . getPath ( session1 ) , org . hamcrest . core . Is . is ( path ( "/childB/newChild" ) ) )
testConvertMoreThanMax ( ) { java . lang . Byte result = underTest . convert ( "128" ) ; "<AssertPlaceHolder>" ; } convert ( java . lang . String ) { if ( "S" . equalsIgnoreCase ( value ) ) { return Size . TINY ; } else if ( "M" . equalsIgnoreCase ( value ) ) { return Size . NORMAL ; } else if ( "L" . equalsIgnoreCase ...
org . junit . Assert . assertNull ( result )
testResumeFromYarnIDZookeeperNamespaceOverride ( ) { final org . apache . flink . configuration . Configuration configuration = new org . apache . flink . configuration . Configuration ( ) ; final org . apache . flink . yarn . cli . FlinkYarnSessionCli flinkYarnSessionCli = new org . apache . flink . yarn . cli . Flink...
org . junit . Assert . assertEquals ( overrideZkNamespace , clusterId )
testMatches ( ) { java . lang . String str = "hahafoo" ; java . lang . String regex = ".*foo" ; int result = org . evosuite . instrumentation . testability . StringHelper . StringMatches ( str , regex ) ; "<AssertPlaceHolder>" ; } StringMatches ( java . lang . String , java . lang . String ) { int distance = org . evos...
org . junit . Assert . assertTrue ( ( result > 0 ) )
testExistingKeyEvalIsNotNil ( ) { org . geotools . filter . function . EnvFunction . setGlobalValue ( "foo" , "whatever" ) ; boolean isNil = ff . isNil ( ff . function ( "env" , ff . literal ( "foo" ) ) , null ) . evaluate ( null ) ; "<AssertPlaceHolder>" ; } evaluate ( java . lang . Object ) { return evaluate ( object...
org . junit . Assert . assertTrue ( ( ! isNil ) )
testToString ( ) { org . apache . flink . shaded . netty4 . io . netty . buffer . ByteBuf copied = copiedBuffer ( "Hello,<sp>World!" , CharsetUtil . ISO_8859_1 ) ; buffer . clear ( ) ; buffer . writeBytes ( copied ) ; "<AssertPlaceHolder>" ; copied . release ( ) ; } toString ( java . util . List ) { java . lang . Strin...
org . junit . Assert . assertEquals ( "Hello,<sp>World!" , buffer . toString ( CharsetUtil . ISO_8859_1 ) )
testForTinyIntArray ( ) { java . lang . Byte [ ] byteArr = new java . lang . Byte [ 2 ] ; byteArr [ 0 ] = 1 ; byteArr [ 1 ] = 2 ; org . apache . phoenix . schema . types . PhoenixArray arr = org . apache . phoenix . schema . types . PArrayDataType . instantiatePhoenixArray ( PTinyint . INSTANCE , byteArr ) ; PTinyintAr...
org . junit . Assert . assertEquals ( arr , resultArr )
testJackson2JsonSerializer ( ) { org . springframework . data . redis . Person person = new org . springframework . data . redis . PersonObjectFactory ( ) . instance ( ) ; "<AssertPlaceHolder>" ; } deserialize ( byte [ ] ) { if ( org . springframework . data . redis . serializer . SerializationUtils . isEmpty ( bytes )...
org . junit . Assert . assertEquals ( person , serializer . deserialize ( serializer . serialize ( person ) ) )
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . portal . kernel . model . User > users = _persistence . fetchByPrimaryKeys ( primaryKeys ...
org . junit . Assert . assertTrue ( users . isEmpty ( ) )
containsBuildSteps ( ) { org . jenkinsci . plugins . postbuildscript . model . PostBuildStep postBuildStep = new org . jenkinsci . plugins . postbuildscript . model . PostBuildStep ( java . util . Collections . singleton ( org . jenkinsci . plugins . postbuildscript . model . PostBuildStepTest . RESULT ) , java . util ...
org . junit . Assert . assertThat ( postBuildStep . getBuildSteps ( ) , org . hamcrest . Matchers . contains ( buildStep ) )
testExplicitProvider ( ) { factoryBean . setLocation ( SSLTestConstants . KEYSTORE_JKS_RESOURCE ) ; java . security . KeyStore keyStore = factoryBean . createKeyStore ( ) ; factoryBean . setProvider ( keyStore . getProvider ( ) . getName ( ) ) ; "<AssertPlaceHolder>" ; } createKeyStore ( ) { if ( ( getLocation ( ) ) ==...
org . junit . Assert . assertNotNull ( factoryBean . createKeyStore ( ) )
shouldAccumulateEntries ( ) { com . github . dozermapper . core . Mapper beanMapper = com . github . dozermapper . core . DozerBeanMapperBuilder . create ( ) . withMappingBuilder ( new com . github . dozermapper . core . loader . api . BeanMappingBuilder ( ) { @ com . github . dozermapper . core . functional_tests . bu...
org . junit . Assert . assertEquals ( 2 , target . getMap ( ) . size ( ) )
testCurrentHour ( ) { request . setCurrentHour ( 1 ) ; "<AssertPlaceHolder>" ; } getCurrentHour ( ) { return ( ( java . lang . Integer ) ( getParameter ( org . piwik . java . tracking . PiwikRequest . CURRENT_HOUR ) ) ) ; }
org . junit . Assert . assertEquals ( new java . lang . Integer ( 1 ) , request . getCurrentHour ( ) )
testBuildWithDisabledSecurityConstraint ( ) { unit . setSecurity ( false ) ; org . lnu . is . domain . degree . Degree context = new org . lnu . is . domain . degree . Degree ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>Degree<sp>e<sp>WHERE<sp>e.status=:status<sp>" ; org . lnu . is . pagination . ...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testSub ( ) { com . ctrip . xpipe . redis . console . service . impl . List < com . ctrip . xpipe . tuple . Pair < java . lang . String , java . lang . Integer > > first = com . google . common . collect . Lists . newArrayList ( com . ctrip . xpipe . tuple . Pair . from ( "127.0.0.1" , 1111 ) , com . ctrip . xpipe . tu...
org . junit . Assert . assertEquals ( 1 , sub . size ( ) )
getResource_shouldReturnValue ( ) { org . apache . sling . api . resource . Resource resource = com . adobe . acs . commons . wcm . comparisons . impl . PageCompareDataImplTest . mockResource ( "/my/path" , "latest" , new java . util . Date ( ) ) ; com . adobe . acs . commons . wcm . comparisons . PageCompareData pageC...
org . junit . Assert . assertThat ( pageCompareData . getResource ( ) , org . hamcrest . Matchers . is ( resource ) )
testFindLowerNeighbour ( ) { org . geotools . tile . TileService service = createService ( ) ; org . geotools . tile . impl . bing . BingTile tile = new org . geotools . tile . impl . bing . BingTile ( 20 , 15 , new org . geotools . tile . impl . WebMercatorZoomLevel ( 5 ) , service ) ; org . geotools . tile . Tile nei...
org . junit . Assert . assertEquals ( expectedNeighbour , neighbour )
manageModificationVDiskCreation_VSDISK_CREATING ( ) { org . oscm . app . iaas . data . FlowState flowState = org . oscm . app . iaas . data . FlowState . VSDISK_CREATING ; org . oscm . app . iaas . data . FlowState newState = null ; newState = vServerProcessor . manageModificationVDiskCreation ( "controllerId" , "insta...
org . junit . Assert . assertNull ( newState )
test_closeFileStreamBatched_update ( ) { java . io . File tempFile = newTempFile ( ) ; try ( io . ebean . Transaction txn = io . ebean . Ebean . beginTransaction ( ) ) { txn . setBatchSize ( 30 ) ; txn . setBatchMode ( true ) ; org . tests . model . types . SomeFileBean bean0 = new org . tests . model . types . SomeFil...
org . junit . Assert . assertTrue ( tempFile . delete ( ) )
createRegistrationStateQueryWithPageSizeSucceed ( tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . QuerySpecification ) { final java . lang . String enrollmentGroupId = "valid-enrollmentGroupId" ; tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . ProvisioningServ...
org . junit . Assert . assertNotNull ( query )
whenCreatedFromMapWithoutExternalRestEnabled_hasEmptyString ( ) { oracle . kubernetes . operator . helm . HelmOperatorValues values = new oracle . kubernetes . operator . helm . HelmOperatorValues ( com . google . common . collect . ImmutableMap . of ( ) ) ; "<AssertPlaceHolder>" ; } getExternalRestEnabled ( ) { return...
org . junit . Assert . assertThat ( values . getExternalRestEnabled ( ) , org . hamcrest . Matchers . equalTo ( "" ) )
testNoServerNameConfig ( ) { append ( "[groups]" , globalPolicyFile ) ; append ( "other_group<sp>=<sp>malicious_role" , globalPolicyFile ) ; append ( "[roles]" , globalPolicyFile ) ; append ( "malicious_role<sp>=<sp>connector=c1->action=read,link=l1->action=read" , globalPolicyFile ) ; org . apache . sentry . policy . ...
org . junit . Assert . assertTrue ( permissions . toString ( ) , permissions . isEmpty ( ) )
testRawType ( ) { io . netty . util . internal . TypeParameterMatcher m = io . netty . util . internal . TypeParameterMatcher . find ( new io . netty . util . internal . TypeParameterMatcherTest . U ( ) { } , io . netty . util . internal . TypeParameterMatcherTest . U . class , "E" ) ; "<AssertPlaceHolder>" ; } match (...
org . junit . Assert . assertTrue ( m . match ( new java . lang . Object ( ) ) )
testMinMaxRangeIntersection ( ) { java . sql . Connection conn = java . sql . DriverManager . getConnection ( getUrl ( ) ) ; java . sql . PreparedStatement stmt = conn . prepareStatement ( ( "create<sp>table<sp>splits_test<sp>" + ( "(pk1<sp>UNSIGNED_TINYINT<sp>NOT<sp>NULL,<sp>pk2<sp>UNSIGNED_TINYINT<sp>NOT<sp>NULL,<sp>...
org . junit . Assert . assertTrue ( rs . next ( ) )
shouldNotExecuteTestInOneExcludedCategory ( ) { runner . setTestConfigurationSource ( withExcludedGroups ( org . infinitest . testrunner . exampletests . junit4 . Junit4FailingTestsWithCategories . IgnoreMe . class . getName ( ) ) ) ; org . infinitest . testrunner . TestResults results = runner . runTest ( org . infini...
org . junit . Assert . assertThat ( size ( results ) , org . hamcrest . CoreMatchers . is ( 2 ) )
testUpdate ( ) { org . smartdata . model . SystemInfo systemInfo = new org . smartdata . model . SystemInfo ( "test" , "test" ) ; systemInfoDao . insert ( systemInfo ) ; org . smartdata . model . SystemInfo newSystemInfo = new org . smartdata . model . SystemInfo ( "test" , "test1" ) ; systemInfoDao . update ( newSyste...
org . junit . Assert . assertTrue ( systemInfoDao . getByProperty ( "test" ) . equals ( newSystemInfo ) )
shouldLoadAllTimestampPropertiesWhenGetTimestampProperty ( ) { final java . lang . String group = uk . gov . gchq . gaffer . commonutil . TestGroups . ENTITY ; final org . apache . accumulo . core . data . Key key = mock ( org . apache . accumulo . core . data . Key . class ) ; final org . apache . accumulo . core . da...
org . junit . Assert . assertEquals ( timestamp , property )
shouldValidateAndReturnFalseWhenGroupByPropertyNotInSchema ( ) { final uk . gov . gchq . gaffer . store . schema . ViewValidator validator = new uk . gov . gchq . gaffer . store . schema . ViewValidator ( ) ; final uk . gov . gchq . gaffer . data . elementdefinition . view . View view = new uk . gov . gchq . gaffer . d...
org . junit . Assert . assertFalse ( result . isValid ( ) )
shouldNotChangeExceptionMessage ( ) { javax . persistence . NoResultException noResultException = new javax . persistence . NoResultException ( "" ) ; javax . persistence . PersistenceException exception = new javax . persistence . PersistenceException ( "Without<sp>result" , noResultException ) ; org . lnu . is . reso...
org . junit . Assert . assertEquals ( expected , actual )
testValidate_IMolecularFormula_double ( ) { org . openscience . cdk . formula . rules . RDBERule rule = new org . openscience . cdk . formula . rules . RDBERule ( ) ; org . openscience . cdk . interfaces . IMolecularFormula formula = org . openscience . cdk . tools . manipulator . MolecularFormulaManipulator . getMajor...
org . junit . Assert . assertTrue ( rule . validate ( formula , 2.0 ) )
readTokenEOF ( ) { victim = new org . sejda . sambox . input . SourceReader ( inMemorySeekableSourceFrom ( "10<sp>0<sp>obj<sp>value" . getBytes ( ) ) ) ; victim . position ( 9 ) ; "<AssertPlaceHolder>" ; } readToken ( ) { skipSpaces ( ) ; java . lang . StringBuilder builder = pool . borrow ( ) ; try { int c ; while ( (...
org . junit . Assert . assertEquals ( "value" , victim . readToken ( ) )
testEqualsNull ( ) { final org . yes . cart . search . dto . impl . NavigationContextImpl ctx1 = new org . yes . cart . search . dto . impl . NavigationContextImpl ( 10L , 10L , "en" , null , false , Collections . EMPTY_MAP , null , null ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == o...
org . junit . Assert . assertFalse ( ctx1 . equals ( null ) )
testJavaSourceClassLoader ( ) { java . lang . ClassLoader extensionsClassLoader = org . codehaus . commons . compiler . tests . JavaSourceClassLoaderTest . getExtensionsClassLoader ( ) ; org . codehaus . commons . compiler . AbstractJavaSourceClassLoader jscl = this . compilerFactory . newJavaSourceClassLoader ( extens...
org . junit . Assert . assertEquals ( 7 , result )
countsOnlyMarkPulsesInGroups ( ) { for ( int i = 0 ; i < ( nu . nethome . tools . protocol_analyzer . PulseLengthAnalyzerTest . SIZE ) ; i ++ ) { pulseLengthAnalyzer . addPulse ( i , false ) ; pulseLengthAnalyzer . addPulse ( ( i % 3 ) , true ) ; } "<AssertPlaceHolder>" ; } groupCount ( int ) { if ( ( count ) < ( size ...
org . junit . Assert . assertThat ( pulseLengthAnalyzer . groupCount ( nu . nethome . tools . protocol_analyzer . PulseLengthAnalyzerTest . SIZE ) , org . hamcrest . core . Is . is ( 3 ) )
testProducerThrowsWhenBrokerStops ( ) { connection = createConnection ( ) ; javax . jms . Session session = connection . createSession ( false , Session . AUTO_ACKNOWLEDGE ) ; javax . jms . Queue queue = session . createQueue ( getDestinationName ( ) ) ; connection . start ( ) ; final javax . jms . MessageProducer prod...
org . junit . Assert . assertTrue ( t . passed ( ) )
testMergeJoinLeftEmptyBatch ( ) { final java . lang . String plan = com . google . common . io . Files . toString ( com . dremio . common . util . FileUtils . getResourceAsFile ( "/join/merge_join_empty_batch.json" ) , Charsets . UTF_8 ) . replace ( "${JOIN_TYPE}" , "LEFT" ) ; "<AssertPlaceHolder>" ; } testPhysical ( j...
org . junit . Assert . assertEquals ( 50 , testPhysical ( plan ) )
getCurrentWikiId ( ) { when ( wikiDescriptorManager . getCurrentWikiId ( ) ) . thenReturn ( "currentWiki" ) ; java . lang . String result = mocker . getComponentUnderTest ( ) . getCurrentWikiId ( ) ; "<AssertPlaceHolder>" ; } getCurrentWikiId ( ) { return this . wikiDescriptorManager . getCurrentWikiId ( ) ; }
org . junit . Assert . assertEquals ( "currentWiki" , result )
testProjectToDate ( ) { int delta = compareProject ( TpchTable . CUSTOMER , 6 , "to_date(c_date,<sp>'YYYY-MM-DD',<sp>1)" ) ; "<AssertPlaceHolder>" ; } compareProject ( io . airlift . tpch . GenerationDefinition . TpchTable , double , java . lang . String ) { com . dremio . exec . physical . config . Project project = n...
org . junit . Assert . assertTrue ( ( delta > 0 ) )
testStringEquals ( ) { runAll ( "interrop/MethodInterrop" , "stringEquals" , ( ) -> { "<AssertPlaceHolder>" ; io . vertx . codetrans . InterropTest . isEquals = false ; } ) ; } runAll ( java . lang . String , java . lang . String , io . vertx . codetrans . Map , java . lang . Runnable ) { runAll ( path , method , globa...
org . junit . Assert . assertEquals ( true , io . vertx . codetrans . InterropTest . isEquals )
insert_nulls_in_batch2 ( ) { com . querydsl . sql . dml . Mapper < java . lang . Object > mapper = com . querydsl . sql . dml . DefaultMapper . WITH_NULL_BINDINGS ; com . querydsl . sql . QEmployee employee = QEmployee . employee ; com . querydsl . sql . dml . SQLInsertClause sic = insert ( employee ) ; com . querydsl ...
org . junit . Assert . assertEquals ( 0 , sic . execute ( ) )
testIsDr ( ) { deviceInformation . setDr ( true ) ; "<AssertPlaceHolder>" ; } isDr ( ) { return isDr ; }
org . junit . Assert . assertThat ( deviceInformation . isDr ( ) , org . hamcrest . CoreMatchers . is ( true ) )
CallInstanceMethodIndirect_MethodMethodToString ( ) { java . lang . String fromClass = "domain.indirect.violatingfrom.CallInstanceMethodIndirect_MethodMethodToString" ; java . lang . String toClass = "domain.indirect.indirectto.ServiceOne" ; java . util . ArrayList < java . lang . String > typesToFind = new java . util...
org . junit . Assert . assertTrue ( areDependencyTypesDetected ( fromClass , toClass , typesToFind , true ) )
testFieldNameCreateNew ( ) { info . smart_tools . smartactors . iobject . ifield_name . IFieldName fieldName = new info . smart_tools . smartactors . iobject . field_name . FieldName ( "name" ) ; "<AssertPlaceHolder>" ; } toString ( ) { return this . path ; }
org . junit . Assert . assertEquals ( "name" , fieldName . toString ( ) )
testAccessBasicValue_long ( ) { org . omg . CORBA . TypeCode tc = orb . get_primitive_tc ( org . omg . CORBA . TCKind . tk_long ) ; org . omg . DynamicAny . DynAny dynAny = createDynAnyFromTypeCode ( tc ) ; java . lang . String msg = "Value<sp>inserted<sp>into<sp>DynAny<sp>object<sp>is<sp>not<sp>equal<sp>to<sp>value<sp...
org . junit . Assert . assertEquals ( msg , 700 , dynAny . get_long ( ) )
testDelayedRequest ( ) { org . apache . camel . component . reactive . streams . engine . DelayedMonoPublisher < java . lang . Integer > pub = new org . apache . camel . component . reactive . streams . engine . DelayedMonoPublisher ( service ) ; pub . setData ( 2 ) ; java . util . concurrent . BlockingQueue < java . l...
org . junit . Assert . assertEquals ( new java . lang . Integer ( 2 ) , res )
test13 ( ) { org . evosuite . Properties . CLIENT_ON_THREAD = true ; org . evosuite . Properties . PRINT_TO_SYSTEM = true ; org . evosuite . Properties . TIMEOUT = 5000000 ; org . evosuite . testcase . DefaultTestCase tc = org . evosuite . symbolic . SymbolicObserverTest . build_test_input_13 ( ) ; System . out . print...
org . junit . Assert . assertEquals ( 1 , branch_conditions . size ( ) )
testWhiteSpaceEscape ( ) { net . sourceforge . pmd . cpd . Tokens tokens = parse ( ( "szPath<sp>=<sp>m_sdcacheDir<sp>+<sp>_T(\"\\<sp>oMedia\");" + ( net . sourceforge . pmd . PMD . EOL ) ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return rules . size ( ) ; }
org . junit . Assert . assertEquals ( 10 , tokens . size ( ) )
test_valid_nonItem ( ) { java . util . Map < java . lang . String , java . lang . Object > parameters = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; parameters . put ( IBuildParametes . ITEM , new java . lang . Object ( ) ) ; org . talend . core . runtime . repository . build . Reposi...
org . junit . Assert . assertFalse ( proivder . valid ( parameters ) )
testGoodAdapter ( ) { org . cytoscape . app . CyAppAdapter ad = mock ( org . cytoscape . app . CyAppAdapter . class ) ; org . cytoscape . app . CyAppTest . MyApp m = new org . cytoscape . app . CyAppTest . MyApp ( ad ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( m . adapter , ad )
testGetSelectedOptionNoValue ( ) { wd . open ( org . finra . jtaf . ewd . widget . element . html . DropDownTest . url ) ; org . finra . jtaf . ewd . widget . IDropDown d = new org . finra . jtaf . ewd . widget . element . html . DropDown ( "//select[@id='selectTestGetValue']" ) ; java . lang . String exp = "" ; "<Asse...
org . junit . Assert . assertEquals ( exp , d . getSelectedOption ( ) )
testCompoundAnd ( ) { template . eq ( "id" , "72300125" ) . eq ( "name" , "" ) ; java . util . List < java . lang . Object > list = template . getResultList ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return this . size ; }
org . junit . Assert . assertEquals ( list . size ( ) , 1 )
shouldDeleteValidDirs ( ) { org . openspotlight . common . util . Files . delete ( org . openspotlight . common . util . test . FilesTest . _LOWER_PATH ) ; "<AssertPlaceHolder>" ; } delete ( java . io . File ) { org . openspotlight . common . util . Assertions . checkNotNull ( "path" , path ) ; if ( ! ( path . exists (...
org . junit . Assert . assertThat ( new java . io . File ( org . openspotlight . common . util . test . FilesTest . _LOWER_PATH ) . exists ( ) , org . hamcrest . core . Is . is ( false ) )
test ( ) { "<AssertPlaceHolder>" ; } getRow ( int ) { if ( rowIndex < 0 ) { throw new java . lang . IllegalArgumentException ( ) ; } else if ( rowIndex == 0 ) { return java . util . Arrays . asList ( 1 ) ; } else if ( rowIndex == 1 ) { return java . util . Arrays . asList ( 1 , 1 ) ; } else { java . lang . Integer [ ] ...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( 1 , 3 , 3 , 1 ) , t . getRow ( 3 ) )
testCustomFormatSerialization ( ) { java . time . format . DateTimeFormatter formatter = java . time . format . DateTimeFormatter . ofPattern ( "dd/MM/uuuu" ) ; com . owlike . genson . Genson genson = createFormatterGenson ( formatter , java . time . LocalDate . class ) ; java . time . LocalDate dt = java . time . Loca...
org . junit . Assert . assertEquals ( toJsonQuotedString ( formattedValue ) , genson . serialize ( dt ) )
shouldOnlyReturnTheFistHits ( ) { _session . addExpectation ( "no<sp>expected<sp>found" , "bundle" , "blah<sp>blah<sp>blah" , 5 ) ; _testDoc2 . setExpectedStatus ( true ) ; _session . addExpectation ( "expected<sp>is<sp>second" , "bundle" , _testDoc2 . getUrl ( ) , _testDoc2 . getDesiredAtLeastRank ( ) ) ; _session . a...
org . junit . Assert . assertEquals ( 3 , results . size ( ) )
testRefreshNull ( ) { com . j256 . ormlite . dao . BaseDaoImpl < com . j256 . ormlite . dao . Foo , java . lang . Integer > dao = new com . j256 . ormlite . dao . BaseDaoImpl < com . j256 . ormlite . dao . Foo , java . lang . Integer > ( connectionSource , com . j256 . ormlite . dao . Foo . class ) { } ; dao . initiali...
org . junit . Assert . assertEquals ( 0 , dao . refresh ( null ) )
groupByEachWithTarget ( ) { org . eclipse . collections . api . set . ImmutableSet < java . lang . Integer > undertest = this . classUnderTest ( ) ; org . eclipse . collections . impl . block . function . NegativeIntervalFunction function = new org . eclipse . collections . impl . block . function . NegativeIntervalFun...
org . junit . Assert . assertEquals ( expected , actual )
testTestNonUniqueTitle ( ) { try { createRecipe ( "title2" ) . withDescription ( "description" ) ; createRecipe ( "title2" ) . withDescription ( "description" ) ; super . tearDown ( ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . Exception e ) { "<AssertPlaceHolder>" ; } } tearDown ( ) { endRecipe ( ) ; j...
org . junit . Assert . assertTrue ( true )
should_returnAll_SubPackageUnits ( ) { p . addGenerationUnit ( u ) ; ch . puzzle . itc . mobiliar . business . generator . control . extracted . templates . GenerationUnit u2 = new ch . puzzle . itc . mobiliar . business . generator . control . extracted . templates . GenerationUnit ( builder . resourceFor ( EntityBuil...
org . junit . Assert . assertEquals ( 2 , p . getSubGenerationUnitsAsList ( ) . size ( ) )
testSetNeighborState ( ) { isisNeighbor . setNeighborState ( IsisInterfaceState . DOWN ) ; isisInterfaceState = isisNeighbor . neighborState ( ) ; "<AssertPlaceHolder>" ; } is ( java . lang . Class ) { return true ; }
org . junit . Assert . assertThat ( isisInterfaceState , org . hamcrest . CoreMatchers . is ( IsisInterfaceState . DOWN ) )
testExpressionLineageValues ( ) { final org . apache . calcite . rel . RelNode rel = convertSql ( "select<sp>*<sp>from<sp>(values<sp>(1),<sp>(2))<sp>as<sp>t(c)" ) ; final org . apache . calcite . rel . metadata . RelMetadataQuery mq = org . apache . calcite . rel . metadata . RelMetadataQuery . instance ( ) ; final org...
org . junit . Assert . assertNull ( r )
shouldReturnEmptyStringForMenuCategoryIfGetTranslationEqualToKey ( ) { org . mockito . Mockito . when ( translationService . translate ( com . qcadoo . view . api . TranslationUtilsServiceTest . MENU_CATEGORY_DESC_KEY , locale ) ) . thenReturn ( com . qcadoo . view . api . TranslationUtilsServiceTest . MENU_CATEGORY_DE...
org . junit . Assert . assertTrue ( translation . isEmpty ( ) )
marketplaceChanged ( ) { model . setSelectedMarketplace ( "mp" ) ; doReturn ( new org . oscm . internal . components . response . Response ( ) ) . when ( tcMgmServ ) . loadTrackingCodeForMarketplace ( anyString ( ) ) ; java . lang . String result = controller . marketplaceChanged ( ) ; "<AssertPlaceHolder>" ; verify ( ...
org . junit . Assert . assertEquals ( "" , result )
testInitialSize ( ) { tl . lin . data . array . ArrayListOfFloats a = new tl . lin . data . array . ArrayListOfFloats ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return n ; }
org . junit . Assert . assertEquals ( 0 , a . size ( ) )
testAnonymous_VERBOSE_IllegelPort ( ) { try { when ( mockFTPClient . login ( "anonymous" , "" ) ) . thenReturn ( true ) ; when ( mockFTPClient . logout ( ) ) . thenReturn ( true ) ; when ( mockFTPClient . isConnected ( ) ) . thenReturn ( false ) ; when ( mockFTPClient . getReplyCode ( ) ) . thenReturn ( 200 ) ; } catch...
org . junit . Assert . assertTrue ( success )
testUDPSessionNotConsidered ( ) { com . att . aro . core . packetanalysis . pojo . Session session1 = mock ( com . att . aro . core . packetanalysis . pojo . Session . class ) ; com . att . aro . core . packetanalysis . pojo . Session session2 = mock ( com . att . aro . core . packetanalysis . pojo . Session . class ) ...
org . junit . Assert . assertEquals ( 1 , httpsUsageEntries . size ( ) )
testGetMissingKeyWithDefault ( ) { final java . lang . String result = conf . getString ( "test.imaginarykey" , "bob" ) ; "<AssertPlaceHolder>" ; } getString ( java . lang . String , java . lang . String ) { return this . getCurrentConfig ( ) . getString ( key , defaultValue ) ; }
org . junit . Assert . assertEquals ( "bob" , result )
switch_statement_string ( ) { java . lang . String day = "MONDAY" ; java . lang . String expression = null ; switch ( day ) { case "SUNDAY" : case "SATURDAY" : expression = "This<sp>is<sp>a<sp>weekend<sp>day" ; break ; case "MONDAY" : case "TUESDAY" : case "WEDNESDAY" : case "THURSDAY" : case "FRIDAY" : expression = "T...
org . junit . Assert . assertEquals ( "This<sp>is<sp>a<sp>weekday" , expression )
query_recursive_01 ( ) { java . lang . String query = ( "SELECT<sp>*<sp>WHERE<sp>{<sp>SERVICE<sp><" + ( org . apache . jena . fuseki . ServerCtl . serviceQuery ( ) ) ) + "><sp>{<sp>?s<sp>?p<sp>?o<sp>.<sp>BIND(?o<sp>AS<sp>?x)<sp>}<sp>}" ; try ( org . apache . jena . fuseki . QueryExecution qExec = org . apache . jena . ...
org . junit . Assert . assertNotNull ( b . get ( x ) )
testIncrementRowCountConcurrently ( ) { final long amount = 13 ; final int concurrency = 8 ; final long expectedRowCount = amount * concurrency ; integrationtests . ITUtils . startProxyActionConcurrently ( concurrency , ITUtils . openTable , new integrationtests . rowcount . RowCountOperationsIT . IncrementRowCount ( a...
org . junit . Assert . assertEquals ( expectedRowCount , proxy . getRowCount ( ) )
testResizing ( ) { com . dremio . exec . util . ArrayWrappedIntIntMap map = new com . dremio . exec . util . ArrayWrappedIntIntMap ( ) ; int [ ] expectedValues = new int [ ] { 1 , 32 , 64 , 150 , 256 , 4000 } ; for ( int i = 0 ; i < ( expectedValues . length ) ; i ++ ) { map . put ( expectedValues [ i ] , expectedValue...
org . junit . Assert . assertEquals ( expectedValues [ i ] , map . get ( expectedValues [ i ] ) )
AssertionSamlAuthzDecisionStatementEvidenceAssertionAccessConsentFromAssertionToXacml ( ) { gov . hhs . fha . nhinc . common . nhinccommon . AssertionType assertion = createTestAssertion ( ) ; java . lang . String sourceValue = assertion . getSamlAuthzDecisionStatement ( ) . getEvidence ( ) . getAssertion ( ) . getAcce...
org . junit . Assert . assertFalse ( sourceValue . isEmpty ( ) )
shouldValidateOperationWhenViewContainsElementsWithReservedPropertyNames ( ) { final uk . gov . gchq . gaffer . operation . Operation op = new uk . gov . gchq . gaffer . spark . operation . graphframe . GetGraphFrameOfElements . Builder ( ) . view ( new uk . gov . gchq . gaffer . data . elementdefinition . view . View ...
org . junit . Assert . assertTrue ( validationResult . isValid ( ) )
testCWLSourceFileSortOrder ( ) { java . util . SortedSet < io . dockstore . webservice . core . SourceFile > files = new java . util . TreeSet ( ) ; createAndAddFile ( files , "foo2.cwl" , "/foo2.cwl" ) ; createAndAddFile ( files , "foo.cwl" , "/foo.cwl" ) ; createAndAddFile ( files , "/Dockstore.cwl" , "/Dockstore.cwl...
org . junit . Assert . assertEquals ( "/Dockstore.cwl" , files . iterator ( ) . next ( ) . getPath ( ) )
nullIsNotValid ( ) { "<AssertPlaceHolder>" ; } isValid ( java . lang . String ) { return ( ( bic != null ) && ( fr . marcwrobel . jbanking . bic . Bic . isWellFormatted ( bic ) ) ) && ( fr . marcwrobel . jbanking . bic . Bic . hasKnownCountryCode ( bic ) ) ; }
org . junit . Assert . assertFalse ( fr . marcwrobel . jbanking . bic . Bic . isValid ( null ) )
convert_when_mapMessage_has_JMSType ( ) { java . lang . String jmsType = "TestJMSType" ; javax . jms . MapMessage message = new org . apache . activemq . command . ActiveMQMapMessage ( ) ; message . setJMSType ( jmsType ) ; javax . jms . MapMessage result = uut . convert ( message ) ; "<AssertPlaceHolder>" ; } getJMSTy...
org . junit . Assert . assertEquals ( jmsType , result . getJMSType ( ) )
shouldReadQueueWithNonDefaultRollCycleWhenMetadataDeleted ( ) { if ( net . openhft . chronicle . core . OS . isWindows ( ) ) return ; java . nio . file . Path path = net . openhft . chronicle . queue . reader . DirectoryUtils . tempDir ( "shouldReadQueueWithNonDefaultRollCycle" ) . toPath ( ) ; path . toFile ( ) . mkdi...
org . junit . Assert . assertFalse ( capturedOutput . isEmpty ( ) )
testAssignValue ( ) { org . pm4j . common . expr . PathExpressionChain . parse ( "child.i" ) . setValue ( oneLevelBean , 3 ) ; "<AssertPlaceHolder>" ; } setValue ( org . pm4j . core . pm . PmAttr , T ) { org . pm4j . tools . test . PmAssert . assertEnabled ( attr ) ; attr . setValue ( value ) ; org . pm4j . tools . tes...
org . junit . Assert . assertEquals ( 3 , oneLevelBean . child . i )
testAllSlotsAvailableForSchedulingWithOneOffer ( ) { java . util . List < org . apache . storm . scheduler . WorkerSlot > workerSlotsAvailableForScheduling ; offer = storm . mesos . TestUtils . buildOfferWithPorts ( "offer1" , "host-without-supervisor.example.org" , ( ( 20 * ( storm . mesos . util . MesosCommon . DEFAU...
org . junit . Assert . assertEquals ( 10 , workerSlotsAvailableForScheduling . size ( ) )
testDelete ( ) { K key = keyFactory . instance ( ) ; HK key1 = hashKeyFactory . instance ( ) ; HV val1 = hashValueFactory . instance ( ) ; HK key2 = hashKeyFactory . instance ( ) ; HV val2 = hashValueFactory . instance ( ) ; hashOps . put ( key , key1 , val1 ) ; hashOps . put ( key , key2 , val2 ) ; hashOps . delete ( ...
org . junit . Assert . assertTrue ( hashOps . keys ( key ) . isEmpty ( ) )
testSortD ( ) { System . out . println ( "sort" ) ; java . util . Random rand = jsat . utils . random . RandomUtil . getRandom ( ) ; for ( int size = 2 ; size < 10000 ; size *= 2 ) { double [ ] x = new double [ size ] ; for ( int i = 0 ; i < ( x . length ) ; i ++ ) if ( ( rand . nextInt ( 10 ) ) == 0 ) x [ i ] = rand ....
org . junit . Assert . assertTrue ( ( ( x [ i ] ) <= ( x [ ( i + 1 ) ] ) ) )
testTooManyParams ( ) { org . databene . contiperf . WaitTimer timer = org . databene . contiperf . timer . ConstantTimer . class . newInstance ( ) ; timer . init ( new double [ ] { 234 , 456 } ) ; for ( int i = 0 ; i < 1000 ; i ++ ) { "<AssertPlaceHolder>" ; } } getWaitTime ( ) { return ( min ) + ( random . nextInt ( ...
org . junit . Assert . assertEquals ( 234 , timer . getWaitTime ( ) )