input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
usedMemory ( ) { long size = 100 ; bufferStore . buffers = new com . cetsoft . imcache . offheap . bytebuffer . OffHeapByteBuffer [ ] { buffer } ; doReturn ( size ) . when ( buffer ) . usedMemory ( ) ; long actualSize = bufferStore . usedMemory ( ) ; "<AssertPlaceHolder>" ; } usedMemory ( ) { long usedMemory = 0 ; for ...
org . junit . Assert . assertEquals ( size , actualSize )
testHotReloadDocumentType ( ) { java . lang . String id = org . nuxeo . functionaltests . RestHelper . createDocument ( "/" , "HotReload" , "hot<sp>reload" , java . util . Collections . singletonMap ( "hr:content" , "some<sp>content" ) ) ; "<AssertPlaceHolder>" ; } createDocument ( org . nuxeo . ecm . core . api . Core...
org . junit . Assert . assertNotNull ( id )
insertEmployee ( ) { jpaworkshop . test . EmployeeTest . logger . info ( "insertEmployee" ) ; jpaworkshop . test . EmployeeTest . em . getTransaction ( ) . begin ( ) ; jpaworkshop . model . Employee emp = new jpaworkshop . model . Employee ( ) ; emp . setName ( "Peter<sp>Muster" ) ; emp . setSalary ( 90000 ) ; jpaworks...
org . junit . Assert . assertNotNull ( emp )
testJwsJwkPlainTextHMacHttpHeaders ( ) { java . lang . String address = ( "https://localhost:" + ( org . apache . cxf . systest . jaxrs . security . jose . jwejws . JAXRSJweJwsTest . PORT ) ) + "/jwsjwkhmacHttpHeaders" ; org . apache . cxf . systest . jaxrs . security . jose . BookStore bs = createJwsBookStore ( addres...
org . junit . Assert . assertEquals ( "book" , text )
resolveCallsTokenResolver ( ) { com . betfair . cougar . api . security . IdentityTokenResolver tokenResolver = mock ( com . betfair . cougar . api . security . IdentityTokenResolver . class ) ; when ( httpCommand . getIdentityTokenResolver ( ) ) . thenReturn ( tokenResolver ) ; java . util . List < com . betfair . cou...
org . junit . Assert . assertEquals ( tokens , builder . getIdentityTokens ( ) )
updateAppRuntimeTestV1 ( ) { final com . microsoft . azure . management . appservice . implementation . SiteInner siteInner = mock ( com . microsoft . azure . management . appservice . implementation . SiteInner . class ) ; doReturn ( "app" ) . when ( siteInner ) . kind ( ) ; final com . microsoft . azure . management ...
org . junit . Assert . assertSame ( update , handler . updateAppRuntime ( app ) )
testIOException ( ) { com . ibm . ws . logging . internal . impl . CountingOutputStream out = new com . ibm . ws . logging . internal . impl . CountingOutputStream ( new java . io . OutputStream ( ) { @ com . ibm . ws . logging . internal . impl . Override public void write ( int b ) throws java . io . IOException { th...
org . junit . Assert . assertEquals ( 0 , out . count ( ) )
shouldNotChangeCompleteFile ( ) { java . io . File commandFile = fr . xephi . authme . TestHelper . getJarFile ( ( ( fr . xephi . authme . TestHelper . PROJECT_ROOT ) + "settings/commandconfig/commands.complete.yml" ) ) ; ch . jalu . configme . resource . PropertyResource resource = new ch . jalu . configme . resource ...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . equalTo ( false ) )
testAdjacent ( ) { long v = 3347105714L ; java . util . HashSet < java . lang . Long > expected = new java . util . HashSet ( ) ; java . util . HashSet < java . lang . Long > actual = new java . util . HashSet ( ) ; expected . add ( 1026001234L ) ; expected . add ( 2291835223L ) ; for ( long neighbor : graph . adjacent...
org . junit . Assert . assertEquals ( expected , actual )
bug54570 ( ) { try ( org . apache . poi . xslf . usermodel . XMLSlideShow xml = openPPTX ( "bug54570.pptx" ) ; org . apache . poi . sl . extractor . SlideShowExtractor < org . apache . poi . xslf . usermodel . XSLFShape , org . apache . poi . xslf . usermodel . XSLFTextParagraph > extractor = new org . apache . poi . s...
org . junit . Assert . assertNotNull ( text )
testSetDataEmpty ( ) { rows . clear ( ) ; widget . setData ( rows ) ; verify ( view ) . setNoneDisplayStyle ( ) ; verify ( view ) . setAssignmentRows ( captor . capture ( ) ) ; "<AssertPlaceHolder>" ; verify ( view , never ( ) ) . getAssignmentWidget ( anyInt ( ) ) ; } getValue ( ) { return rootPath ; }
org . junit . Assert . assertEquals ( 0 , captor . getValue ( ) . size ( ) )
testEmpty ( ) { edu . cmu . graphchi . util . IntegerBuffer ib = new edu . cmu . graphchi . util . IntegerBuffer ( 10 ) ; "<AssertPlaceHolder>" ; } toIntArray ( ) { if ( ( idx ) == ( buffer . length ) ) return buffer ; else { int [ ] tmp = new int [ idx ] ; java . lang . System . arraycopy ( buffer , 0 , tmp , 0 , idx ...
org . junit . Assert . assertEquals ( 0 , ib . toIntArray ( ) . length )
whenReadUsingCharSource_thenRead ( ) { final java . lang . String expectedValue = "Hello<sp>world" ; final java . io . File file = new java . io . File ( "src/test/resources/test1.in" ) ; final com . google . common . io . CharSource source = com . google . common . io . Files . asCharSource ( file , Charsets . UTF_8 )...
org . junit . Assert . assertEquals ( expectedValue , result )
EsType_getIndexMissingException ( ) { org . powermock . api . mockito . PowerMockito . mockStatic ( com . fujitsu . dc . common . es . response . EsClientException . class ) ; com . fujitsu . dc . common . es . impl . EsTypeImpl esTypeObject = org . mockito . Mockito . spy ( new com . fujitsu . dc . common . es . impl ...
org . junit . Assert . assertNull ( result )
testCreate ( ) { com . gentics . mesh . core . rest . tag . TagFamilyCreateRequest request = new com . gentics . mesh . core . rest . tag . TagFamilyCreateRequest ( ) ; request . setName ( "newTagFamily" ) ; com . gentics . mesh . core . rest . tag . TagFamilyResponse response = call ( ( ) -> client ( ) . createTagFami...
org . junit . Assert . assertEquals ( request . getName ( ) , response . getName ( ) )
test ( ) { final org . opendaylight . yangtools . yang . model . api . Module bug3859 = org . opendaylight . yangtools . yang . stmt . TestUtils . findModule ( org . opendaylight . yangtools . yang . stmt . TestUtils . loadModules ( getClass ( ) . getResource ( "/bugs/bug3859" ) . toURI ( ) ) , "reference-in-unknown" )...
org . junit . Assert . assertNotNull ( bug3859 )
valueGeCol ( ) { com . foundationdb . sql . optimizer . plan . ConstantExpression value = constant ( "joe" ) ; com . foundationdb . sql . optimizer . plan . ConditionExpression compare = compare ( value , Comparison . GE , firstName ) ; com . foundationdb . sql . optimizer . rule . range . ColumnRanges expected = colum...
org . junit . Assert . assertEquals ( expected , com . foundationdb . sql . optimizer . rule . range . ColumnRanges . rangeAtNode ( compare ) )
shouldReturnPenaltyWaiveEnum ( ) { org . mifos . accounts . util . helpers . WaiveEnum result = org . mifos . accounts . util . helpers . WaiveEnum . fromInt ( 1 ) ; "<AssertPlaceHolder>" ; } fromInt ( java . lang . Integer ) { org . mifos . accounts . util . helpers . WaiveEnum waiveType = org . mifos . accounts . uti...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( WaiveEnum . PENALTY ) )
shouldNotModifyOriginalRequest ( ) { java . lang . String url = "http://ec-media.soundcloud.com/SdPniMt7cZzj.128.mp3?ff61182e3c2ecefa438cd02102d0e385713f0c1f" + ( ( "af3b0339595660fd0603ed1dd95c308fdf4dfe37b272d5fc302cd60875f62fda2557f961990ca6e770fdb81c291f729" + "2cb&AWSAccessKeyId=AKIAJBHW5FB4ERKUQUOQ&Expires=133796...
org . junit . Assert . assertThat ( r . toUrl ( ) , org . hamcrest . CoreMatchers . equalTo ( url ) )
testInsertRetrieveBigInteger ( ) { net . vz . mongodb . jackson . mock . MockObject object = new net . vz . mongodb . jackson . mock . MockObject ( ) ; object . bigInteger = java . math . BigInteger . valueOf ( 100 ) ; coll . insert ( object ) ; net . vz . mongodb . jackson . mock . MockObject result = coll . findOne (...
org . junit . Assert . assertEquals ( object . bigInteger , result . bigInteger )
testEntityMissingType ( ) { final org . apache . rya . indexing . entity . model . Entity entity1 = org . apache . rya . indexing . smarturi . duplication . DuplicateDataDetectorIT . createBobEntity ( ) ; final org . apache . rya . indexing . entity . model . Entity . Builder builder = new org . apache . rya . indexing...
org . junit . Assert . assertFalse ( areDuplicates )
testPreCreateShouldNotBeSuccessfulIfIndicesAreNotSameAtLength ( ) { org . apache . hadoop . hbase . client . HBaseAdmin admin = new org . apache . hadoop . hbase . client . HBaseAdmin ( org . apache . hadoop . hbase . index . coprocessor . master . TestIndexMasterObserver . UTIL . getConfiguration ( ) ) ; org . apache ...
org . junit . Assert . assertTrue ( returnVal )
testHedgedretryExecution ( ) { try ( org . spf4j . failsafe . concurrent . FailSafeExecutorImpl exec = new org . spf4j . failsafe . concurrent . FailSafeExecutorImpl ( org . spf4j . concurrent . DefaultExecutor . INSTANCE ) ) { java . util . concurrent . Future fut = exec . submit ( ( ) -> { org . spf4j . failsafe . co...
org . junit . Assert . assertNotNull ( fut . get ( ) )
shouldReturnTrueForUpperCaseCharAtZeroIndex ( ) { boolean start = edu . stanford . bmir . protege . web . shared . entity . EntityNameUtils . isWordStart ( "A" , 0 ) ; "<AssertPlaceHolder>" ; } isWordStart ( java . lang . String , int ) { checkNotNull ( entityName ) ; int length = entityName . length ( ) ; checkElement...
org . junit . Assert . assertEquals ( true , start )
testSizeOf ( ) { java . lang . String key = "test" ; com . github . pmerienne . trident . cf . testing . TestValue testValue1 = com . github . pmerienne . trident . cf . testing . TestValue . random ( ) ; com . github . pmerienne . trident . cf . testing . TestValue testValue2 = com . github . pmerienne . trident . cf ...
org . junit . Assert . assertEquals ( 3 , actualSize )
getPropertiesNotDefined ( ) { org . talend . esb . servicelocator . cxf . internal . CXFEndpointProvider epp = new org . talend . esb . servicelocator . cxf . internal . CXFEndpointProvider ( org . talend . esb . servicelocator . TestValues . SERVICE_QNAME_1 , org . talend . esb . servicelocator . TestValues . ENDPOINT...
org . junit . Assert . assertThat ( keys , org . hamcrest . Matchers . empty ( ) )
testDeleteAttrbiteOfAnnotatedQueryIsFalseByDefault ( ) { org . springframework . data . solr . repository . query . SolrQueryMethod method = getQueryMethodByName ( "findByAnnotatedQuery" , java . lang . String . class ) ; "<AssertPlaceHolder>" ; } isDeleteQuery ( ) { return ( hasQueryAnnotation ( ) ) && ( ( java . lang...
org . junit . Assert . assertFalse ( method . isDeleteQuery ( ) )
testCanonicalizeLeavesDigits ( ) { java . lang . String input = "Project#$%---<sp>Name99" ; java . lang . String expected = "project-name99" ; java . lang . String actual = com . ocpsoft . socialpm . util . Strings . canonicalize ( input ) ; "<AssertPlaceHolder>" ; } canonicalize ( java . lang . String ) { java . lang ...
org . junit . Assert . assertEquals ( expected , actual )
computeFactor_SmallUsageForMonth ( ) { long startTimeUsage = org . oscm . test . DateTimeHandling . calculateMillis ( "2012-01-31<sp>23:59:58" ) ; long endTimeUsage = org . oscm . test . DateTimeHandling . calculateMillis ( "2012-01-31<sp>23:59:59" ) ; org . oscm . billingservice . service . model . BillingInput billin...
org . junit . Assert . assertEquals ( 1 , factor , 0 )
formalChargeNegNeg ( ) { org . openscience . cdk . isomorphism . matchers . Expr actual = org . openscience . cdk . smarts . SmartsExprReadTest . getAtomExpr ( "[--]" ) ; org . openscience . cdk . isomorphism . matchers . Expr expected = org . openscience . cdk . smarts . SmartsExprReadTest . expr ( org . openscience ....
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( expected ) )
maxReducerReturnsNullInCaseOfEmptyList ( ) { io . datakernel . jmx . JmxReducerMin maxReducer = new io . datakernel . jmx . JmxReducerMin ( ) ; java . util . List < java . lang . Number > numbers = new java . util . ArrayList ( ) ; "<AssertPlaceHolder>" ; } reduce ( io . datakernel . functional . BiFunction ) { return ...
org . junit . Assert . assertNull ( maxReducer . reduce ( numbers ) )
testCheckPreFlightRequestTypeNoACRM ( ) { org . ebaysf . web . cors . MockHttpServletRequest request = new org . ebaysf . web . cors . MockHttpServletRequest ( ) ; request . setHeader ( CORSFilter . REQUEST_HEADER_ORIGIN , TestConfigs . HTTP_TOMCAT_APACHE_ORG ) ; request . setMethod ( "OPTIONS" ) ; org . ebaysf . web ....
org . junit . Assert . assertEquals ( CORSFilter . CORSRequestType . ACTUAL , requestType )
testEquals ( ) { org . o3project . odenos . core . component . network . flow . ofpflow . OFPFlowActionPushVlan obj = target ; boolean result = target . equals ( obj ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( obj == ( this ) ) { return true ; } if ( ! ( obj instanceof org . o3project . odenos ...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( true ) )
testEncodeWithFunc4 ( ) { java . lang . String toEncode = "ô" + "123" ; "2" "3" check digit 59 java . lang . String expected = ( ( ( ( ( ( ( ( com . google . zxing . oned . Code128WriterTestCase . QUIET_SPACE ) + ( com . google . zxing . oned . Code128WriterTestCase . START_CODE_B ) ) + ( com . google . zxing . oned . ...
org . junit . Assert . assertEquals ( expected , actual )
testLocale ( ) { locale . setLocale ( Locale . GERMANY ) ; "<AssertPlaceHolder>" ; } getLocale ( ) { return locale ; }
org . junit . Assert . assertEquals ( Locale . GERMANY , locale . getLocale ( ) )
testRewriteBasicPomWithCvs ( ) { java . util . List < org . apache . maven . project . MavenProject > reactorProjects = createReactorProjects ( "basic-pom-with-cvs" ) ; org . apache . maven . shared . release . config . ReleaseDescriptorBuilder builder = createDescriptorFromProjects ( reactorProjects , "basic-pom-with-...
org . junit . Assert . assertTrue ( comparePomFiles ( reactorProjects ) )
shouldEqualGivenSameContents ( ) { java . util . List < java . lang . String > values = java . util . Arrays . asList ( "One" , "Two" ) ; uk . co . webamoeba . mockito . collections . util . LinkedSortedSet < java . lang . String > set = new uk . co . webamoeba . mockito . collections . util . LinkedSortedSet < java . ...
org . junit . Assert . assertTrue ( equals )
func_reactive_followed_by ( ) { final java . lang . String rulebase = "rules/reloaded/func_fby.prova" ; java . util . Map < java . lang . String , java . lang . Object > globals = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; java . util . concurrent . atomic . AtomicInteger count = ne...
org . junit . Assert . assertEquals ( 3 , count . get ( ) )
testVerbosePrintNullLabelAndMap ( ) { final java . io . ByteArrayOutputStream out = new java . io . ByteArrayOutputStream ( ) ; final java . io . PrintStream outPrint = new java . io . PrintStream ( out ) ; outPrint . println ( "null" ) ; final java . lang . String EXPECTED_OUT = out . toString ( ) ; out . reset ( ) ; ...
org . junit . Assert . assertEquals ( EXPECTED_OUT , out . toString ( ) )
sameClassesAreEqual ( ) { java . lang . Object a = new java . lang . Object ( ) ; java . lang . Object b = new java . lang . Object ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertSame ( a . getClass ( ) , b . getClass ( ) )
testArray ( ) { java . lang . String [ ] expected = new java . lang . String [ ] { "test1" , "test2" } ; com . liferay . dynamic . data . mapping . form . evaluator . internal . function . DefaultDDMExpressionFieldAccessor ddmExpressionFieldAccessor = new com . liferay . dynamic . data . mapping . form . evaluator . in...
org . junit . Assert . assertEquals ( expected , result )
isInStrictOrderTest ( ) { java . util . List < java . lang . Integer > numbers = java . util . Arrays . asList ( 1 , 2 , 3 , 4 , 3 , 6 , 7 , 8 , 9 , 10 ) ; boolean isInAscendingOrder = com . google . common . collect . Comparators . isInOrder ( numbers , new com . baeldung . guava . tutorial . ComparatorsUnitTest . Asc...
org . junit . Assert . assertFalse ( isInAscendingOrder )
testEncodeDecodeHeaders ( ) { java . util . Map < java . lang . String , java . lang . String > headers = new java . util . HashMap ( ) ; io . netty . buffer . ByteBuf buf = io . netty . buffer . Unpooled . buffer ( ) ; headers . put ( "Hello" , "TChannel" ) ; headers . put ( "" , "" ) ; headers . put ( "" , "" ) ; com...
org . junit . Assert . assertEquals ( headers , newHeaders )
testDelegationTokenSecretManager ( ) { org . apache . hadoop . security . token . Token < org . apache . hadoop . hdfs . security . token . delegation . DelegationTokenIdentifier > token = generateDelegationToken ( "SomeUser" , "JobTracker" ) ; try { dtSecretManager . renewToken ( token , "FakeRenewer" ) ; org . junit ...
org . junit . Assert . assertTrue ( ( null != ( dtSecretManager . retrievePassword ( identifier ) ) ) )
testRelativize_scheme ( ) { java . lang . String base = toOSPathString ( "file:/home/eclipse/runtime-New_configuration/project_1/file.java" ) ; java . lang . String other = toOSPathString ( "file:/home/eclipse/runtime-New_configuration/project" ) ; java . lang . String expected = toOSPathString ( "../../project" ) ; ja...
org . junit . Assert . assertEquals ( expected , actual )
testOneSlice ( ) { final java . lang . String basename = "align-position-slices-1" ; buildAlignment ( basename ) ; { final edu . cornell . med . icb . goby . alignments . AlignmentReader reader = new edu . cornell . med . icb . goby . alignments . AlignmentReaderImpl ( org . apache . commons . io . FilenameUtils . conc...
org . junit . Assert . assertFalse ( reader . hasNext ( ) )
getMaxKmerWeight_should_be_largest_kmer_weights ( ) { au . edu . wehi . idsv . graph . BaseGraph g = G ( 4 ) . add ( "ATAC" , 1 ) . add ( "TACA" , 2 ) . add ( "ACAG" , 3 ) ; au . edu . wehi . idsv . graph . PathNode < au . edu . wehi . idsv . debruijn . DeBruijnNodeBase > n = new au . edu . wehi . idsv . graph . PathNo...
org . junit . Assert . assertEquals ( 3 , n . maxNodeWeight ( ) )
testGetList ( ) { org . talend . components . netsuite . client . model . TypeDesc typeDesc = clientService . getMetaDataSource ( ) . getTypeInfo ( "PurchaseOrder" ) ; org . talend . components . netsuite . client . model . TypeDesc refTypeDesc = clientService . getMetaDataSource ( ) . getTypeInfo ( "RecordRef" ) ; jav...
org . junit . Assert . assertTrue ( readResponses . isEmpty ( ) )
testDefaultIconSerializeDeserialize ( ) { org . traccar . web . shared . model . Device device = new org . traccar . web . shared . model . Device ( ) ; device . setIconType ( DeviceIconType . DEFAULT ) ; java . lang . String json = jackson . writeValueAsString ( device ) ; device = jackson . readValue ( json , org . t...
org . junit . Assert . assertEquals ( DeviceIconType . DEFAULT , device . getIconType ( ) )
testGetAppCommandStatsListByMinuteTime ( ) { "<AssertPlaceHolder>" ; long appId = 999 ; java . lang . String beginStr = new java . text . SimpleDateFormat ( "yyyyMMdd" ) . format ( new java . util . Date ( ) ) ; long begin = java . lang . Integer . parseInt ( ( beginStr + "0000" ) ) ; long end = java . lang . Integer ....
org . junit . Assert . assertNotNull ( appStatsCenter )
test_derive ( java . time . temporal . TemporalField , java . lang . Number , java . time . temporal . TemporalField , java . lang . Number , java . time . temporal . TemporalField , java . lang . Number , java . time . temporal . TemporalField , java . lang . Number , java . lang . Class , java . lang . Object ) { jav...
org . junit . Assert . assertEquals ( parsed . query ( LocalDate :: from ) , expectedVal )
testAddAll ( ) { java . util . List < java . lang . Object > source = new java . util . ArrayList < java . lang . Object > ( ) ; source . add ( "hello" ) ; source . add ( "world" ) ; source . add ( "!" ) ; java . util . List < java . lang . String > target = new java . util . ArrayList < java . lang . String > ( ) ; or...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( "hello" , "world" , "!" ) , target )
testIndexInJoins ( ) { try { methodWatcher . executeQuery ( java . lang . String . format ( ( ",T2<sp>--SPLICE-PROPERTIES<sp>index=T2_IX_B2_EXCL_DEFAULTS\n" 6 + ( ",T2<sp>--SPLICE-PROPERTIES<sp>index=T2_IX_C2_EXCL_NULL\n" + ",T2<sp>--SPLICE-PROPERTIES<sp>index=T2_IX_B2_EXCL_DEFAULTS\n" 7 ) ) ) ) ; org . junit . Assert ...
org . junit . Assert . assertEquals ( ",T2<sp>--SPLICE-PROPERTIES<sp>index=T2_IX_B2_EXCL_DEFAULTS\n" 1 , sqle . getMessage ( ) )
testErWoontNiemandOpHetAdres ( ) { org . mockito . Mockito . when ( persoonAdresRepository . isIemandIngeschrevenOpAdres ( org . mockito . Matchers . any ( nl . bzk . brp . model . operationeel . kern . PersoonAdresModel . class ) ) ) . thenReturn ( false ) ; final java . util . List < nl . bzk . brp . model . basis . ...
org . junit . Assert . assertEquals ( 0 , fouteObjecten . size ( ) )
searchLdapUsersOverLimit ( ) { addLdapOrganizationSetting ( ) ; cfg . setConfigurationSetting ( new org . oscm . domobjects . ConfigurationSetting ( org . oscm . internal . types . enumtypes . ConfigurationKey . LDAP_SEARCH_LIMIT , org . oscm . types . constants . Configuration . GLOBAL_CONTEXT , "1" ) ) ; boolean flag...
org . junit . Assert . assertFalse ( flag )
redo_removeRowAndUndoneAndRedo_rowIsRemoved ( ) { skipBrowser ( "Context<sp>click<sp>does<sp>not<sp>work<sp>with<sp>PhantomJS<sp>and<sp>Firefox" , Browser . PHANTOMJS , Browser . FIREFOX ) ; headerPage . createNewSpreadsheet ( ) ; final com . vaadin . addon . spreadsheet . elements . SpreadsheetElement spreadsheet = $ ...
org . junit . Assert . assertEquals ( "" , spreadsheet . getCellAt ( "A1" ) . getValue ( ) )
testFindNumericSequence ( ) { java . lang . String msg = "1234567890ABC" ; int count = org . krysalis . barcode4j . impl . pdf417 . PDF417HighLevelEncoder . determineConsecutiveDigitCount ( msg , 0 ) ; "<AssertPlaceHolder>" ; } determineConsecutiveDigitCount ( java . lang . String , int ) { int count = 0 ; final int le...
org . junit . Assert . assertEquals ( 10 , count )
testNativeOrder ( ) { com . graphhopper . util . BitUtil bitUtil = com . graphhopper . util . BitUtil . get ( java . nio . ByteOrder . nativeOrder ( ) ) ; long address = UnsafeDataAccess . UNSAFE . allocateMemory ( 8 ) ; long val = 123123123123L * 123L ; byte [ ] bytes = new byte [ 8 ] ; bitUtil . fromLong ( bytes , va...
org . junit . Assert . assertEquals ( val , tmp )
testMappingDisabled ( ) { configure ( resourceOptimizationEnabled , ( ( java . lang . Boolean ) ( false ) ) ) ; boolean enabled = org . richfaces . resource . ResourceLoadingOptimization . isEnabled ( ) ; "<AssertPlaceHolder>" ; } isEnabled ( ) { return org . richfaces . application . configuration . ConfigurationServi...
org . junit . Assert . assertFalse ( enabled )
shutdownNowIgnoreCanceledFuturesTest ( ) { org . threadly . concurrent . PrioritySchedulerTest . PrioritySchedulerServiceFactory factory = getPrioritySchedulerFactory ( ) ; try { org . threadly . concurrent . PriorityScheduler scheduler = factory . makePriorityScheduler ( 1 ) ; java . lang . Runnable nonCanceledRunnabl...
org . junit . Assert . assertEquals ( 1 , result . size ( ) )
testSame ( ) { org . openscience . cdk . tools . diff . tree . IDifference result = org . openscience . cdk . tools . diff . tree . BondOrderDifference . construct ( "Foo" , IBond . Order . SINGLE , IBond . Order . SINGLE ) ; "<AssertPlaceHolder>" ; } construct ( java . lang . String , org . openscience . cdk . interfa...
org . junit . Assert . assertNull ( result )
testInvalidOnMisconfiguredProperty ( ) { final org . apache . nifi . processors . standard . RouteOnAttribute proc = new org . apache . nifi . processors . standard . RouteOnAttribute ( ) ; final org . apache . nifi . util . MockProcessContext ctx = new org . apache . nifi . util . MockProcessContext ( proc ) ; final o...
org . junit . Assert . assertFalse ( validationResult . isValid ( ) )
whenUsingForkJoinPool_thenSumOfTreeElementsIsCalculatedCorrectly ( ) { com . baeldung . threadpool . TreeNode tree = new com . baeldung . threadpool . TreeNode ( 5 , new com . baeldung . threadpool . TreeNode ( 3 ) , new com . baeldung . threadpool . TreeNode ( 2 , new com . baeldung . threadpool . TreeNode ( 2 ) , new...
org . junit . Assert . assertEquals ( 20 , sum )
noResizingIfInvalidSize ( ) { java . lang . String askedPath = pathForOriginalImageSize ( org . silverpeas . core . io . file . ImageResizingProcessorIT . INVALID_SIZE ) ; java . lang . String actualPath = processor . processBefore ( askedPath , SilverpeasFileProcessor . ProcessingContext . GETTING ) ; "<AssertPlaceHol...
org . junit . Assert . assertThat ( actualPath , org . hamcrest . Matchers . is ( askedPath ) )
whenDefaults ( ) { final java . lang . Class < ? > cls = org . apache . isis . core . metamodel . facets . object . domainobjectlayout . DomainObjectLayoutFactoryTest . CustomerWithDefaults . class ; facetFactory . process ( new org . apache . isis . core . metamodel . facets . FacetFactory . ProcessClassContext ( cls ...
org . junit . Assert . assertNull ( facet )
equalsSelf ( ) { java . lang . Object instance = org . jsonschema2pojo . integration . ExcludedFromEqualsAndHashCodeIT . clazz . newInstance ( ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { return opMixin . equals ( o ) ; }
org . junit . Assert . assertThat ( instance . equals ( instance ) , org . hamcrest . core . Is . is ( true ) )
testClearArgs ( ) { final org . apache . oozie . fluentjob . api . action . DistcpActionBuilder builder = getBuilderInstance ( ) ; for ( final java . lang . String file : org . apache . oozie . fluentjob . api . action . TestDistcpActionBuilder . ARGS ) { builder . withArg ( file ) ; } builder . clearArgs ( ) ; final o...
org . junit . Assert . assertEquals ( 0 , argList . size ( ) )
pruneTest3 ( ) { java . util . List < org . hillview . test . dataset . IDataSet < java . lang . Integer > > list = java . util . Collections . emptyList ( ) ; org . hillview . dataset . ParallelDataSet < java . lang . Integer > pds = new org . hillview . dataset . ParallelDataSet < java . lang . Integer > ( list ) ; o...
org . junit . Assert . assertNull ( result )
testProduct ( ) { double [ ] [ ] m1 = new double [ ] [ ] { new double [ ] { 6.0 , 7.0 , 12.0 , 14.0 } , new double [ ] { 8.0 , 9.0 , 16.0 , 18.0 } } ; double [ ] [ ] m2 = new double [ ] [ ] { new double [ ] { 6.0 , 7.0 , 12.0 } , new double [ ] { 8.0 , 9.0 , 16.0 } , new double [ ] { 3.0 , - 2.0 , 4.0 } , new double [ ...
org . junit . Assert . assertTrue ( edu . cmu . tetrad . util . MatrixUtils . equals ( product , result ) )
testReciprocal ( ) { final net . imglib2 . type . numeric . integer . LongType in = new net . imglib2 . type . numeric . integer . LongType ( 1234567890 ) ; final net . imglib2 . type . numeric . real . DoubleType out = new net . imglib2 . type . numeric . real . DoubleType ( ) ; ops . run ( net . imagej . ops . math ....
org . junit . Assert . assertEquals ( out . get ( ) , ( 1.0 / 1234567890 ) , 0.0 )
testGet ( ) { java . lang . String key = "key" ; java . lang . String subkey = "subkey" ; com . github . pmerienne . trident . state . testing . TestValue expectedValue = com . github . pmerienne . trident . state . testing . TestValue . random ( ) ; this . state . put ( key , subkey , expectedValue ) ; com . github . ...
org . junit . Assert . assertEquals ( expectedValue , acualValue )
testBuildCS ( ) { java . lang . String code = "CS" ; org . hl7 . v3 . CS cs = new org . hl7 . v3 . CS ( ) ; gov . hhs . fha . nhinc . patientcorrelation . nhinc . parsers . PRPAIN201309UV . helpers . CSHelper helper = new gov . hhs . fha . nhinc . patientcorrelation . nhinc . parsers . PRPAIN201309UV . helpers . CSHelp...
org . junit . Assert . assertEquals ( cs . getCode ( ) , "CS" )
getReadyAgentCountOtherRegion ( ) { java . lang . String currRegion = config . getRegion ( ) ; int oriCount = getAvailableAgentCountBy ( currRegion ) ; saveAgent ( "_test_1" , currRegion , AgentControllerState . READY ) ; saveAgent ( "_test_2" , ( currRegion + "_owned_admin" ) , AgentControllerState . READY ) ; saveAge...
org . junit . Assert . assertThat ( newCount , org . hamcrest . Matchers . is ( ( oriCount + 2 ) ) )
testIdentity ( ) { java . util . function . Function < java . lang . String , java . lang . String > function1 = java . util . function . Function . identity ( ) ; java . util . function . Function < java . lang . Integer , java . lang . Integer > function2 = java . util . function . Function . identity ( ) ; "<AssertP...
org . junit . Assert . assertSame ( function1 , function2 )
simpleOTFTest ( ) { org . apache . apex . malhar . lib . appdata . schemas . DimensionalConfigurationSchema des = new org . apache . apex . malhar . lib . appdata . schemas . DimensionalConfigurationSchema ( org . apache . apex . malhar . lib . appdata . schemas . SchemaUtils . jarResourceFileToString ( "adsGenericEven...
org . junit . Assert . assertEquals ( 4 , des . getDimensionsDescriptorIDToAggregatorIDs ( ) . get ( 0 ) . size ( ) )
testStoreInteger ( ) { org . springframework . batch . item . ExecutionContext ec = new org . springframework . batch . item . ExecutionContext ( ) ; ec . put ( "intValue" , 343232 ) ; stepExecution . setExecutionContext ( ec ) ; contextDao . saveExecutionContext ( stepExecution ) ; org . springframework . batch . item...
org . junit . Assert . assertEquals ( ec , restoredEc )
testHasIndexHashKeyEqualCondition_WhenConditionCriteriaIsNonEqualityConditionOnAPropertyWhichIsNotAnIndexHashKeyButIsAHashKey ( ) { org . mockito . Mockito . when ( entityInformation . isGlobalIndexHashKeyProperty ( "name" ) ) . thenReturn ( false ) ; criteria . withPropertyBetween ( "name" , "some<sp>name" , "some<sp>...
org . junit . Assert . assertFalse ( hasIndexHashKeyEqualCondition )
shouldOmitPrefixLengthWhenNoFuzziness ( ) { com . couchbase . client . java . search . queries . TermQuery fts = com . couchbase . client . java . search . SearchQuery . term ( "salty" ) . boost ( 1.5 ) . field ( "field" ) . prefixLength ( 12 ) ; com . couchbase . client . java . search . SearchQuery query = new com . ...
org . junit . Assert . assertEquals ( expected , query . export ( ) )
testRecurrenceStartsMondayRepeatsMonday ( ) { java . util . Calendar calendar = java . util . Calendar . getInstance ( ) ; calendar . set ( Calendar . DAY_OF_WEEK , Calendar . MONDAY ) ; _calendarBooking . setStartTime ( calendar . getTimeInMillis ( ) ) ; _calendarBooking . setRecurrence ( "RRULE:FREQ=WEEKLY;COUNT=2;IN...
org . junit . Assert . assertEquals ( 2 , count )
circumflexTest ( ) { zemberek . core . turkish . TurkishAlphabet alphabet = TurkishAlphabet . INSTANCE ; java . lang . String iStr = "abc<sp>fg12" ; java . lang . String oStr = "abcaiuAU<sp>fg12" ; "<AssertPlaceHolder>" ; } normalizeCircumflex ( java . lang . String ) { if ( ! ( containsCircumflex ( s ) ) ) { return s ...
org . junit . Assert . assertEquals ( oStr , alphabet . normalizeCircumflex ( iStr ) )
test51998 ( ) { org . apache . poi . ss . usermodel . Workbook wb = org . apache . poi . xssf . XSSFTestDataSamples . openSampleWorkbook ( "51998.xlsx" ) ; java . util . Set < java . lang . String > sheetNames = new java . util . HashSet ( ) ; for ( int sheetNum = 0 ; sheetNum < ( wb . getNumberOfSheets ( ) ) ; sheetNu...
org . junit . Assert . assertNotNull ( wbBack )
twoTriplesWithTheSamePOAreNotEqual ( ) { com . ontology2 . bakemono . jena . WritableTriple croatianKey = new com . ontology2 . bakemono . jena . WritableTriple ( new com . hp . hpl . jena . graph . Triple ( com . hp . hpl . jena . graph . Node_URI . createURI ( "http://rdf.basekb.com/ns/m.0tc7" ) , com . hp . hpl . je...
org . junit . Assert . assertFalse ( ( 0 == ( croatianKey . compareTo ( polishKey ) ) ) )
testListProvisioners ( ) { execute ( Constants . LIST_PROVISIONERS_COMMAND ) ; java . util . Set < co . cask . coopr . provisioner . Provisioner > resultSet = getSetFromOutput ( new com . google . gson . reflect . TypeToken < java . util . Set < co . cask . coopr . provisioner . Provisioner > > ( ) { } . getType ( ) ) ...
org . junit . Assert . assertEquals ( expectedSet , resultSet )
testShowExecutionPlan ( ) { try { java . lang . String [ ] parameters = new java . lang . String [ ] { "-e" , eu . stratosphere . client . CliFrontendTestUtils . getTestJarPath ( ) } ; eu . stratosphere . client . CliFrontendInfoTest . InfoTestCliFrontend testFrontend = new eu . stratosphere . client . CliFrontendInfoT...
org . junit . Assert . assertTrue ( ( retCode == 0 ) )
shouldNotFindRelativePositionOfFirstAfterSecond ( ) { java . util . List < com . adobe . acs . commons . wcm . comparisons . impl . lines . StepperTest . Step > steps = newArrayList ( com . adobe . acs . commons . wcm . comparisons . impl . lines . StepperTest . Step . step ( "1" ) , com . adobe . acs . commons . wcm ....
org . junit . Assert . assertThat ( position , org . hamcrest . CoreMatchers . is ( ( - 1 ) ) )
testGetChannel ( ) { System . out . println ( "getChannel" ) ; java . nio . channels . DatagramChannel result = ( ( java . nio . channels . DatagramChannel ) ( instance . getChannel ( ) ) ) ; "<AssertPlaceHolder>" ; } getChannel ( ) { java . nio . channels . DatagramChannel c ; if ( isWaitResponse ( ) ) { c = kg . apc ...
org . junit . Assert . assertNotNull ( result )
testConvertBlank ( ) { java . lang . Long result = underTest . convert ( "<sp>" ) ; "<AssertPlaceHolder>" ; } convert ( java . lang . String ) { if ( "S" . equalsIgnoreCase ( value ) ) { return Size . TINY ; } else if ( "M" . equalsIgnoreCase ( value ) ) { return Size . NORMAL ; } else if ( "L" . equalsIgnoreCase ( val...
org . junit . Assert . assertNull ( result )
findBrowser ( ) { org . eclipse . swtbot . swt . finder . widgets . SWTBotBrowser browser = bot . browser ( ) ; "<AssertPlaceHolder>" ; } browser ( ) { return browser ( 0 ) ; }
org . junit . Assert . assertNotNull ( browser )
getRealm ( ) { com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . security . wim . adapter . ldap . fat . URAPIs_CustomLDAPTest . c , "getRealm" , "Checking<sp>expected<sp>realm" ) ; "<AssertPlaceHolder>" ; } getRealm ( ) { com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . s...
org . junit . Assert . assertEquals ( "SampleLdapCustomRealm" , com . ibm . ws . security . wim . adapter . ldap . fat . URAPIs_CustomLDAPTest . servlet . getRealm ( ) )
testHandleMessagesWhenMessageNotMIME ( ) { javax . mail . Message [ ] msgs = new javax . mail . Message [ ] { messageNotMIme } ; int result ; when ( properties . getProperty ( "connect.delete.unhandled.msgs" ) ) . thenReturn ( "false" ) ; when ( properties . getProperty ( "connect.max.msgs.in.batch" , "25" ) ) . thenRe...
org . junit . Assert . assertEquals ( result , 0 )
testFloat ( ) { int x = 10 ; float theValue ; if ( x > 10 ) { theValue = - 10 ; } else { theValue = - 20 ; } "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( ( - 20 ) , theValue , 0 )
testBalancerLifecycle2 ( ) { configure ( ) ; "<AssertPlaceHolder>" ; clients . close ( ) ; await ( TestRMILoadBalancerFactory :: areClientBalancersClosed ) ; } areClientBalancersClosed ( ) { return com . devexperts . rmi . test . routing . TestRMILoadBalancerFactory . areBalancersClosed ( true ) ; }
org . junit . Assert . assertFalse ( com . devexperts . rmi . test . routing . TestRMILoadBalancerFactory . areClientBalancersClosed ( ) )
testGetParametersWithDefaultEntityAndDisabledStatus ( ) { unit . setActive ( false ) ; org . lnu . is . domain . language . Language entity = new org . lnu . is . domain . language . Language ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashMap < java . lang . Str...
org . junit . Assert . assertEquals ( expected , actual )
testGetArrowIndexKONull ( ) { "<AssertPlaceHolder>" ; } getArrowIndex ( net . sf . latexdraw . model . api . shape . Arrow ) { return firstIArrowable ( ) . map ( ( sh ) -> sh . getArrowIndex ( arrow ) ) . orElse ( ( - 1 ) ) ; }
org . junit . Assert . assertEquals ( ( - 1 ) , group . getArrowIndex ( null ) )
testAddingDestinationResources ( ) { final java . lang . String resourceName = "JMSDestination" + ( generateRandomString ( ) ) ; final java . lang . String description = "JMSDestination" 1 + resourceName ; org . glassfish . admingui . devtests . StandaloneTest standaloneTest = new org . glassfish . admingui . devtests ...
org . junit . Assert . assertTrue ( ( ( isTextPresent ( resourceName ) ) && ( isTextPresent ( description ) ) ) )
testEditDistance_RecursiveImplementation ( ) { "<AssertPlaceHolder>" ; } calculate ( java . lang . String , java . lang . String ) { if ( x . isEmpty ( ) ) { return y . length ( ) ; } if ( y . isEmpty ( ) ) { return x . length ( ) ; } int substitution = ( com . baeldung . algorithms . editdistance . EditDistanceRecursi...
org . junit . Assert . assertEquals ( result , com . baeldung . algorithms . editdistance . EditDistanceRecursive . calculate ( x , y ) )
testEncodeDecodePublicKey ( ) { com . trilead . ssh2 . signature . ED25519KeyAlgorithm testCase = new com . trilead . ssh2 . signature . ED25519KeyAlgorithm ( ) ; java . security . KeyPairGenerator factory = java . security . KeyPairGenerator . getInstance ( "EdDSA" , new net . i2p . crypto . eddsa . EdDSASecurityProvi...
org . junit . Assert . assertEquals ( publicKey , decoded )
testUnionAdjentIntersection ( ) { java . lang . String query = "Compute[@fqdns=\"slc4-0003.ebay.com\"]{*}." + ( ( "(<sp><VPool>parentCluster[@_oid=\"CLguf6sdle\"]<sp>" + "&&<sp>activeManifestRef[@_oid=\"B-N-D-1.20111108154904.0\"]" ) + "||<sp>activeManifestCur[@_oid=\"Black-Pearl-1.20111103221326.0\"])" ) ; com . ebay ...
org . junit . Assert . assertEquals ( 1 , result . getEntities ( ) . size ( ) )
nextDayShouldBeReturnedWhenNonExistingDayIsRequested3 ( ) { com . graphaware . module . timetree . domain . TimeInstant timeInstant ; org . neo4j . graphdb . Node next ; try ( org . neo4j . graphdb . Transaction tx = getDatabase ( ) . beginTx ( ) ) { timeTree . getOrCreateInstant ( com . graphaware . module . timetree ...
org . junit . Assert . assertEquals ( next , dayNode )
equals ( ) { final org . apache . rya . api . instance . RyaDetails . Builder builder = org . apache . rya . api . instance . RyaDetails . builder ( ) ; . setGeoIndexDetails ( new GeoIndexDetails ( true ) ) builder . setRyaInstanceName ( "test_instance" ) . setRyaVersion ( "1.2.3.4" ) . setEntityCentricIndexDetails ( n...
org . junit . Assert . assertEquals ( details1 , details2 )