input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testDecodeAdjacentSingletonFirst ( ) { java . util . List < java . lang . String > encoded = java . util . Arrays . asList ( opennlp . tools . namefind . BilouCodecTest . A_UNIT , opennlp . tools . namefind . BilouCodecTest . A_UNIT , opennlp . tools . namefind . BilouCodecTest . OTHER ) ; opennlp . tools . util . Span...
org . junit . Assert . assertArrayEquals ( expected , actual )
voided ( ) { io . trane . future . Future < java . lang . Void > future = io . trane . future . Future . value ( 1 ) . voided ( ) ; "<AssertPlaceHolder>" ; } get ( io . trane . future . Future ) { return future . get ( Duration . ZERO ) ; }
org . junit . Assert . assertNull ( get ( future ) )
builds_an_unchangeable_rekord ( ) { com . noodlesandwich . rekord . validation . ValidRekord < com . noodlesandwich . rekord . validation . Sandvich > sandvich = com . noodlesandwich . rekord . validation . ValidatingRekordTest . validatingSandvich . with ( Bread . Brown , Sandvich . bread ) . with ( Sandvich . filling...
org . junit . Assert . assertThat ( sandvich , org . hamcrest . Matchers . is ( com . noodlesandwich . rekord . validation . RekordMatchers . aRekordOf ( com . noodlesandwich . rekord . validation . Sandvich . class ) . with ( Sandvich . bread , Bread . Brown ) . with ( Sandvich . filling , Filling . Jam ) . with ( San...
mergeTextDecorationEmpyInputsTest ( ) { java . lang . String firstValue = "" ; java . lang . String secondValue = "" ; java . lang . String expected = "none" ; java . lang . String actual = com . itextpdf . styledxmlparser . css . resolve . CssPropertyMerger . mergeTextDecoration ( firstValue , secondValue ) ; "<Assert...
org . junit . Assert . assertEquals ( expected , actual )
isAccessExcluded ( ) { final java . lang . String appName = "applicationName" ; final java . lang . String moduleName = "moduleName" ; final java . lang . String uriName = "/test/index.html" ; final java . lang . String method = "GET" ; try { com . ibm . ws . security . authorization . jacc . internal . JaccServiceImpl...
org . junit . Assert . assertTrue ( jaccService . isAccessExcluded ( appName , moduleName , uriName , method , new java . lang . Object ( ) ) )
testAsSystemSpecificPath ( ) { java . lang . String urlPath = "c:\\workdir\\server-local\\instance\\tmp\\vfs\\deployment\\deploymentf7b5abe7c4c1cb56\\rules-with-kjar-1.0.jar-57cc270a5729d6b2\\rules-with-kjar-1.0.jar" ; java . lang . String specificPath = org . drools . core . util . IoUtils . asSystemSpecificPath ( url...
org . junit . Assert . assertEquals ( urlPath , specificPath )
shouldCorrectlyGeneralize ( ) { java . util . Set < com . graphaware . common . description . relationship . DetachedRelationshipDescription > toGeneralize = new java . util . HashSet ( ) ; toGeneralize . add ( literal ( "T1" , com . graphaware . module . relcount . compact . OUTGOING ) . with ( "k1" , equalTo ( "v1" )...
org . junit . Assert . assertEquals ( literal ( "T1" , com . graphaware . module . relcount . compact . OUTGOING ) . with ( "k1" , any ( ) ) , generalizer . generate ( ) )
testEquals_NullBar ( ) { com . sumzerotrading . data . BarData bar = new com . sumzerotrading . data . BarData ( ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) { return true ; } if ( obj == null ) { return false ; } if ( ( getClass ( ) ) != ( obj . getClass ( ) ) ) { return false...
org . junit . Assert . assertFalse ( bar . equals ( null ) )
testAcceptInValidParameter2 ( ) { final org . openspotlight . graph . query . console . ConsoleState state = new org . openspotlight . graph . query . console . ConsoleState ( null ) ; state . setInput ( "add<sp>help" ) ; "<AssertPlaceHolder>" ; } accept ( org . openspotlight . graph . query . console . ConsoleState ) ...
org . junit . Assert . assertThat ( command . accept ( state ) , org . hamcrest . core . Is . is ( false ) )
testContainerLogFile ( ) { java . io . File absLogDir = new java . io . File ( "target" , ( ( org . apache . hadoop . yarn . server . nodemanager . webapp . TestNMWebServer . class . getSimpleName ( ) ) + "LogDir" ) ) . getAbsoluteFile ( ) ; java . lang . String logdirwithFile = absLogDir . toURI ( ) . toString ( ) ; o...
org . junit . Assert . assertEquals ( containerLogFile . toURI ( ) . toString ( ) , file . toURI ( ) . toString ( ) )
testShortWithoutEqual ( ) { final java . lang . String [ ] args = new java . lang . String [ ] { "-fbar" } ; final org . apache . commons . cli . Options options = new org . apache . commons . cli . Options ( ) ; options . addOption ( org . apache . commons . cli . OptionBuilder . withLongOpt ( "foo" ) . hasArg ( ) . c...
org . junit . Assert . assertEquals ( "bar" , cl . getOptionValue ( "foo" ) )
injectIntoInt ( ) { com . gs . collections . api . set . ImmutableSet < java . lang . Integer > objects = this . newSetWith ( 1 , 2 , 3 ) ; int result = objects . injectInto ( 1 , AddFunction . INTEGER_TO_INT ) ; "<AssertPlaceHolder>" ; } injectInto ( double , com . gs . collections . api . block . function . primitive...
org . junit . Assert . assertEquals ( 7 , result )
shouldReturnTrueForEmptyStringSurroundedBySingleQuotes ( ) { boolean quoted = edu . stanford . bmir . protege . web . shared . entity . EntityNameUtils . isQuoted ( "''" ) ; "<AssertPlaceHolder>" ; } isQuoted ( java . lang . String ) { checkNotNull ( entityName ) ; return ( ( ( entityName . length ( ) ) >= 2 ) && ( ( e...
org . junit . Assert . assertEquals ( true , quoted )
setPhenotypeMappingWorks ( ) { org . xwiki . model . reference . DocumentReference mapping = new org . xwiki . model . reference . DocumentReference ( "xwiki" , "PhenoTips" , "Default<sp>phenotype<sp>mapping" ) ; this . component . setPhenotypeMapping ( mapping ) ; "<AssertPlaceHolder>" ; } getPhenotypeMapping ( ) { re...
org . junit . Assert . assertSame ( mapping , this . component . getPhenotypeMapping ( ) )
testApplicationDefinedHasPrecedence ( ) { final org . apache . flink . runtime . state . StateBackend appBackend = org . mockito . Mockito . mock ( org . apache . flink . runtime . state . StateBackend . class ) ; final org . apache . flink . configuration . Configuration config = new org . apache . flink . configurati...
org . junit . Assert . assertEquals ( appBackend , backend )
testNonLatinTableCreateFilter ( ) { java . lang . String [ ] sql = new java . lang . String [ ] { "create<sp>table<sp><sp>(<sp><sp>int,<sp><sp>text<sp>)" } ; java . util . List < com . zendesk . maxwell . row . RowMap > rows = getRowsForDDLTransaction ( sql , excludeTable ( "" ) ) ; "<AssertPlaceHolder>" ; } size ( ) {...
org . junit . Assert . assertEquals ( 0 , rows . size ( ) )
errorMessageDefaultsToProvidedIfRequestIsSucceeeded ( ) { java . lang . String expectedMessage = java . util . UUID . randomUUID ( ) . toString ( ) ; org . appenders . log4j2 . elasticsearch . jest . BufferedBulkResult result = createTestBufferedBulkResult ( false , null ) ; java . lang . String actualMessage = result ...
org . junit . Assert . assertEquals ( expectedMessage , actualMessage )
testExceptionRetry ( ) { javax . naming . InitialContext ctx = new javax . naming . InitialContext ( ) ; org . jboss . as . test . integration . ejb . timerservice . tx . retry . ExceptionRetryBean bean = ( ( org . jboss . as . test . integration . ejb . timerservice . tx . retry . ExceptionRetryBean ) ( ctx . lookup (...
org . junit . Assert . assertTrue ( org . jboss . as . test . integration . ejb . timerservice . tx . retry . ExceptionRetryBean . awaitTimerCall ( ) )
checkRegisteredNodeMouseDoubleClickHandlerNotOverHeader ( ) { final org . mockito . ArgumentCaptor < com . ait . lienzo . client . core . event . NodeMouseDoubleClickHandler > nodeMouseDoubleClickHandlerArgumentCaptor = org . mockito . ArgumentCaptor . forClass ( com . ait . lienzo . client . core . event . NodeMouseDo...
org . junit . Assert . assertNotNull ( nodeMouseDoubleClickHandler )
shouldReturnLastIndexBeforeOpenBrace ( ) { int position = edu . stanford . bmir . protege . web . shared . entity . EntityNameUtils . indexOfWordEnd ( "aa{a" , 0 ) ; "<AssertPlaceHolder>" ; } indexOfWordEnd ( java . lang . String , int ) { checkNotNull ( entityName ) ; checkElementIndex ( startIndex , entityName . leng...
org . junit . Assert . assertEquals ( 2 , position )
findReturnsNullWhenChildWithoutVersionAndParentWithoutVersion ( ) { when ( mavenProject . hasParent ( ) ) . thenReturn ( true ) ; when ( mavenProject . getParent ( ) ) . thenReturn ( parentMavenProject ) ; "<AssertPlaceHolder>" ; } find ( ) { org . apache . maven . artifact . versioning . ArtifactVersion childMavenVers...
org . junit . Assert . assertNull ( new org . codehaus . mojo . versions . RequiredMavenVersionFinder ( mavenProject ) . find ( ) )
testAll ( ) { final io . vlingo . cluster . model . attribute . AttributeSet set1 = attributeSetFixture ( "set1" ) ; final io . vlingo . cluster . model . attribute . AttributeSet set2 = attributeSetFixture ( "set2" ) ; final io . vlingo . cluster . model . attribute . AttributeSet set3 = attributeSetFixture ( "set3" )...
org . junit . Assert . assertEquals ( 3 , repository . all ( ) . size ( ) )
testKnotParserIteration ( ) { org . petitparser . parser . combinators . SettableParser parser1 = undefined ( ) ; parser1 . set ( parser1 ) ; org . petitparser . utils . Mirror mirror = org . petitparser . utils . Mirror . of ( parser1 ) ; java . util . List < org . petitparser . parser . Parser > parsers = mirror . st...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( parser1 ) , parsers )
justPath ( ) { org . apache . shindig . common . uri . UriBuilder builder = new org . apache . shindig . common . uri . UriBuilder ( ) . setPath ( "/shindig" ) ; "<AssertPlaceHolder>" ; } toString ( ) { return jsonString ; }
org . junit . Assert . assertEquals ( "/shindig" , builder . toString ( ) )
rejectRunnableTest ( ) { org . threadly . test . concurrent . TestableScheduler testableScheduler = new org . threadly . test . concurrent . TestableScheduler ( ) ; org . threadly . concurrent . wrapper . limiter . PrioritySchedulerServiceQueueLimitRejector queueRejector = new org . threadly . concurrent . wrapper . li...
org . junit . Assert . assertEquals ( org . threadly . concurrent . wrapper . limiter . TEST_QTY , testableScheduler . tick ( ) )
should_return_remote_unanchored ( ) { au . edu . wehi . idsv . SAMRecord r = withSequence ( "ACN" , Read ( 0 , 1 , "1M1D1M1S" ) ) [ 0 ] ; r . setAttribute ( "SA" , "polyA,10,+,2S1X,39,1" ) ; au . edu . wehi . idsv . SplitReadEvidence e = au . edu . wehi . idsv . SplitReadEvidence . create ( SES ( ) , r ) . get ( 0 ) ; ...
org . junit . Assert . assertNotNull ( e )
visitDocuments ( ) { org . xwiki . model . reference . DocumentReference alice = new org . xwiki . model . reference . DocumentReference ( "foo" , "Alice" , "WebHome" ) ; org . xwiki . model . reference . DocumentReference alicePrefs = new org . xwiki . model . reference . DocumentReference ( "WebPreferences" , alice ....
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( carolBio , aliceBio , bobBio , bob , bobPrefs , alice , alicePrefs ) , documentReferences )
testSchedulerNoOp ( ) { java . lang . Runnable runnable = mock ( net . bytebuddy . agent . builder . Runnable . class ) ; AgentBuilder . RedefinitionStrategy . ResubmissionScheduler . NoOp . INSTANCE . schedule ( runnable ) ; verifyZeroInteractions ( runnable ) ; "<AssertPlaceHolder>" ; } isAlive ( ) { return net . byt...
org . junit . Assert . assertThat ( AgentBuilder . RedefinitionStrategy . ResubmissionScheduler . NoOp . INSTANCE . isAlive ( ) , org . hamcrest . CoreMatchers . is ( false ) )
ignoring_A$ClassArray ( ) { com . m3 . scalaflavor4j . ExceptionControl . Catch < java . lang . String > ignore = ignoring ( com . m3 . scalaflavor4j . Exception . class ) ; java . lang . String result = ignore . apply ( new com . m3 . scalaflavor4j . F0 < java . lang . String > ( ) { public java . lang . String apply ...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( null ) ) )
reportsDeathDateBeforeEndOfTreatment ( ) { final java . util . List < com . hartwig . hmftools . common . ecrf . datamodel . ValidationFinding > findings = com . hartwig . hmftools . patientdb . validators . PatientValidator . validateDeathDate ( com . hartwig . hmftools . patientdb . validators . PatientValidatorTest ...
org . junit . Assert . assertEquals ( 1 , findings . size ( ) )
providesEmptyArray ( ) { "<AssertPlaceHolder>" ; } getBytes ( ) { return toByteArray ( this . inputStream ) ; }
org . junit . Assert . assertThat ( entity . getBytes ( ) . length , org . hamcrest . Matchers . is ( 0 ) )
testFrame0001 ( ) { final java . lang . Object frame = com . github . jsonldjava . utils . JsonUtils . fromInputStream ( getClass ( ) . getResourceAsStream ( "/custom/frame-0001-frame.jsonld" ) ) ; final java . lang . Object in = com . github . jsonldjava . utils . JsonUtils . fromInputStream ( getClass ( ) . getResour...
org . junit . Assert . assertEquals ( 2 , frame2 . size ( ) )
testExpandedNodeIdTwoByte ( ) { org . opcfoundation . ua . builtintypes . ExpandedNodeId data = new org . opcfoundation . ua . builtintypes . ExpandedNodeId ( null , 0 , 128 ) ; org . opcfoundation . ua . encoding . EncoderContext ctx = org . opcfoundation . ua . encoding . EncoderContext . getDefaultInstance ( ) ; jav...
org . junit . Assert . assertEquals ( data , actual )
containsRange_equals ( ) { org . eclipse . lsp4j . Range range = org . eclipse . lsp4j . test . util . RangesTest . newRange ( 0 , 0 , 1 , 3 ) ; "<AssertPlaceHolder>" ; } containsRange ( org . eclipse . lsp4j . Range , org . eclipse . lsp4j . Range ) { com . google . common . base . Preconditions . checkNotNull ( bigge...
org . junit . Assert . assertTrue ( org . eclipse . lsp4j . util . Ranges . containsRange ( range , range ) )
testHashCodeDeterministic ( ) { hw4 . hash . SimpleOomage so = hw4 . hash . SimpleOomage . randomSimpleOomage ( ) ; int hashCode = so . hashCode ( ) ; for ( int i = 0 ; i < 100 ; i += 1 ) { "<AssertPlaceHolder>" ; } } hashCode ( ) { int hashCode = 1 ; for ( int i = 0 ; i < ( length ( ) ) ; i += 1 ) { hashCode *= 31 ; }...
org . junit . Assert . assertEquals ( hashCode , so . hashCode ( ) )
getCommentReturnsV1TagsCommentIfV2TagDoesNotExist ( ) { com . mpatric . mp3agic . ID3v1 id3v1Tag = new com . mpatric . mp3agic . ID3WrapperTest . ID3v1TagForTesting ( ) ; id3v1Tag . setComment ( "V1<sp>Comment" ) ; com . mpatric . mp3agic . ID3Wrapper wrapper = new com . mpatric . mp3agic . ID3Wrapper ( id3v1Tag , null...
org . junit . Assert . assertEquals ( "V1<sp>Comment" , wrapper . getComment ( ) )
addNamedRenderer ( ) { com . itextpdf . svg . renderers . ISvgNodeRenderer expected = new com . itextpdf . svg . dummy . renderers . impl . DummySvgNodeRenderer ( ) ; java . lang . String dummyName = "dummy" ; this . context . addNamedObject ( dummyName , expected ) ; java . lang . Object actual = this . context . getN...
org . junit . Assert . assertEquals ( expected , actual )
putItemWithHashKeyAndRangeKeyWithoutItem ( ) { com . amazonaws . services . dynamodb . model . KeySchema schema = new com . amazonaws . services . dynamodb . model . KeySchema ( new com . amazonaws . services . dynamodb . model . KeySchemaElement ( ) . withAttributeName ( "id" ) . withAttributeType ( ScalarAttributeTyp...
org . junit . Assert . assertTrue ( false )
is_list_of_strings_sorted_case_insensitive_in_java_with_guava ( ) { java . util . List < java . lang . String > secConferenceEast = com . google . common . collect . Lists . newArrayList ( "alabama" , "Alabama" , "ALABAMA" ) ; boolean isSorted = com . google . common . collect . Ordering . from ( String . CASE_INSENSIT...
org . junit . Assert . assertTrue ( isSorted )
testExonicFivePrimeOma1 ( ) { final java . lang . String outPath = runJannovarOnVCFLine ( "/sv_header.vcf" , "1\t58946502\t.\tN\t<INS:ME>\t.\t.\tSVTYPE=INS;END=58946502" ) ; final java . lang . String expected = "1\t58946502\t.\tN\t<INS:ME>\t.\t.\tEND=58946502;" + ( "SVANN=insertion&3_prime_UTR_exon_variant&mobile_elem...
org . junit . Assert . assertEquals ( expected , actual )
testArmClusterAnalysis ( ) { com . hartwig . hmftools . svanalysis . analyser . SvTestHelper tester = new com . hartwig . hmftools . svanalysis . analyser . SvTestHelper ( ) ; tester . AllVariants . add ( com . hartwig . hmftools . svanalysis . analyser . SvTestHelper . createTestSv ( tester . nextVarId ( ) , "1" , "1"...
org . junit . Assert . assertEquals ( tester . getClusters ( ) . size ( ) , 1 )
shouldGetTopActivityClassName ( ) { createRunningTaskInfo ( ) . topActivity = new android . content . ComponentName ( com . navercorp . utilset . ui . ActivityUtilsTest . INSTALLED_PACKAGE , com . navercorp . utilset . ui . ActivityUtilsTest . TEST_ACTIVITY ) ; java . lang . String className = com . navercorp . utilset...
org . junit . Assert . assertThat ( className , org . hamcrest . CoreMatchers . is ( com . navercorp . utilset . ui . ActivityUtilsTest . TEST_ACTIVITY ) )
testDateNotBetween ( ) { java . util . Set < java . lang . String > datesBetween = jsonExtractor . getDatesBetween ( "2019-01-01" , "2017-01-13" ) ; "<AssertPlaceHolder>" ; } size ( ) { return map . size ( ) ; }
org . junit . Assert . assertEquals ( datesBetween . size ( ) , 0 )
testSearchCount ( ) { addStructure ( com . liferay . dynamic . data . mapping . service . test . DDMStructureServiceTest . _classNameId , com . liferay . portal . kernel . util . StringUtil . randomString ( ) ) ; addStructure ( com . liferay . dynamic . data . mapping . service . test . DDMStructureServiceTest . _class...
org . junit . Assert . assertEquals ( 3 , count )
testParseNoTag ( ) { java . util . Map < java . lang . String , java . lang . Long > data = sut2 . parse ( "888" ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String ) { java . lang . String [ ] stringArray = toParse . split ( org . eurekastreams . server . domain . CollectionFormat . DELIMITER ) ; java . util . ...
org . junit . Assert . assertNull ( data )
testTrashGrandparentBaseModelIsNotVisible ( ) { org . junit . Assume . assumeTrue ( ( ( this ) instanceof com . liferay . trash . test . util . WhenHasGrandParent ) ) ; org . junit . Assume . assumeTrue ( ( ( this ) instanceof com . liferay . trash . test . util . WhenIsAssetableBaseModel ) ) ; com . liferay . trash . ...
org . junit . Assert . assertFalse ( whenIsAssetableModel . isAssetEntryVisible ( baseModel , getAssetClassPK ( baseModel ) ) )
isAvailableType_A$String$Configuration_false ( ) { org . junithelper . core . meta . ClassMeta classMeta = new org . junithelper . core . meta . ClassMeta ( ) ; org . junithelper . core . extractor . AvailableTypeDetector target = new org . junithelper . core . extractor . AvailableTypeDetector ( classMeta ) ; java . l...
org . junit . Assert . assertEquals ( expected , actual )
testRemoveTagFromLiveDataObjectByDomain ( ) { java . lang . String testFileName = "testRemoveTagFromLiveDataObjectByDomain.txt" ; java . lang . String expectedTagName = "testRemoveTagFromLiveDataObjectByDomain" ; java . lang . String targetIrodsCollection = org . irods . jargon . usertagging . IRODSTaggingServiceTest ....
org . junit . Assert . assertEquals ( 0 , irodsTaggingService . getTagsOnDataObject ( targetIrodsDataObject ) . size ( ) )
decodeExtended ( ) { final java . io . ByteArrayInputStream stream = new java . io . ByteArrayInputStream ( extended ) ; final com . flagstone . transform . coder . SWFDecoder decoder = new com . flagstone . transform . coder . SWFDecoder ( stream ) ; fixture = new com . flagstone . transform . image . DefineJPEGImage ...
org . junit . Assert . assertNotNull ( fixture )
cacheTest ( ) { com . ebay . cloud . cms . utils . ExpirableCache < java . lang . String > cache = new com . ebay . cloud . cms . utils . ExpirableCache < java . lang . String > ( 100 , 60 ) ; for ( java . lang . String i : c ) { cache . putObject ( i , i ) ; } for ( java . lang . String i : c ) { java . lang . String ...
org . junit . Assert . assertTrue ( ( o == ( c [ java . lang . Integer . valueOf ( o ) ] ) ) )
PropertyTypeEdmDateTime ( ) { final java . lang . String time = ( "/Date(" + ( com . fujitsu . dc . core . utils . ODataUtils . DATETIME_MIN ) ) + ")/" ; org . json . simple . JSONObject body = new org . json . simple . JSONObject ( ) ; body . put ( "__id" , com . fujitsu . dc . test . jersey . box . odatacol . UserDat...
org . junit . Assert . assertTrue ( com . fujitsu . dc . core . utils . ODataUtils . validateDateTime ( getValue ) )
getHadoopShim ( ) { org . pentaho . hadoop . shim . spi . HadoopShim hadoopShim = new org . pentaho . hadoop . shim . spi . MockHadoopShim ( ) ; org . pentaho . hadoop . shim . HadoopConfiguration c = new org . pentaho . hadoop . shim . HadoopConfiguration ( org . apache . commons . vfs2 . VFS . getManager ( ) . resolv...
org . junit . Assert . assertEquals ( hadoopShim . getHadoopVersion ( ) , c . getHadoopShim ( ) . getHadoopVersion ( ) )
testCreateYieldsEqualsInstances_02 ( ) { org . eclipse . emf . common . util . URI doesNotExist = myProjectURI . trimSegments ( 1 ) . appendSegment ( "doesNotExist" ) ; org . eclipse . n4js . projectModel . IN4JSProject first = getN4JSCore ( ) . create ( doesNotExist ) ; org . eclipse . n4js . projectModel . IN4JSProje...
org . junit . Assert . assertEquals ( first , second )
getEditorByTitleRegexTest ( ) { org . eclipse . reddeer . eclipse . jdt . ui . packageview . PackageExplorerPart packageExplorer = new org . eclipse . reddeer . eclipse . jdt . ui . packageview . PackageExplorerPart ( ) ; packageExplorer . open ( ) ; packageExplorer . getProject ( org . eclipse . reddeer . workbench . ...
org . junit . Assert . assertNotNull ( editor )
getPatternName ( ) { pattern = new com . alibaba . citrus . turbine . auth . impl . AuthActionPattern ( "test" ) ; "<AssertPlaceHolder>" ; } getPatternName ( ) { return patternName ; }
org . junit . Assert . assertEquals ( "test" , pattern . getPatternName ( ) )
generateTitle ( ) { "<AssertPlaceHolder>" ; } generateTitle ( ) { org . junit . Assert . assertEquals ( "[][XPipe<sp>]" , decorator . generateTitle ( ) ) ; }
org . junit . Assert . assertEquals ( "[][XPipe<sp>]" , decorator . generateTitle ( ) )
testRestrictedEndpointWhenRelativePathEndsWithContainerId ( ) { final io . undertow . server . HttpServerExchange exchange = makeHttpServerExchange ( "/scanner" , "POST" ) ; final java . lang . String containerId = "containerId" ; final boolean isRestricted = restrictionPolicy . restrictedEndpoint ( exchange , containe...
org . junit . Assert . assertTrue ( isRestricted )
testGetAvgCharWidthUsesEstimationForUnknownStrings ( ) { float determined = org . eclipse . rap . rwt . internal . textsize . TextSizeUtil . getAvgCharWidth ( getFont ( ) ) ; float estimated = org . eclipse . rap . rwt . internal . textsize . TextSizeEstimation . getAvgCharWidth ( getFont ( ) ) ; "<AssertPlaceHolder>" ...
org . junit . Assert . assertEquals ( estimated , determined , 0 )
testDebugobject ( ) { redis1 . set ( key , value ) ; java . lang . String r = redis1 . debugobject ( key ) ; "<AssertPlaceHolder>" ; System . out . println ( java . lang . String . format ( "[CRAFT-ATOM-REDIS]<sp>(^_^)<sp><%s><sp>Case<sp>-><sp>test<sp>debugobject.<sp>" , io . craft . atom . test . CaseCounter . incr ( ...
org . junit . Assert . assertNotNull ( r )
annotationsShouldNotBeShownInXWiki10Syntax ( ) { getUtil ( ) . loginAsAdmin ( ) ; getUtil ( ) . deletePage ( getTestClassName ( ) , getTestMethodName ( ) ) ; org . xwiki . annotation . test . po . AnnotatableViewPage annotatableViewPage = new org . xwiki . annotation . test . po . AnnotatableViewPage ( getUtil ( ) . cr...
org . junit . Assert . assertTrue ( annotatableViewPage . checkIfAnnotationsAreDisabled ( ) )
testCompareToDiffSigns1 ( ) { byte [ ] aBytes = new byte [ ] { 12 , 56 , 100 , - 2 , - 76 , 89 , 45 , 91 , 3 , - 15 , 35 , 26 , 3 , 91 } ; byte [ ] bBytes = new byte [ ] { 10 , 20 , 30 , 40 , 50 , 60 , 70 , 10 , 20 , 30 } ; int aSign = 1 ; int bSign = - 1 ; java . math . BigInteger aNumber = new java . math . BigIntege...
org . junit . Assert . assertEquals ( 1 , aNumber . compareTo ( bNumber ) )
versionComparatorTest2 ( ) { int compare = VersionComparator . INSTANCE . compare ( "1.12.1" , "1.12.1c" ) ; "<AssertPlaceHolder>" ; } compare ( java . lang . String , java . lang . String ) { if ( version1 == version2 ) { return 0 ; } if ( ( version1 == null ) && ( version2 == null ) ) { return 0 ; } else if ( version...
org . junit . Assert . assertTrue ( ( compare < 0 ) )
cannotGet6App1 ( ) { final org . openqa . grid . internal . GridRegistry registry = org . openqa . grid . internal . DefaultGridRegistry . newInstance ( new org . openqa . grid . web . Hub ( new org . openqa . grid . internal . utils . configuration . GridHubConfiguration ( ) ) ) ; org . openqa . grid . internal . Remo...
org . junit . Assert . assertEquals ( 5 , count . get ( ) )
geenDatumIngang ( ) { final nl . bzk . algemeenbrp . dal . domein . brp . entity . ToegangBijhoudingsautorisatie toegang = new nl . bzk . algemeenbrp . dal . domein . brp . entity . ToegangBijhoudingsautorisatie ( new nl . bzk . algemeenbrp . dal . domein . brp . entity . PartijRol ( new nl . bzk . algemeenbrp . dal . ...
org . junit . Assert . assertEquals ( 1 , errorCount ( toegang ) )
clusterNewScalingRuleLimitTest ( ) { initData ( ) ; when ( mockScalingRuleService . getRule ( 1 ) ) . thenReturn ( rule ) ; when ( mockClusterService . getCluster ( 1 ) ) . thenReturn ( cluster ) ; when ( mockHealthMonitoringService . getClusterLoad ( machine , PeriodicAutoscalerItemProcessor . METRIC_NAMES , PeriodicA...
org . junit . Assert . assertNull ( job )
testSetOutboundPassthruMode ( ) { gov . hhs . fha . nhinc . configuration . jmx . PassthruMXBeanRegistry registry = gov . hhs . fha . nhinc . configuration . jmx . PassthruMXBeanRegistry . getInstance ( ) ; gov . hhs . fha . nhinc . configuration . IConfiguration . serviceEnum serviceName = gov . hhs . fha . nhinc . co...
org . junit . Assert . assertEquals ( true , passthru )
testGetTokenParameterTransformer ( ) { "<AssertPlaceHolder>" ; } getTokenParameterTransformer ( ) { return new org . togglz . spring . activation . TokenTransformer ( ) { @ org . togglz . spring . activation . Override public java . lang . String transform ( java . lang . String value ) { return value . toLowerCase ( )...
org . junit . Assert . assertNull ( strategy . getTokenParameterTransformer ( ) )
testGetVarName ( ) { System . out . println ( "getVarName" ) ; kg . apc . jmeter . modifiers . RawRequestSourcePreProcessor instance = new kg . apc . jmeter . modifiers . RawRequestSourcePreProcessor ( ) ; java . lang . String expResult = "" ; java . lang . String result = instance . getVarName ( ) ; "<AssertPlaceHolde...
org . junit . Assert . assertEquals ( expResult , result )
testDecimalArrayModification ( ) { org . apache . ignite . internal . binary . mutabletest . GridBinaryTestClasses . TestObjectAllTypes obj = new org . apache . ignite . internal . binary . mutabletest . GridBinaryTestClasses . TestObjectAllTypes ( ) ; obj . bdArr = new java . math . BigDecimal [ ] { new java . math . ...
org . junit . Assert . assertArrayEquals ( new java . math . BigDecimal [ ] { new java . math . BigDecimal ( 1000 ) , new java . math . BigDecimal ( 1000 ) , new java . math . BigDecimal ( 1000 ) } , res . bdArr )
testStoreWithFilterReturnsTrue ( ) { final java . nio . file . PathMatcher filter = org . mockito . Mockito . mock ( java . nio . file . PathMatcher . class ) ; org . mockito . Mockito . when ( entry . store ( org . mockito . Mockito . eq ( true ) , org . mockito . Mockito . same ( filter ) ) ) . thenReturn ( true ) ; ...
org . junit . Assert . assertThat ( entry . store ( filter ) , org . hamcrest . Matchers . equalTo ( true ) )
shouldMapCreatLB ( ) { org . openstack . atlas . service . domain . usage . entities . LoadBalancerHostUsage mappedUsage ; java . util . Calendar now = java . util . Calendar . getInstance ( ) ; org . openstack . atlas . service . domain . entities . LoadBalancerJoinVip jv = new org . openstack . atlas . service . doma...
org . junit . Assert . assertEquals ( 0 , mappedUsage . getTagsBitmask ( ) )
readFullFile ( ) { long length = ( ( alluxio . client . block . stream . GrpcDataReaderTest . CHUNK_SIZE ) * 1024 ) + ( ( alluxio . client . block . stream . GrpcDataReaderTest . CHUNK_SIZE ) / 3 ) ; try ( alluxio . client . block . stream . DataReader reader = create ( 0 , length ) ) { long checksum = setReadResponses...
org . junit . Assert . assertEquals ( checksum , checksumActual )
getPlotOptions_getAfterChartCreation_EmptyCollectionReturned ( ) { com . vaadin . addon . charts . Chart chart = new com . vaadin . addon . charts . Chart ( ) ; java . util . Collection < com . vaadin . addon . charts . model . AbstractPlotOptions > result = chart . getConfiguration ( ) . getPlotOptions ( ) ; "<AssertP...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testUpdateOrder ( ) { org . joice . common . dao . domain . BizPayOrder queryCon = new org . joice . common . dao . domain . BizPayOrder ( ) ; queryCon . setId ( 4L ) ; org . joice . common . dao . domain . BizPayOrder ret = payOrderService . getById ( queryCon ) ; ret . setGoodsDetail ( "mate10<sp>pro<sp>128g" ) ; pay...
org . junit . Assert . assertFalse ( updateRet )
verifyServiceBinding ( ) { org . nuxeo . runtime . management . counters . CounterManager cm = org . nuxeo . runtime . api . Framework . getLocalService ( org . nuxeo . runtime . management . counters . CounterManager . class ) ; "<AssertPlaceHolder>" ; } getLocalService ( java . lang . Class ) { return org . nuxeo . r...
org . junit . Assert . assertNotNull ( cm )
testBlob ( ) { org . lilyproject . client . LilyClient client = org . lilyproject . process . test . LilyClientTest . lilyProxy . getLilyServerProxy ( ) . getClient ( ) ; org . lilyproject . repository . api . Repository repository = client . getRepository ( ) ; java . lang . String NS = "org.lilyproject.client.test" ;...
org . junit . Assert . assertTrue ( ( ( blob . getValue ( ) ) != null ) )
testSimpleBindBadPrincipalAPassword ( ) { java . util . Hashtable < java . lang . String , java . lang . Object > env = new java . util . Hashtable < java . lang . String , java . lang . Object > ( ) ; env . put ( DirectoryService . JNDI_KEY , getService ( ) ) ; env . put ( Context . INITIAL_CONTEXT_FACTORY , org . apa...
org . junit . Assert . assertTrue ( true )
testEquals ( ) { org . calrissian . mango . criteria . domain . criteria . Criteria eq = new org . calrissian . mango . criteria . domain . criteria . NotEqualsCriteria ( "key1" , "val1" , naturalOrder ( ) , null ) ; org . calrissian . mango . domain . entity . EntityBuilder entity = org . calrissian . mango . domain ....
org . junit . Assert . assertFalse ( eq . test ( entity . build ( ) ) )
testDecodeAttachedFileNameWithSpaces ( ) { final java . lang . String fileName = "file<sp>Name" ; final java . lang . String message = getMailMessageSpy . decodeAttachedFileNames ( fileName ) ; "<AssertPlaceHolder>" ; } decodeAttachedFileNames ( java . lang . String ) { java . lang . StringBuilder sb = new java . lang ...
org . junit . Assert . assertEquals ( "file<sp>Name" , message )
testCustomRecordDelimiters ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; conf . set ( "textinputformat.record.delimiter" , "\t\n" ) ; conf . setInt ( "mapreduce.job.maps" , 1 ) ; org . apache . hadoop . fs . FileSystem localFs = org . apache . hadoop . ...
org . junit . Assert . assertEquals ( expected , readOutputFile ( conf ) )
persisteRecuperaTipo ( ) { br . ufg . inf . es . saep . sandbox . persistencia . ram . Atributo a = new br . ufg . inf . es . saep . sandbox . persistencia . ram . Atributo ( "a" , "atributo" , Atributo . REAL ) ; br . ufg . inf . es . saep . sandbox . persistencia . ram . Set < br . ufg . inf . es . saep . sandbox . p...
org . junit . Assert . assertEquals ( tipo , recuperado )
testGetRowCount ( ) { org . jfree . data . gantt . TaskSeriesCollection c = createCollection1 ( ) ; "<AssertPlaceHolder>" ; } getRowCount ( ) { return this . rows ; }
org . junit . Assert . assertEquals ( 2 , c . getRowCount ( ) )
test_successful_authorize_with_app_keys ( ) { final java . lang . String body = "<status>" + ( ( "<authorized>true</authorized>" + "<plan>Ultimate</plan>" ) + "</status>" ) ; context . checking ( new threescale . v3 . api . ServiceApiDriverTest . UrlWithParamsExpectations ( ) { { oneOf ( htmlServer ) . get ( withUrl ( ...
org . junit . Assert . assertTrue ( response . success ( ) )
testMissingBeforeSecond ( ) { System . out . println ( "binarySearch" ) ; int [ ] index = new int [ ] { 10 , 13 , 15 , 17 , 19 } ; int key = 11 ; int begin = 0 ; int end = 5 ; int expResult = - 2 ; int result = org . genemania . engine . matricks . Utils . myBinarySearch ( index , key , begin , end ) ; "<AssertPlaceHol...
org . junit . Assert . assertEquals ( expResult , result )
testisSelectionSameType_3 ( ) { org . talend . repository . model . RepositoryNode anaNode = createAnalysisNode ( "ana" , null , false ) ; org . talend . repository . model . RepositoryNode anaNode_deleted = createAnalysisNode ( "ana2" , null , true ) ; setParentNode ( anaNode , ERepositoryObjectType . TDQ_ANALYSIS_ELE...
org . junit . Assert . assertFalse ( flag )
testSerializeVOSubscriptionDetails ( ) { org . oscm . internal . vo . VOSubscriptionDetails voIn = new org . oscm . internal . vo . VOSubscriptionDetails ( ) ; voIn . setActivationDate ( org . oscm . domobjects . L_TIMESTAMP ) ; voIn . setCreationDate ( org . oscm . domobjects . L_TIMESTAMP ) ; voIn . setServiceAccessI...
org . junit . Assert . assertTrue ( result , ( ( result . length ( ) ) == 0 ) )
canEstimateRegressionParametersVariance ( ) { double [ ] [ ] variance = regression . estimateRegressionParametersVariance ( ) ; "<AssertPlaceHolder>" ; } getNumberOfRegressors ( ) { return ( x [ 0 ] . length ) + 1 ; }
org . junit . Assert . assertEquals ( getNumberOfRegressors ( ) , variance . length )
testFlushStackPush ( ) { com . impetus . kundera . persistence . context . PersistenceCache pc = new com . impetus . kundera . persistence . context . PersistenceCache ( ) ; fs . push ( new com . impetus . kundera . graph . Node ( "A" , new java . lang . Object ( ) . getClass ( ) , null , pc , "A" , null ) ) ; fs . pus...
org . junit . Assert . assertEquals ( 4 , fs . size ( ) )
testCharFetch ( ) { createSingleArtistDataSet ( ) ; org . apache . cayenne . query . SelectQuery query = new org . apache . cayenne . query . SelectQuery ( org . apache . cayenne . testdo . testmap . Artist . class ) ; org . apache . cayenne . testdo . testmap . Artist a = ( ( org . apache . cayenne . testdo . testmap ...
org . junit . Assert . assertEquals ( a . getArtistName ( ) . trim ( ) , a . getArtistName ( ) )
testSearchByType ( ) { int startIndex = 0 ; int pageSize = 10 ; org . codice . ddf . spatial . ogc . wfs . v2_0_0 . catalog . source . WfsSource source = getWfsSource ( org . codice . ddf . spatial . ogc . wfs . v2_0_0 . catalog . source . TestWfsSource . ONE_TEXT_PROPERTY_SCHEMA , org . codice . ddf . spatial . ogc . ...
org . junit . Assert . assertEquals ( ( ( org . codice . ddf . spatial . ogc . wfs . v2_0_0 . catalog . source . TestWfsSource . SAMPLE_FEATURE_NAME ) + "0" ) , queryType . getTypeNames ( ) . get ( 0 ) )
testGetLabelResource ( ) { System . out . println ( "getLabelResource" ) ; kg . apc . jmeter . vizualizers . ResponseTimesPercentilesGui instance = new kg . apc . jmeter . vizualizers . ResponseTimesPercentilesGui ( ) ; java . lang . String expResult = "ResponseTimesPercentilesGui" ; java . lang . String result = insta...
org . junit . Assert . assertEquals ( expResult , result )
testRoundTrip ( ) { org . apache . flume . sink . elasticsearch . ElasticSearchDynamicSerializer fixture = new org . apache . flume . sink . elasticsearch . ElasticSearchDynamicSerializer ( ) ; org . apache . flume . Context context = new org . apache . flume . Context ( ) ; fixture . configure ( context ) ; java . lan...
org . junit . Assert . assertEquals ( new java . lang . String ( expected . bytes ( ) . array ( ) ) , new java . lang . String ( actual . bytes ( ) . array ( ) ) )
testHandlePlan_DifferentThanLastMode ( ) { org . matsim . core . population . algorithms . ChooseRandomSingleLegMode algo = new org . matsim . core . population . algorithms . ChooseRandomSingleLegMode ( new java . lang . String [ ] { org . matsim . api . core . v01 . TransportMode . car , org . matsim . api . core . v...
org . junit . Assert . assertTrue ( ( ! ( oldMode . equals ( mode ) ) ) )
test_OK ( ) { final java . lang . String cfcSrc = "<cfcomponent<sp>output=\"false\">\r\n" + ( ( ( ( "<cffunction<sp>name=\"test\"<sp>output=\"false\">\r\n" + "\t<cfargument<sp>name=\"xyz\"<sp>default=\"\">\r\n" ) + "\t<cfset<sp>var<sp>xyz=123/>\r\n" ) + "</cffunction>\r\n" ) + "</cfcomponent>" ) ; com . cflint . api . ...
org . junit . Assert . assertEquals ( 0 , lintresult . getIssues ( ) . size ( ) )
shouldNotPollBelowFloor ( ) { com . couchbase . client . core . ClusterFacade cluster = mock ( com . couchbase . client . core . ClusterFacade . class ) ; com . couchbase . client . core . config . refresher . CarrierRefresher refresher = new com . couchbase . client . core . config . refresher . CarrierRefresher ( com...
org . junit . Assert . assertTrue ( ( good > bad ) )
shouldUpdateRelationshipWithLabelCountsWhenRemovingLabelAndDeletingRelationship ( ) { org . neo4j . graphdb . Node foo ; try ( org . neo4j . graphdb . Transaction tx = db . beginTx ( ) ) { foo = db . createNode ( label ( "Foo" ) ) ; org . neo4j . graphdb . Node bar = db . createNode ( label ( "Bar" ) ) ; foo . createRe...
org . junit . Assert . assertEquals ( ( before - 1 ) , after )
testFill3 ( ) { java . lang . String [ ] testArray = new java . lang . String [ 64 ] ; java . util . Arrays . fill ( testArray , "a" ) ; java . lang . String [ ] a1 = testArray . clone ( ) ; java . lang . String [ ] a2 = testArray . clone ( ) ; java . util . Arrays . fill ( a1 , 50 , 51 , null ) ; org . spf4j . base . ...
org . junit . Assert . assertArrayEquals ( a1 , a2 )
testGetFileCharset_GB2312 ( ) { java . io . File file = org . apache . commons . io . FileUtils . toFile ( CLASS . getResource ( "chinese-big5.srt" ) ) ; "<AssertPlaceHolder>" . isEqualTo ( net . pms . util . CHARSET_BIG5 ) ; } getFileCharsetName ( net . pms . util . File ) { if ( file == null ) { return null ; } com ....
org . junit . Assert . assertThat ( net . pms . util . FileUtil . getFileCharsetName ( file ) )
renderConfluencePage_asciiDocWithCautionContentAndTitle_returnsConfluencePageContentWithNoteMacroWithContentAndTitle ( ) { java . lang . String adocContent = "[CAUTION]\n" + ( ( ( ".Caution<sp>Title\n" + "====\n" ) + "Some<sp>caution.\n" ) + "<ac:rich-text-body><p>Some<sp>caution.</p></ac:rich-text-body>" 0 ) ; org . s...
org . junit . Assert . assertThat ( asciidocConfluencePage . content ( ) , org . hamcrest . Matchers . is ( expectedContent ) )
testGetPort ( ) { System . out . println ( "getPort" ) ; kg . apc . jmeter . samplers . AbstractIPSampler instance = new kg . apc . jmeter . samplers . AbstractIPSamplerTest . AbstractIPSamplerImpl ( ) ; java . lang . String expResult = "" ; java . lang . String result = instance . getPort ( ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertEquals ( expResult , result )