input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testJrobinRestore ( ) { org . opennms . netmgt . rrd . model . v1 . RRDv1 jrb = org . opennms . netmgt . rrd . model . RrdConvertUtils . dumpJrb ( new java . io . File ( "src/test/resources/tempA.jrb" ) ) ; java . io . File target = new java . io . File ( "target/tempA-converted.jrb" ) ; org . opennms . netmgt . rrd . ...
org . junit . Assert . assertTrue ( target . exists ( ) )
testMisspelledSoundAlike ( ) { net . ricecode . similarity . SimilarityStrategy s = new net . ricecode . similarity . JaroStrategy ( ) ; java . lang . String first = "Dixon" ; java . lang . String second = "Dicksonx" ; double expected = 0.767 ; double delta = 0.001 ; double actual = s . score ( first , second ) ; "<Ass...
org . junit . Assert . assertEquals ( expected , actual , delta )
putInformation ( ) { victim . putInformation ( "key" , "value" ) ; "<AssertPlaceHolder>" ; } getInformation ( java . lang . String ) { return org . apache . commons . lang3 . StringUtils . defaultString ( metadata . get ( key ) ) ; }
org . junit . Assert . assertEquals ( "value" , victim . getInformation ( "key" ) )
testIsWarnEnabled ( ) { org . jboss . logging . Logger mock = createStrictMock ( org . jboss . logging . Logger . class ) ; replay ( mock ) ; org . jboss . netty . logging . InternalLogger logger = new org . jboss . netty . logging . JBossLogger ( mock ) ; "<AssertPlaceHolder>" ; verify ( mock ) ; } isWarnEnabled ( ) {...
org . junit . Assert . assertTrue ( logger . isWarnEnabled ( ) )
testDateToTimestamp ( ) { com . dremio . dac . model . job . JobDataFragment data = testConvert ( "cast(l_commitdate<sp>as<sp>timestamp)<sp>as<sp>foo" , new com . dremio . dac . proto . model . dataset . FieldSimpleConvertToType ( DATETIME ) , "l_commitdate" , "cp.\"tpch/lineitem.parquet\"" ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertEquals ( com . dremio . dac . server . DATETIME , data . getColumn ( "foo" ) . getType ( ) )
testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereNoPrimaryKeysExist ( ) { long pk1 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; long pk2 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; java . util . Set < java . io . Serializable > primaryKeys = ne...
org . junit . Assert . assertTrue ( announcementsFlags . isEmpty ( ) )
setFetchCount ( ) { timeline . setFetchCount ( book . twju . chapter_2 . TimelineTest . NEW_FETCH_COUNT ) ; "<AssertPlaceHolder>" ; } getFetchCount ( ) { return fetchCount ; }
org . junit . Assert . assertEquals ( book . twju . chapter_2 . TimelineTest . NEW_FETCH_COUNT , timeline . getFetchCount ( ) )
testGEQ ( ) { tillerino . tillerinobot . predicates . NumericPropertyPredicate < tillerino . tillerinobot . predicates . TitleLength > build = builder . build ( "tl>=12" , null ) ; "<AssertPlaceHolder>" ; } build ( java . lang . String , tillerino . tillerinobot . lang . Language ) { if ( ! ( argument . toLowerCase ( )...
org . junit . Assert . assertEquals ( new tillerino . tillerinobot . predicates . NumericPropertyPredicate ( "tl>=12" , new tillerino . tillerinobot . predicates . TitleLength ( ) , 12 , true , Double . POSITIVE_INFINITY , true ) , build )
findFirstOfShouldThrowErrorOnEmptySearchCharacters ( ) { try { org . communitybridge . utility . StringUtilities . find_first_of ( "alphabet" , "" ) ; org . junit . Assert . fail ( "Should<sp>not<sp>search<sp>for<sp>an<sp>empty<sp>character<sp>list." ) ; } catch ( java . lang . IllegalArgumentException exception ) { "<...
org . junit . Assert . assertNotNull ( exception )
givenPdfWith2Fonts_extractFontsToFVFontList_thenListHasSameNumberOfFonts ( ) { org . apache . pdfbox . pdmodel . PDDocument doc = org . apache . pdfbox . pdmodel . PDDocument . load ( org . mabb . fontverter . TestUtils . readTestFile ( "pdf/brno30.pdf" ) ) ; org . mabb . fontverter . pdf . PdfFontExtractor extractor =...
org . junit . Assert . assertEquals ( 3 , fonts . size ( ) )
testTestSuccess ( ) { java . lang . String rootPath = java . lang . System . getProperty ( "java.io.tmpdir" , "/tmp" ) ; com . ewcms . publication . deploy . DeployOperatorable operator = new com . ewcms . publication . deploy . provider . DeployOperatorBaseTest . DeployOperatorBaseImpl . Builder ( ) . setPath ( rootPa...
org . junit . Assert . assertTrue ( operatorImpl . test ( ) )
testConsistentHashNUniqTooFew ( ) { int replicas = 100 ; com . cloudera . util . consistenthash . ConsistentHash < java . lang . String > hash = new com . cloudera . util . consistenthash . ConsistentHash < java . lang . String > ( replicas , java . util . Arrays . asList ( "single<sp>machine" ) ) ; java . lang . Strin...
org . junit . Assert . assertEquals ( 1 , set . size ( ) )
shouldFindUserByNameUsingNativeIndexAndNameAndSpElNameAndSpElIndex ( ) { executeUpdate ( "CREATE<sp>(m:User<sp>{name:'Michal'})" ) ; transactionTemplate . execute ( new org . springframework . transaction . support . TransactionCallbackWithoutResult ( ) { @ org . springframework . data . neo4j . queries . Override publ...
org . junit . Assert . assertEquals ( "Michal" , user . getName ( ) )
testLong ( ) { long st = java . lang . System . currentTimeMillis ( ) ; for ( long l = 0 ; l < ( Long . MAX_VALUE ) ; l ++ ) { org . fastcatsearch . common . io . BytesStreamOutput stream = new org . fastcatsearch . common . io . BytesStreamOutput ( 8 ) ; stream . writeLong ( l ) ; stream . close ( ) ; org . jboss . ne...
org . junit . Assert . assertEquals ( l , buffer . readLong ( ) )
testValue ( ) { final java . lang . String value = "somevalue" ; when ( selectMock . getValue ( ) ) . thenReturn ( value ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return select . getValue ( ) ; }
org . junit . Assert . assertEquals ( value , select . getValue ( ) )
testURLWithRepositories ( ) { java . net . URL u = new java . net . URL ( "artifact:org.rioproject/boot/4.0;http://www.rio-project.org/maven2" ) ; java . net . URLConnection connect = u . openConnection ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( connect )
testDeleteMediumCache ( ) { tracker = new org . apache . hadoop . tools . mapred . DeletedDirTracker ( 100 ) ; java . util . concurrent . atomic . AtomicInteger deletedFiles = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; java . util . concurrent . atomic . AtomicInteger deletedDirs = new java . util . ...
org . junit . Assert . assertEquals ( 0 , deletedFiles . get ( ) )
attributeProviderFactoryNewInstanceForEachRender ( ) { org . commonmark . test . AttributeProviderFactory factory = new org . commonmark . test . AttributeProviderFactory ( ) { @ org . commonmark . test . Override public org . commonmark . test . AttributeProvider create ( org . commonmark . test . AttributeProviderCon...
org . junit . Assert . assertEquals ( rendered , secondPass )
testGetEncodedParameter_returnsExactAsGivenInQueryString ( ) { final java . lang . String url = "url" ; final java . lang . String name = "name" ; java . lang . String encodedValue1 = com . onelogin . saml2 . test . NaiveUrlEncoder . encode ( "do<sp>not<sp>alter!" ) ; final java . lang . String queryString = ( name + "...
org . junit . Assert . assertThat ( request . getEncodedParameter ( name ) , org . hamcrest . CoreMatchers . equalTo ( encodedValue1 ) )
testPrivateConstructor ( ) { java . lang . reflect . Constructor < org . androidtransfuse . util . matcher . Matchers > privateConstructor = org . androidtransfuse . util . matcher . Matchers . class . getDeclaredConstructor ( ) ; privateConstructor . setAccessible ( true ) ; org . androidtransfuse . util . matcher . M...
org . junit . Assert . assertNotNull ( matchers )
testSortWorkGroupsWithWorkSummariesWithDifferentTitles ( ) { java . util . List < org . orcid . jaxb . model . record . summary_v2 . WorkGroup > groups = getWorkGroupsWithSummariesWithOrderedTitles ( ) ; java . util . Collections . shuffle ( groups ) ; groups . sort ( WorkComparators . GROUP ) ; java . lang . String lo...
org . junit . Assert . assertTrue ( ( ( java . lang . Integer . valueOf ( lowestTitle . compareTo ( summary . getTitle ( ) . getTitle ( ) . getContent ( ) ) ) ) < 0 ) )
testAsBuilder ( ) { final org . apache . commons . lang3 . text . StrBuilder sb = new org . apache . commons . lang3 . text . StrBuilder ( ) . appendAll ( "Lorem" , "<sp>" , "ipsum" , "<sp>" , "dolor" ) ; "<AssertPlaceHolder>" ; } toString ( ) { return java . lang . String . format ( "[%s:<sp>%s,<sp>%s]" , fieldName , ...
org . junit . Assert . assertEquals ( sb . toString ( ) , sb . build ( ) )
vcal_timezone_one_daylight_two_dates ( ) { biweekly . ICalendar ical = new biweekly . ICalendar ( ) ; ical . getProperties ( ) . clear ( ) ; ical . addProperty ( new biweekly . property . DateStart ( utc ( "2014-10-07<sp>09:34:00" ) ) ) ; ical . addProperty ( new biweekly . property . DateStart ( utc ( "2014-10-08<sp>0...
org . junit . Assert . assertEquals ( expected , actual )
testProxy ( ) { org . apache . jackrabbit . oak . segment . file . FileStore serverStore = serverFileStore . fileStore ( ) ; org . apache . jackrabbit . oak . segment . file . FileStore clientStore = clientFileStore1 . fileStore ( ) ; org . apache . jackrabbit . oak . spi . state . NodeStore store = org . apache . jack...
org . junit . Assert . assertEquals ( serverStore . getHead ( ) , clientStore . getHead ( ) )
testGetRegisterOp ( ) { final com . basho . riak . client . core . util . BinaryValue registerValue = com . basho . riak . client . core . util . BinaryValue . create ( "value" ) ; com . basho . riak . client . core . query . crdt . ops . RegisterOp op = new com . basho . riak . client . core . query . crdt . ops . Reg...
org . junit . Assert . assertEquals ( serializedValue , registerOp )
shouldSerializeCollection ( ) { java . lang . String expectedResult = "<sp><order>\n<sp><price>15.0</price>\n<sp><comments>pack<sp>it<sp>nicely,<sp>please</comments>\n<sp></order>\n" ; expectedResult += expectedResult ; expectedResult = ( "<list>\n" + expectedResult ) + "</list>" ; br . com . caelum . vraptor . seriali...
org . junit . Assert . assertThat ( result ( ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( expectedResult ) ) )
convertToProtonNull ( ) { final java . lang . String linkName = "linkName" ; final tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . AmqpsSessionManager amqpsSessionManager = new tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . AmqpsSessionManager ( mockD...
org . junit . Assert . assertNull ( amqpsConvertToProtonReturnValue )
testNullCategorieenLijst ( ) { final java . lang . String resultaat = subject . maakPlatteTekst ( null , null , null , null ) ; final java . lang . String verwachteResultaat = "00000000Ag31A0000000000000" ; "<AssertPlaceHolder>" ; } maakPlatteTekst ( nl . bzk . brp . domain . leveringmodel . persoon . Persoonslijst , n...
org . junit . Assert . assertEquals ( verwachteResultaat , resultaat )
testFollowingInstance ( ) { com . catify . processengine . core . data . model . entities . FlowNodeInstance flowNodeInstance = createFlowNodeInstance ( NodeInstaceStates . ACTIVE_STATE ) ; flowNodeInstanceRepository . save ( flowNodeInstance ) ; com . catify . processengine . core . data . model . entities . FlowNodeI...
org . junit . Assert . assertTrue ( flowNodeInstance . getFollowingInstances ( ) . contains ( followingInstance ) )
testWriteArrayAndInt ( ) { org . apache . parquet . bytes . CapacityByteArrayOutputStream capacityByteArrayOutputStream = newCapacityBAOS ( 10 ) ; for ( int i = 0 ; i < 23 ; i ++ ) { byte [ ] toWrite = new byte [ ] { ( ( byte ) ( i * 3 ) ) , ( ( byte ) ( ( i * 3 ) + 1 ) ) } ; capacityByteArrayOutputStream . write ( toW...
org . junit . Assert . assertEquals ( ( ( i + 1 ) * 3 ) , capacityByteArrayOutputStream . size ( ) )
testQueryChebiNameForId ( ) { System . out . print ( "testQueryChebiNameForId" ) ; java . lang . String name = "sildenafil" ; java . lang . String expResult = "CHEBI:9139" ; java . lang . String result = instance . queryChebiNameForId ( name ) ; "<AssertPlaceHolder>" ; System . out . println ( ":<sp>passed!" ) ; } quer...
org . junit . Assert . assertEquals ( expResult , result )
testFindByZ3950 ( ) { cz . mzk . editor . server . handler . Z3950Client z3950Client = new cz . mzk . editor . server . handler . Z3950ClientImpl ( new cz . mzk . editor . server . config . EditorConfigurationImpl ( ) ) ; for ( cz . mzk . editor . server . handler . FindMetadataHandlerTest . TestData testData : testDat...
org . junit . Assert . assertEquals ( author , testData . getAuthor ( ) )
testCreate ( ) { org . oscarehr . common . model . IncomingLabRules entity = new org . oscarehr . common . model . IncomingLabRules ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( entity ) ; dao . persist ( entity ) ; "<AssertPlaceHolder>" ; } getId ( ) { return this ...
org . junit . Assert . assertNotNull ( entity . getId ( ) )
shouldBeFalseIfNoMatchingFeatureState ( ) { java . lang . System . setProperty ( "foo.bar" , "true" ) ; setState ( "foo.baz" , "true" ) ; "<AssertPlaceHolder>" ; } isActive ( org . togglz . core . repository . FeatureState , org . togglz . core . user . FeatureUser ) { return true ; }
org . junit . Assert . assertFalse ( strategy . isActive ( state , user ) )
testJoin ( ) { final org . apache . calcite . tools . RelBuilder builder = org . apache . calcite . tools . RelBuilder . create ( org . apache . calcite . test . RelBuilderTest . config ( ) . build ( ) ) ; org . apache . calcite . rel . RelNode root = builder . scan ( "EMP" ) . filter ( builder . call ( SqlStdOperatorT...
org . junit . Assert . assertThat ( root , org . apache . calcite . test . Matchers . hasTree ( expected ) )
submitRuntimeExceptionAndCancel ( ) { java . lang . RuntimeException thrown = new java . lang . RuntimeException ( ) ; doReturn ( null ) . when ( domStoreWriteTransaction ) . ready ( ) ; doThrow ( thrown ) . when ( abstractDOMForwardedTransactionFactory ) . commit ( any ( ) , any ( ) , any ( ) ) ; org . opendaylight . ...
org . junit . Assert . assertTrue ( ( ( e . getCause ( ) ) == thrown ) )
testNormalizedKeyReadWriter ( ) { try { T [ ] data = getSortedData ( ) ; T reuse = getSortedData ( ) [ 0 ] ; eu . stratosphere . api . common . typeutils . TypeComparator < T > comp1 = getComparator ( true ) ; if ( ! ( comp1 . supportsSerializationWithKeyNormalization ( ) ) ) { return ; } eu . stratosphere . api . comm...
org . junit . Assert . assertTrue ( ( ( comp1 . compareToReference ( comp2 ) ) == 0 ) )
testAbortMultipartUploadsNullParamsDto ( ) { try { s3Dao . abortMultipartUploads ( null , new java . util . Date ( ) ) ; org . junit . Assert . fail ( "Suppose<sp>to<sp>throw<sp>a<sp>NullPointerException." ) ; } catch ( java . lang . NullPointerException e ) { "<AssertPlaceHolder>" ; } } abortMultipartUploads ( org . f...
org . junit . Assert . assertNull ( e . getMessage ( ) )
testBuildNamespaceAuthorizationsAssertWildcardEntityNotAddedIfMatchFails ( ) { org . finra . herd . model . dto . ApplicationUser applicationUser = new org . finra . herd . model . dto . ApplicationUser ( getClass ( ) ) ; java . lang . String userId = "userId" ; applicationUser . setUserId ( userId ) ; when ( configura...
org . junit . Assert . assertEquals ( 0 , applicationUser . getNamespaceAuthorizations ( ) . size ( ) )
testDeflaterReader ( ) { java . lang . String inputString = "blahblahblah??blahblahblahblahblah??blablahblah??blablahblah??bla" ; byte [ ] input = inputString . getBytes ( StandardCharsets . UTF_8 ) ; java . io . ByteArrayInputStream inputStream = new java . io . ByteArrayInputStream ( input ) ; java . util . concurren...
org . junit . Assert . assertEquals ( input . length , counter . get ( ) )
whenPutifAbsent_thenNotRewritten ( ) { java . util . Hashtable < com . baeldung . hashtable . Word , java . lang . String > table = new java . util . Hashtable < com . baeldung . hashtable . Word , java . lang . String > ( ) ; table . put ( new com . baeldung . hashtable . Word ( "cat" ) , "a<sp>small<sp>domesticated<s...
org . junit . Assert . assertThat ( table . get ( new com . baeldung . hashtable . Word ( "cat" ) ) , is ( "a<sp>small<sp>domesticated<sp>carnivorous<sp>mammal" ) )
testDisposeCellEditor ( ) { org . eclipse . swt . widgets . Text cellEditor = new org . eclipse . swt . widgets . Text ( tree , org . eclipse . swt . SWT . NONE ) ; tree . dispose ( ) ; "<AssertPlaceHolder>" ; } isDisposed ( ) { org . eclipse . swt . widgets . Control c = getMessageControl ( ) ; return ( c != null ) &&...
org . junit . Assert . assertTrue ( cellEditor . isDisposed ( ) )
example01 ( ) { "<AssertPlaceHolder>" ; } example01 ( ) { org . junit . Assert . assertEquals ( 0.4767F , org . simmetrics . example . ReadMeExample . example01 ( ) , org . simmetrics . example . ReadMeExampleTest . DELTA ) ; }
org . junit . Assert . assertEquals ( 0.4767F , org . simmetrics . example . ReadMeExample . example01 ( ) , org . simmetrics . example . ReadMeExampleTest . DELTA )
testSetMetadata_Null ( ) { initializeExpectedInstance ( 2 ) ; expect ( compute . getOptions ( ) ) . andReturn ( mockOptions ) ; com . google . cloud . compute . deprecated . Metadata metadata = com . google . cloud . compute . deprecated . Metadata . newBuilder ( ) . add ( "k" , "v" ) . setFingerprint ( "fingerprint" )...
org . junit . Assert . assertNull ( instance . setMetadata ( metadata ) )
testGenerateShapePointNarratives ( ) { org . onebusaway . gtfs . model . AgencyAndId shapeId = aid ( "shapeId" ) ; org . onebusaway . transit_data_federation . model . ShapePoints points = new org . onebusaway . transit_data_federation . model . ShapePoints ( ) ; org . mockito . Mockito . when ( _shapePointHelper . get...
org . junit . Assert . assertSame ( points , _provider . getShapePointsForId ( shapeId ) )
testGet ( ) { uk . ac . bbsrc . tgac . miso . core . data . Project p = projectDAO . get ( 1 ) ; "<AssertPlaceHolder>" ; } get ( java . lang . Object ) { return map . get ( key ) ; }
org . junit . Assert . assertNotNull ( p )
runTestArrayToString1 ( ) { soot . jimple . infoflow . results . InfoflowResults res = analyzeAPKFile ( "ArraysAndLists/ArrayToString1.apk" ) ; "<AssertPlaceHolder>" ; } size ( ) { return ( this . results ) == null ? 0 : this . results . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , res . size ( ) )
nonEmptyPathShouldBeKeptSame ( ) { endpoint . setHttpURI ( withSlash ) ; "<AssertPlaceHolder>" ; } getHttpURI ( ) { return httpURI ; }
org . junit . Assert . assertEquals ( withSlash , endpoint . getHttpURI ( ) )
testGetImage ( ) { org . eclipse . swt . graphics . Image image = provider . getImage ( ) ; "<AssertPlaceHolder>" ; } getImage ( ) { return IHammerImages . ImageFactory . getImage ( IHammerImages . ICON_ERROR ) ; }
org . junit . Assert . assertNotNull ( image )
skipMultipleLines ( ) { java . lang . String nameOfContainingMethod = "skipMultipleLines" ; final java . lang . Throwable t = ch . qos . logback . classic . util . TestHelper . makeNestedException ( 0 ) ; t . printStackTrace ( pw ) ; final ch . qos . logback . classic . spi . ILoggingEvent le = createLoggingEvent ( t )...
org . junit . Assert . assertThat ( result )
shouldGetAllCarsNonUnique ( ) { org . apache . ibatis . session . SqlSession sqlSession = org . apache . ibatis . submitted . associationtest . AssociationTest . sqlSessionFactory . openSession ( ) ; try { org . apache . ibatis . submitted . associationtest . Mapper mapper = sqlSession . getMapper ( org . apache . ibat...
org . junit . Assert . assertEquals ( 1 , cars . size ( ) )
testToByteArray_Value_42 ( ) { java . lang . String s = "42" ; byte [ ] exp = new byte [ ] { ( ( byte ) ( 66 ) ) } ; byte [ ] recv = de . persosim . simulator . utils . HexString . toByteArray ( s ) ; "<AssertPlaceHolder>" ; } toByteArray ( java . lang . String ) { inputString = inputString . replaceAll ( "\\s" , "" ) ...
org . junit . Assert . assertArrayEquals ( exp , recv )
storeBufferOverFlow ( ) { int size = 100 ; byte [ ] expectedBytes = new byte [ size ] ; random . nextBytes ( expectedBytes ) ; doReturn ( buffer ) . when ( bufferStore ) . currentBuffer ( ) ; doThrow ( new java . nio . BufferOverflowException ( ) ) . doReturn ( pointer ) . when ( buffer ) . store ( expectedBytes ) ; co...
org . junit . Assert . assertEquals ( pointer , actualPointer )
testGetSeparator ( ) { com . bixly . pastevid . recorders . RecorderTest . log ( "getSeparator" ) ; com . bixly . pastevid . recorders . Recorder instance = new com . bixly . pastevid . recorders . Recorder ( null ) ; java . lang . String expResult = java . lang . System . getProperty ( "file.separator" ) ; java . lang...
org . junit . Assert . assertEquals ( expResult , result )
testOlderCacheableResponsesDoNotGoIntoCache ( ) { impl = createCachingExecChain ( new org . apache . hc . client5 . http . impl . cache . BasicHttpCache ( ) , CacheConfig . DEFAULT ) ; final java . util . Date now = new java . util . Date ( ) ; final java . util . Date fiveSecondsAgo = new java . util . Date ( ( ( now ...
org . junit . Assert . assertEquals ( "\"new-etag\"" , result . getFirstHeader ( "ETag" ) . getValue ( ) )
testBuilder ( ) { com . liferay . portal . search . script . Script script = com . liferay . portal . search . script . test . ScriptsInstantiationTest . _scripts . builder ( ) . idOrCode ( "Math.min(1,<sp>1)" ) . language ( "painless" ) . build ( ) ; "<AssertPlaceHolder>" ; } build ( ) { return new com . liferay . por...
org . junit . Assert . assertNotNull ( script )
testOpportunisticAllocatorAfterFailover ( ) { configuration . setBoolean ( YarnConfiguration . AUTO_FAILOVER_ENABLED , false ) ; configuration . setBoolean ( YarnConfiguration . RECOVERY_ENABLED , true ) ; org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . yarn . conf . YarnConfiguration ( ...
org . junit . Assert . assertEquals ( 1 , appMaster . getLeastLoadedNodes ( ) . size ( ) )
getPropertyType ( ) { com . github . dozermapper . core . propertydescriptor . FieldPropertyDescriptor descriptor = new com . github . dozermapper . core . propertydescriptor . FieldPropertyDescriptor ( com . github . dozermapper . core . propertydescriptor . FieldPropertyDescriptorTest . Container . class , "hidden" ,...
org . junit . Assert . assertEquals ( Integer . TYPE , descriptor . getPropertyType ( ) )
testListWithNoRecords ( ) { com . liferay . portal . kernel . security . permission . PermissionThreadLocal . setPermissionChecker ( com . liferay . portal . kernel . security . permission . PermissionCheckerFactoryUtil . create ( _adminUser ) ) ; java . util . List < com . liferay . data . engine . model . DEDataDefin...
org . junit . Assert . assertTrue ( deDataDefinitions . isEmpty ( ) )
shouldNotChangeCellWhenEditingAndArrowDownKeyIsPressed ( ) { final com . vaadin . addon . spreadsheet . elements . SheetCellElement b2 = spreadSheet . getCellAt ( "B2" ) ; b2 . setValue ( "123" ) ; sheetController . selectCell ( "B2" ) ; new org . openqa . selenium . interactions . Actions ( getDriver ( ) ) . sendKeys ...
org . junit . Assert . assertThat ( selectedCell , org . hamcrest . CoreMatchers . is ( "B2" ) )
isSameNode_sameElement ( ) { final org . exist . dom . persistent . DocumentImpl doc = org . easymock . EasyMock . createMock ( org . exist . dom . persistent . DocumentImpl . class ) ; expect ( doc . getDocId ( ) ) . andReturn ( 21 ) . times ( 2 ) ; replay ( doc ) ; final org . exist . dom . persistent . ElementImpl e...
org . junit . Assert . assertTrue ( elem . isSameNode ( elem ) )
testExistsAllWithReadOnly ( ) { org . apache . hadoop . hbase . thrift2 . ThriftHBaseServiceHandler handler = createHandler ( ) ; byte [ ] rowName1 = org . apache . hadoop . hbase . util . Bytes . toBytes ( "testExistsAll1" ) ; byte [ ] rowName2 = org . apache . hadoop . hbase . util . Bytes . toBytes ( "testExistsAll2...
org . junit . Assert . assertFalse ( exceptionCaught )
buitenlandsePlaatsRegioEindeOngeldigIcmBuitenlandR2029 ( ) { final nl . bzk . brp . bijhouding . bericht . model . RelatieGroepElement relatie = new nl . bzk . brp . bijhouding . bericht . model . RelatieGroepElement ( nl . bzk . brp . bijhouding . bericht . model . RelatieGroepElementTest . ATTRIBUTEN , null , null , ...
org . junit . Assert . assertEquals ( 0 , relatie . valideerInhoud ( ) . size ( ) )
passthroughInboundPDWithAuditLoggingOff ( ) { org . hl7 . v3 . PRPAIN201305UV02 request = new org . hl7 . v3 . PRPAIN201305UV02 ( ) ; gov . hhs . fha . nhinc . common . nhinccommon . AssertionType assertion = new gov . hhs . fha . nhinc . common . nhinccommon . AssertionType ( ) ; org . hl7 . v3 . PRPAIN201306UV02 expe...
org . junit . Assert . assertSame ( expectedResponse , actualResponse )
testConstructFromInputStream ( ) { java . lang . String tsSource = "parser/resources/testtool.xml" ; try { toolSpec = new org . apache . cxf . tools . common . toolspec . ToolSpec ( getClass ( ) . getResourceAsStream ( tsSource ) , false ) ; } catch ( org . apache . cxf . tools . common . ToolException e ) { throw new ...
org . junit . Assert . assertNull ( toolSpec . getAnnotation ( ) )
menuShouldHaveItems ( ) { final java . util . List < lcmc . common . ui . utils . UpdatableItem > items = constraintPHMenu . getPulldownMenu ( constraintPHInfoStub ) ; verify ( menuItemStub , never ( ) ) . predicate ( ( ( lcmc . common . domain . Predicate ) ( anyObject ( ) ) ) ) ; verify ( menuItemStub , never ( ) ) ....
org . junit . Assert . assertEquals ( 4 , items . size ( ) )
testRequestTimeout ( ) { awaitReady ( client , node ) ; org . apache . kafka . common . requests . ProduceRequest . Builder builder = ProduceRequest . Builder . forCurrentMagic ( ( ( short ) ( 1 ) ) , 1000 , java . util . Collections . emptyMap ( ) ) ; org . apache . kafka . clients . NetworkClientTest . TestCallbackHa...
org . junit . Assert . assertEquals ( requestTimeoutMs , request . requestTimeoutMs ( ) )
isSupportedShouldBeFalseForNullClient ( ) { capability = new com . openshift . internal . restclient . capability . resources . ProjectTemplateProcessing ( project , null ) ; "<AssertPlaceHolder>" ; } isSupported ( ) { if ( ( mapper ) != null ) { try { return mapper . getEndpointFor ( resource . getApiVersion ( ) , res...
org . junit . Assert . assertFalse ( capability . isSupported ( ) )
test91 ( ) { byte [ ] buffer ; java . lang . String test = "test" ; java . io . ByteArrayOutputStream stream = new java . io . ByteArrayOutputStream ( ) ; java . io . PrintWriter writer = new java . io . PrintWriter ( stream ) ; writer . println ( test ) ; writer . close ( ) ; buffer = stream . toByteArray ( ) ; stream...
org . junit . Assert . assertEquals ( test , reader . get ( 0 ) )
testDSAttemptFailuresValidityIntervalFailed ( ) { java . lang . String [ ] args = new java . lang . String [ ] { "--jar" , org . apache . hadoop . yarn . applications . distributedshell . TestDistributedShell . APPMASTER_JAR , "--num_containers" , "1" , "--master_memory" 0 , "sleep<sp>8" , "--master_memory" , "512" , "...
org . junit . Assert . assertFalse ( result )
testGetPreviewImageType1 ( ) { for ( com . archimatetool . editor . ui . factory . IObjectUIProvider provider : ObjectUIFactory . INSTANCE . getProviders ( ) ) { if ( provider instanceof com . archimatetool . editor . ui . factory . IArchimateElementUIProvider ) { org . eclipse . swt . graphics . Image image = com . ar...
org . junit . Assert . assertNotNull ( image )
noUpperBoundChunksPerEntryTest ( ) { net . openhft . chronicle . map . ChronicleMap < java . lang . Integer , java . lang . CharSequence > map = net . openhft . chronicle . map . ChronicleMapBuilder . of ( net . openhft . chronicle . map . Integer . class , net . openhft . chronicle . map . CharSequence . class ) . ave...
org . junit . Assert . assertEquals ( ultraLargeValue , map . get ( 1 ) . toString ( ) )
validate_notBound_noErrors ( ) { com . vaadin . flow . data . binder . BinderValidationStatus < com . vaadin . flow . tests . data . bean . Person > status = binder . validate ( ) ; "<AssertPlaceHolder>" ; } isOk ( ) { return ! ( hasErrors ( ) ) ; }
org . junit . Assert . assertTrue ( status . isOk ( ) )
testGetValueRawJsonNoAttrNoStream ( ) { createRawJsonProcessor ( ) ; new mockit . Expectations ( ) { { request . getInputStream ( ) ; result = null ; } } ; java . lang . Object result = processor . getValue ( request ) ; "<AssertPlaceHolder>" ; } getValue ( java . lang . Object [ ] ) { return ( ( T ) ( args [ paramInde...
org . junit . Assert . assertNull ( result )
bug59058 ( ) { java . lang . String [ ] files = new java . lang . String [ ] { "bug57031.docx" , "bug59058.docx" } ; for ( java . lang . String f : files ) { org . apache . commons . compress . archivers . zip . ZipFile zf = new org . apache . commons . compress . archivers . zip . ZipFile ( org . apache . poi . xwpf ....
org . junit . Assert . assertNotNull ( document )
zouGeenMeldingMoetenGevenWantEenOuderInBericht ( ) { nl . bzk . brp . model . bericht . kern . FamilierechtelijkeBetrekkingBericht relatieBericht = mock ( nl . bzk . brp . model . bericht . kern . FamilierechtelijkeBetrekkingBericht . class ) ; nl . bzk . brp . model . operationeel . kern . FamilierechtelijkeBetrekking...
org . junit . Assert . assertThat ( meldingen . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
removeDocumentsTest ( ) { final byte [ ] documentContent = "this<sp>is<sp>the<sp>content<sp>of<sp>the<sp>document" . getBytes ( ) ; final java . util . List < org . bonitasoft . engine . core . document . model . SMappedDocument > list = createAndAttachDocumentToProcessInstancesWithContent ( documentContent ) ; delete ...
org . junit . Assert . assertNull ( result )
testDelete ( ) { org . redisson . api . RCountDownLatch latch = redisson . getCountDownLatch ( "latch" ) ; latch . trySetCount ( 1 ) ; "<AssertPlaceHolder>" ; } delete ( ) { map . delete ( ) ; }
org . junit . Assert . assertTrue ( latch . delete ( ) )
testRelativizePath_nullBasePathReturnsPath ( ) { "<AssertPlaceHolder>" ; } relativizePath ( org . eclipse . core . runtime . IPath , org . eclipse . core . runtime . IPath ) { return com . google . cloud . tools . eclipse . util . io . PathUtil . relativizePath ( path , basePath , false ) ; }
org . junit . Assert . assertThat ( com . google . cloud . tools . eclipse . util . io . PathUtil . relativizePath ( new org . eclipse . core . runtime . Path ( "foo" ) , null ) . toString ( ) , org . hamcrest . CoreMatchers . is ( "foo" ) )
shouldReturnIfEmptyArrayPassedIn ( ) { com . couchbase . client . core . service . strategies . SelectionStrategy strategy = PartitionSelectionStrategy . INSTANCE ; com . couchbase . client . core . endpoint . Endpoint selected = strategy . select ( mock ( com . couchbase . client . core . message . CouchbaseRequest . ...
org . junit . Assert . assertNull ( selected )
testConfIsUpdatedOnSuccessAsync ( ) { final java . lang . String property = "FOO" ; final java . lang . String value1 = "value1" ; final java . lang . String value2 = "value2" ; final org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; conf . set ( property , value...
org . junit . Assert . assertThat ( reconfigurable . getConf ( ) . get ( property ) , org . hamcrest . CoreMatchers . is ( value2 ) )
indexIsReadyAfterCommit ( ) { when ( provider . isFreshIndex ( cluster ) ) . thenReturn ( false ) ; indexEngine . startBatch ( cluster ) ; indexEngine . index ( kObject ) ; indexEngine . commit ( cluster , org . uberfire . ext . metadata . io . common . MetadataIndexEngineBatchTest . TEST_INDEXER ) ; "<AssertPlaceHolde...
org . junit . Assert . assertTrue ( indexEngine . isIndexReady ( cluster , org . uberfire . ext . metadata . io . common . MetadataIndexEngineBatchTest . TEST_INDEXER ) )
shouldGetANCRegisterForANCOutOfAreaWithoutDOB ( ) { org . ei . drishti . common . util . DateUtil . fakeIt ( org . joda . time . LocalDate . parse ( "householdAddress" 5 ) ) ; org . ei . drishti . domain . Mother mother = new org . ei . drishti . domain . Mother ( "thayi<sp>card<sp>number<sp>1" 4 , "householdAddress" 3...
org . junit . Assert . assertEquals ( expectedRegister , register )
testFindByPrimaryKeyExisting ( ) { com . liferay . portal . kernel . model . OrgGroupRole newOrgGroupRole = addOrgGroupRole ( ) ; com . liferay . portal . kernel . model . OrgGroupRole existingOrgGroupRole = _persistence . findByPrimaryKey ( newOrgGroupRole . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKe...
org . junit . Assert . assertEquals ( existingOrgGroupRole , newOrgGroupRole )
testSerializeAndDeserialize ( ) { try { java . lang . String jwt = "Bearer" 0 ; java . lang . String type = "Bearer" ; java . lang . String name = "testuser" ; com . ibm . ws . security . mp . jwt . impl . DefaultJsonWebTokenImpl jwttoken = new com . ibm . ws . security . mp . jwt . impl . DefaultJsonWebTokenImpl ( jwt...
org . junit . Assert . assertEquals ( "Bearer" 5 , sub , subfromcopy )
testStrJoinNull ( ) { org . araqne . logdb . query . expr . StrJoin strJoin = new org . araqne . logdb . query . expr . StrJoin ( null , expr ( "," , null ) ) ; "<AssertPlaceHolder>" ; } eval ( org . araqne . logdb . Row ) { java . lang . Object l = ( isLhString ) ? lh : m . get ( lh . toString ( ) ) ; java . lang . Ob...
org . junit . Assert . assertEquals ( null , strJoin . eval ( null ) )
testRemoveMultiple ( ) { java . lang . String newConfig = ( ( java . lang . String ) ( run ( "THREAT_TRIAGE_ADD(config,<sp>[<sp>{<sp>'rule'<sp>:<sp>SHELL_GET_EXPRESSION('less'),<sp>'score'<sp>:<sp>10<sp>},<sp>{<sp>'rule'<sp>:<sp>SHELL_GET_EXPRESSION('greater'),<sp>'score'<sp>:<sp>20<sp>}<sp>]<sp>)" , org . apache . met...
org . junit . Assert . assertEquals ( 0 , triageRules . size ( ) )
loadMessagePropertiesFromDB ( ) { doReturn ( marketplace ) . when ( ds ) . getReferenceByBusinessKey ( any ( org . oscm . domobjects . Marketplace . class ) ) ; java . util . Properties properties = prepareProperties ( "key" , "value" ) ; doReturn ( properties ) . when ( localizerService ) . loadLocalizedPropertiesFrom...
org . junit . Assert . assertEquals ( properties . size ( ) , result . size ( ) )
testInstantiate ( ) { parameters . put ( eu . dnetlib . iis . wf . importer . stream . project . UrlStreamingFacadeFactory . IMPORT_PROJECT_STREAM_ENDPOINT_URL , "http://localhost" ) ; parameters . put ( eu . dnetlib . iis . wf . importer . stream . project . UrlStreamingFacadeFactory . IMPORT_PROJECT_STREAM_COMPRESS ,...
org . junit . Assert . assertNotNull ( facade )
shouldReturnFalseIfDeathWasNotCausedByOtherReasons ( ) { boolean didRuleApply = rule . apply ( new org . ei . drishti . util . SafeMap ( create ( "deathCause" , "within_24hrs" ) . map ( ) ) ) ; "<AssertPlaceHolder>" ; } map ( ) { return map ; }
org . junit . Assert . assertFalse ( didRuleApply )
hasGlobalResourcePermissions_whitespaceConsistent ( ) { authenticateSystemResource ( ) ; final java . lang . String resourceClassName = generateResourceClass ( false , false ) ; final java . lang . String resourceClassName_whitespaced = ( "<sp>" + resourceClassName ) + "\t" ; final java . lang . String customPermission...
org . junit . Assert . assertThat ( directResourceCreatePermissionsForResourceClassAndDomain . isEmpty ( ) , org . hamcrest . CoreMatchers . is ( true ) )
parseCursorForLoop1047b ( ) { java . lang . String code = loadTestResource ( "CursorForLoop1047b.pls" ) ; net . sourceforge . pmd . lang . plsql . ast . ASTInput input = parsePLSQL ( code ) ; "<AssertPlaceHolder>" ; } parsePLSQL ( java . lang . String ) { return parsePLSQL ( net . sourceforge . pmd . lang . LanguageReg...
org . junit . Assert . assertNotNull ( input )
TestEncodeAndDecodeEmojiString ( ) { java . lang . String testString = "" ; java . lang . String decodedUTF8 = org . eclipse . paho . client . mqttv3 . test . MqttDataTypesTest . encodeAndDecodeString ( testString ) ; "<AssertPlaceHolder>" ; } encodeAndDecodeString ( java . lang . String ) { java . io . ByteArrayOutput...
org . junit . Assert . assertEquals ( testString , decodedUTF8 )
testDiToAvroShort ( ) { org . apache . avro . Schema expectedSchema = org . talend . daikon . avro . AvroUtils . _short ( ) ; org . apache . avro . Schema designSchema = org . apache . avro . SchemaBuilder . builder ( ) . record ( "Record" ) . fields ( ) . name ( "booleanField" ) . type ( ) . booleanType ( ) . noDefaul...
org . junit . Assert . assertEquals ( expectedSchema , actualSchema )
testGetModelNominalLabelByID ( ) { try { qa . qcri . aidr . dbmanager . dto . ModelNominalLabelDTO modelNominalLabelDTO = qa . qcri . aidr . dbmanager . ejb . remote . facade . imp . TestModelNominalLabelResourceFacadeImp . modelNominalLabelResourceFacadeImp . getModelNominalLabelByID ( nominalLabelDTO . getNominalLabe...
org . junit . Assert . assertNotNull ( modelNominalLabelDTO )
deveObterIcms90ComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemImpostoICMS icms = new com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemImpostoICMS ( ) ; final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemImposto...
org . junit . Assert . assertEquals ( icmsSetado , icms . getIcms90 ( ) )
xorConfirming ( ) { com . github . jsr330 . spi . TypeConfig config = defaultBinder . instance ( com . github . jsr330 . spi . config . builder . TestInterface . class ) . as ( com . github . jsr330 . spi . config . builder . TestImplementation1 . class ) . when ( ( ( com . github . jsr330 . spi . config . builder . Bi...
org . junit . Assert . assertNull ( container )
testIsCityShouldReturnFalseIfItIsNotACity ( ) { com . gisgraphy . domain . geoloc . entity . GisFeature gisFeature = com . gisgraphy . test . GisgraphyTestHelper . createGisFeatureForAdm ( "" , 20.0F , 30.0F , null , 2 ) ; "<AssertPlaceHolder>" ; } isCity ( ) { return com . gisgraphy . helper . FeatureClassCodeHelper ....
org . junit . Assert . assertFalse ( gisFeature . isCity ( ) )
test_when_restoreConnection_gets_reconnectionRejected_then_reconnect_request_not_added ( ) { org . mockito . Mockito . doThrow ( new com . tc . net . ReconnectionRejectedException ( "Reconnection<sp>Rejected" ) ) . when ( cmt ) . reopen ( org . mockito . Matchers . any ( com . tc . net . core . ConnectionInfo . class )...
org . junit . Assert . assertEquals ( 0 , connEstablisher . connectionRequestQueueSize ( ) )
testEmptyTemplate ( ) { com . liferay . mail . kernel . template . MailTemplate mailTemplate = new com . liferay . petra . mail . template . internal . DefaultMailTemplate ( com . liferay . petra . string . StringPool . BLANK , false ) ; java . lang . String result = mailTemplate . renderAsString ( Locale . ENGLISH , _...
org . junit . Assert . assertEquals ( StringPool . BLANK , result )