input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
whenTxnIntCallableUsed ( ) { int result = executor . execute ( new org . multiverse . api . callables . TxnIntCallable ( ) { @ org . multiverse . stms . gamma . Override public int call ( org . multiverse . api . Txn tx ) throws org . multiverse . stms . gamma . Exception { return 10 ; } } ) ; "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertEquals ( 10 , result )
FullRunContainerArg_ArrayANDNOT2 ( ) { org . roaringbitmap . ArrayContainer ac = new org . roaringbitmap . ArrayContainer ( 1 , new short [ ] { 3 } ) ; org . roaringbitmap . Container rc = org . roaringbitmap . RunContainer . full ( ) ; "<AssertPlaceHolder>" ; } andNot ( org . roaringbitmap . realdata . wrapper . Bitma...
org . junit . Assert . assertEquals ( new org . roaringbitmap . ArrayContainer ( ) , ac . andNot ( rc ) )
isLeftJoinWorking ( ) { if ( isBatoo ( ) ) { return ; } final java . lang . String subQueryJPQL = ( "select<sp>t2.id<sp>from<sp>RegularEntityTwo<sp>t2<sp>left<sp>join<sp>t2.regularEntityOne<sp>t1<sp>where<sp>t1.stringAttribute<sp>=<sp>'" + ( com . uaihebert . test . uaicriteria . subquery . JoinSubQueryTest . VALUE_ "r...
org . junit . Assert . assertTrue ( ( ( resultFromJPQL . size ( ) ) > 0 ) )
nativeTransformer_testXmlToXml_xsl ( ) { org . ikasan . component . converter . xml . TransformerFactory transformerFactory = org . apache . xalan . xsltc . trax . TransformerFactoryImpl . newInstance ( ) ; java . lang . String xslPath = ( org . ikasan . component . converter . xml . ThreadSafeXsltConverterTest . CLASS...
org . junit . Assert . assertEquals ( expectedOutput , new java . lang . String ( outputBytes ) )
shouldPutRandomStuff ( ) { int typeId = 10 ; int nodes = 10000 ; org . eclipse . collections . api . map . primitive . MutableLongObjectMap < long [ ] > key = new org . eclipse . collections . impl . map . mutable . primitive . LongObjectHashMap ( nodes ) ; cache = new org . neo4j . unsafe . impl . batchimport . cache ...
org . junit . Assert . assertEquals ( keyIds [ keyIndex ] , previousHead )
testSuccessfulPropertiesArgument ( ) { java . lang . String expectedPropertiesFile = "/test/properties/file" ; software . amazon . kinesis . multilang . MultiLangDaemon . MultiLangDaemonArguments arguments = new software . amazon . kinesis . multilang . MultiLangDaemon . MultiLangDaemonArguments ( ) ; arguments . param...
org . junit . Assert . assertThat ( propertiesFile , org . hamcrest . Matchers . equalTo ( expectedPropertiesFile ) )
testClearResetsPseudoHeaderDivision ( ) { io . netty . handler . codec . http2 . DefaultHttp2Headers http2Headers = new io . netty . handler . codec . http2 . DefaultHttp2Headers ( ) ; http2Headers . method ( "POST" ) ; http2Headers . set ( "some" , "value" ) ; http2Headers . clear ( ) ; http2Headers . method ( "GET" )...
org . junit . Assert . assertEquals ( 1 , http2Headers . names ( ) . size ( ) )
testLogin_noCallbackHandlerInDD ( ) { java . util . Map < java . lang . String , ? > sharedState = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; java . util . Map < java . lang . String , ? > options = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; mock...
org . junit . Assert . assertTrue ( loginModule . login ( ) )
checkCtx ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( ctx )
testSerialization ( ) { java . awt . Stroke stroke = new java . awt . BasicStroke ( 2.0F ) ; org . jfree . chart . annotations . XYLineAnnotation a1 = new org . jfree . chart . annotations . XYLineAnnotation ( 10.0 , 20.0 , 100.0 , 200.0 , stroke , java . awt . Color . BLUE ) ; java . io . ByteArrayOutputStream buffer ...
org . junit . Assert . assertEquals ( a1 , a2 )
testNodeDecomissionWithOverreplicationRespectsRackPolicy ( ) { org . apache . hadoop . conf . Configuration conf = getConf ( ) ; short REPLICATION_FACTOR = 5 ; final org . apache . hadoop . fs . Path filePath = new org . apache . hadoop . fs . Path ( "/testFile" ) ; org . apache . hadoop . fs . FileSystem localFileSys ...
org . junit . Assert . assertTrue ( localFileSys . mkdirs ( dir ) )
testWriteArray1SPP8BPS ( ) { com . twelvemonkeys . imageio . plugins . tiff . ByteArrayOutputStream bytes = new com . twelvemonkeys . imageio . plugins . tiff . ByteArrayOutputStream ( ) ; com . twelvemonkeys . imageio . plugins . tiff . OutputStream stream = new com . twelvemonkeys . imageio . plugins . tiff . Horizon...
org . junit . Assert . assertArrayEquals ( data , bytes . toByteArray ( ) )
testIsBeforeFirst ( ) { org . teiid . jdbc . ResultSetImpl cs = helpExecuteQuery ( ) ; "<AssertPlaceHolder>" ; cs . close ( ) ; } isBeforeFirst ( ) { return ( ( getAbsoluteRowNumber ( ) ) == ( org . teiid . jdbc . ResultSetImpl . BEFORE_FIRST_ROW ) ) && ( hasNext ( ) ) ; }
org . junit . Assert . assertTrue ( cs . isBeforeFirst ( ) )
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . asset . auto . tagger . model . AssetAutoTaggerEntry missingAssetAutoTaggerEntry = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPrimaryKey ( long ) {...
org . junit . Assert . assertNull ( missingAssetAutoTaggerEntry )
test ( ) { syndeticlogic . catena . array . ArrayDescriptor adesc = createDesc ( prefix ) ; adesc . persist ( ) ; syndeticlogic . catena . array . ArrayDescriptor adesc1 = createDesc ( prefix1 ) ; adesc1 . persist ( ) ; syndeticlogic . catena . array . Loader loader = new syndeticlogic . catena . array . Loader ( ) ; j...
org . junit . Assert . assertEquals ( 2 , arrays . size ( ) )
testAddKVColumnToExistingFamily ( ) { long ts = nextTimestamp ( ) ; java . lang . String tenantId = getOrganizationId ( ) ; initATableValues ( tenantId , getDefaultSplits ( tenantId ) , null , ts ) ; java . util . Properties props = new java . util . Properties ( ) ; props . setProperty ( PhoenixRuntime . CURRENT_SCN_A...
org . junit . Assert . assertTrue ( conn2 . prepareStatement ( query ) . executeQuery ( ) . next ( ) )
testBadge_minus_2 ( ) { cn . jpush . api . push . model . notification . IosNotification ios = cn . jpush . api . push . model . notification . IosNotification . newBuilder ( ) . incrBadge ( ( - 2 ) ) . build ( ) ; com . google . gson . JsonObject json = new com . google . gson . JsonObject ( ) ; json . add ( "badge" ,...
org . junit . Assert . assertEquals ( "" , json , ios . toJSON ( ) )
ParameterizerReturnsAllSql ( ) { com . noelherrick . jell . sql . Parameterizer parameterizer = new com . noelherrick . jell . sql . Parameterizer ( ) ; com . noelherrick . jell . sql . ParameterizedSql sql = parameterizer . parameterizeSql ( "insert<sp>into<sp>@this<sp>values<sp>(@param,<sp>@param2)<sp>" ) ; java . la...
org . junit . Assert . assertEquals ( expected , sql . sql )
ringBondCountDefault ( ) { org . openscience . cdk . isomorphism . matchers . Expr actual = org . openscience . cdk . smarts . SmartsExprReadTest . getAtomExpr ( "[x]" ) ; 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 ) )
testTimeZoneMatches ( ) { org . apache . commons . lang3 . time . DatePrinter printer = getInstance ( org . apache . commons . lang3 . time . FastDatePrinterTest . YYYY_MM_DD , org . apache . commons . lang3 . time . FastDatePrinterTest . NEW_YORK ) ; "<AssertPlaceHolder>" ; } getTimeZone ( ) { return this . timeZone ;...
org . junit . Assert . assertEquals ( org . apache . commons . lang3 . time . FastDatePrinterTest . NEW_YORK , printer . getTimeZone ( ) )
testUserPrincipal ( ) { java . security . Principal principal = principalProvider . getPrincipal ( userPrincipal . getName ( ) ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertNotNull ( principal )
copyLabelingWithOutputTest ( ) { net . imglib2 . roi . labeling . LabelingMapping < java . lang . String > out = ops . create ( ) . labelingMapping ( ) ; ops . run ( net . imagej . ops . copy . CopyLabelingMapping . class , out , input ) ; java . util . Iterator < java . lang . String > outIt = out . getLabels ( ) . it...
org . junit . Assert . assertEquals ( l , outIt . next ( ) )
setupSystemParametersIdemix ( ) { eu . abc4trust . services . issuer . IssuerServiceFactory issuerServiceFactory = new eu . abc4trust . services . issuer . IssuerServiceFactory ( ) ; eu . abc4trust . xml . SystemParameters systemParameters = issuerServiceFactory . getSystemParameters ( 1024 ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertNotNull ( systemParameters )
controllerServiceStatusHealth ( ) { populateControllerService ( false , false ) ; java . lang . String statusRequest = "controllerServices:health" ; org . apache . nifi . minifi . commons . status . FlowStatusReport actual = org . apache . nifi . minifi . status . StatusConfigReporter . getStatus ( mockFlowController ,...
org . junit . Assert . assertEquals ( expected , actual )
validate_shouldPassValidationIfFieldLengthsAreCorrect ( ) { org . openmrs . RelationshipType type = new org . openmrs . RelationshipType ( ) ; type . setaIsToB ( "A<sp>is<sp>To<sp>B" ) ; type . setbIsToA ( "B<sp>is<sp>To<sp>A" ) ; type . setDescription ( "description" ) ; type . setRetireReason ( "retireReason" ) ; org...
org . junit . Assert . assertFalse ( errors . hasErrors ( ) )
testMetadataXMLNegative ( ) { System . out . println ( "Running<sp>testMetadataXMLNegative" ) ; java . lang . String filename = "Simple_ScanTe.png" ; java . lang . String uri = "/write-neg-metadata/" ; com . marklogic . client . DatabaseClient client1 = getDatabaseClient ( "You<sp>do<sp>not<sp>have<sp>permission<sp>to<...
org . junit . Assert . assertTrue ( "You<sp>do<sp>not<sp>have<sp>permission<sp>to<sp>this<sp>method<sp>and<sp>URL" 0 , exceptionIsThrown )
shortWrapper ( ) { model . setMyShort ( ( ( short ) ( 1 ) ) ) ; com . google . appengine . api . datastore . Entity entity = meta . modelToEntity ( model ) ; com . google . appengine . api . datastore . Key key = ds . put ( entity ) ; com . google . appengine . api . datastore . Entity entity2 = ds . get ( key ) ; org ...
org . junit . Assert . assertThat ( model2 . getMyShort ( ) , org . hamcrest . CoreMatchers . is ( ( ( short ) ( 1 ) ) ) )
readArray_skip_nodelim ( ) { java . io . InputStream origin = bytes ( "Hello,<sp>world!" ) ; java . io . InputStream testee = new com . asakusafw . runtime . directio . util . DelimiterRangeInputStream ( origin , '|' , 100 , true ) ; "<AssertPlaceHolder>" ; } readBytes ( java . io . InputStream , int ) { byte [ ] buf =...
org . junit . Assert . assertThat ( readBytes ( testee , 4 ) , is ( "" ) )
testInstanciationNoStroke ( ) { org . orbisgis . coremap . renderer . se . Style s = getStyle ( org . orbisgis . legend . thematic . categorize . CATEGORIZED_POINT_NO_STROKE ) ; org . orbisgis . coremap . renderer . se . PointSymbolizer as = ( ( org . orbisgis . coremap . renderer . se . PointSymbolizer ) ( s . getRule...
org . junit . Assert . assertFalse ( ca . isStrokeEnabled ( ) )
testCommentCount ( ) { java . util . List < com . github . emailtohl . building . site . entities . cms . Article > ls = cmsService . recentArticles ( ) ; com . github . emailtohl . building . site . entities . cms . Article a = ls . get ( 0 ) ; "<AssertPlaceHolder>" ; } commentCount ( java . lang . Long ) { return com...
org . junit . Assert . assertTrue ( ( ( cmsService . commentCount ( a . getId ( ) ) ) > 0 ) )
testDiscardPolicy1 ( ) { com . liferay . portal . kernel . concurrent . ThreadPoolExecutor threadPoolExecutor = new com . liferay . portal . kernel . concurrent . ThreadPoolExecutor ( 1 , 1 , com . liferay . portal . kernel . concurrent . test . TestUtil . KEEPALIVE_TIME , java . util . concurrent . TimeUnit . MILLISEC...
org . junit . Assert . assertFalse ( markerBlockingJob . isEnded ( ) )
testForFloatArray ( ) { java . lang . Float [ ] floatArr = new java . lang . Float [ 2 ] ; floatArr [ 0 ] = 1.06F ; floatArr [ 1 ] = 2.89F ; org . apache . phoenix . schema . types . PhoenixArray arr = org . apache . phoenix . schema . types . PArrayDataType . instantiatePhoenixArray ( PFloat . INSTANCE , floatArr ) ; ...
org . junit . Assert . assertEquals ( arr , resultArr )
shouldGetTraitsForSchemaEmpty ( ) { final java . util . Set < uk . gov . gchq . gaffer . store . StoreTrait > actual = getStoreTraits ( new uk . gov . gchq . gaffer . store . schema . Schema ( ) ) ; final java . util . Set < uk . gov . gchq . gaffer . store . StoreTrait > expected = com . google . common . collect . Se...
org . junit . Assert . assertEquals ( expected , actual )
testGetAttributeSet_ProductCategory ( ) { org . adempiere . product . service . impl . ProductBLTest . as1 = org . adempiere . model . InterfaceWrapperHelper . create ( ctx , org . compiere . model . I_M_AttributeSet . class , ITrx . TRXNAME_None ) ; org . adempiere . model . InterfaceWrapperHelper . save ( org . ademp...
org . junit . Assert . assertEquals ( org . adempiere . product . service . impl . ProductBLTest . category1 . getM_AttributeSet_ID ( ) , productAS_ID )
cloneDirectByteBuffer ( ) { final int bufferSize = 10 ; java . nio . ByteBuffer bufDirect = java . nio . ByteBuffer . allocateDirect ( bufferSize ) ; for ( byte i = 0 ; i < bufferSize ; i ++ ) { bufDirect . put ( i ) ; } java . nio . ByteBuffer bufClone = alluxio . util . io . BufferUtils . cloneByteBuffer ( bufDirect ...
org . junit . Assert . assertEquals ( bufDirect , bufClone )
testGetNextDataTypeRowWhenElementIsTheLastOne ( ) { final elemental2 . dom . Element dataTypeRow1 = fakeDataTypeRow ( "123" ) ; final elemental2 . dom . Element dataTypeRow2 = fakeDataTypeRow ( "456" ) ; final elemental2 . dom . Element dataTypeRow3 = fakeDataTypeRow ( "789" ) ; final org . uberfire . client . views . ...
org . junit . Assert . assertEquals ( dataTypeRow1 , actual )
validateMethodName ( ) { java . lang . reflect . Method method = org . androidtransfuse . util . DelayedLoad . class . getMethod ( DelayedLoad . LOAD_METHOD , java . lang . Object . class ) ; "<AssertPlaceHolder>" ; } getMethod ( java . lang . String , org . androidtransfuse . gen . ASTType ) { for ( org . androidtrans...
org . junit . Assert . assertNotNull ( method )
castToNumberWithDefaultCantHandleNonNumberValues ( ) { "<AssertPlaceHolder>" ; griffon . util . TypeUtils . castToNumber ( new java . lang . Object ( ) , 1 ) ; } castToNumber ( java . lang . Object , java . lang . Number ) { return value == null ? defaultValue : griffon . util . TypeUtils . castToNumber ( value ) ; }
org . junit . Assert . assertEquals ( 1 , griffon . util . TypeUtils . castToNumber ( null , 1 ) )
shouldDeserialiseNewNestedHllpWithSAndSpValues ( ) { final java . lang . String sketchAsString = "{\"hyperLogLogPlus\":<sp>{\"p\":<sp>5,<sp>\"sp\":<sp>10}}" ; com . clearspring . analytics . stream . cardinality . HyperLogLogPlus hllp = uk . gov . gchq . gaffer . jsonserialisation . JSONSerialiser . deserialise ( sketc...
org . junit . Assert . assertArrayEquals ( new com . clearspring . analytics . stream . cardinality . HyperLogLogPlus ( 5 , 10 ) . getBytes ( ) , hllp . getBytes ( ) )
testOnRenamedOldNameNotEqualDisplayName ( ) { hudson . model . DisplayNameListener listener = new hudson . model . DisplayNameListener ( ) ; final java . lang . String oldName = "old<sp>job<sp>name" ; final java . lang . String newName = "new<sp>job<sp>name" ; final java . lang . String displayName = "the<sp>display<sp...
org . junit . Assert . assertEquals ( displayName , src . getDisplayName ( ) )
testRecordWithFixed ( ) { java . util . List < org . apache . avro . Schema . Field > fields = new java . util . ArrayList ( ) ; java . util . Map < java . lang . String , java . lang . Object > data = new java . util . HashMap ( ) ; for ( int i = 0 ; i < ( com . hortonworks . streamline . streams . runtime . storm . b...
org . junit . Assert . assertEquals ( expected , com . hortonworks . streamline . streams . runtime . storm . bolt . kafka . StreamlineEventSerializer . getAvroRecord ( streamlineEvent , schema ) )
testSimpleDeferment ( ) { final xapi . util . api . Pointer < java . lang . Boolean > success = new xapi . util . api . Pointer < java . lang . Boolean > ( ) ; runDeferred ( ( ) -> success . set ( true ) ) ; success . set ( false ) ; flush ( 5000 ) ; "<AssertPlaceHolder>" ; } get ( ) { if ( exe . isShutdown ( ) ) { exe...
org . junit . Assert . assertTrue ( success . get ( ) )
testAdaptForTable ( ) { com . google . cloud . bigtable . admin . v2 . models . GCRules . GCRule gcRule = com . google . cloud . bigtable . hbase . adapters . admin . GCRULES . maxVersions ( 1 ) ; com . google . bigtable . admin . v2 . ColumnFamily columnFamily = com . google . bigtable . admin . v2 . ColumnFamily . ne...
org . junit . Assert . assertEquals ( expected , actualTableDesc )
testCompleteDate_emptyDate_shouldReturnEmptyValue ( ) { "<AssertPlaceHolder>" ; } completeDate ( java . lang . String ) { if ( date . endsWith ( "12" 8 ) ) { date = date . substring ( 0 , ( ( date . length ( ) ) - 1 ) ) ; } java . lang . String val = "" ; if ( ( date . length ( ) ) < 4 ) { return val ; } else if ( ( da...
org . junit . Assert . assertThat ( fr . inria . anhalytics . commons . utilities . Utilities . completeDate ( "" ) , org . hamcrest . CoreMatchers . is ( "" ) )
testLine ( ) { java . lang . Object [ ] expected = new java . lang . Object [ ] { 1 , 1 , 2 , 2 , 2 , 2 , 3 , 3 , 3 , 3 , 4 , 4 , 4 , 4 } ; java . lang . Object [ ] actual = result . stream ( ) . map ( Token :: getLine ) . toArray ( ) ; "<AssertPlaceHolder>" ; } stream ( ) { return java . util . stream . StreamSupport ...
org . junit . Assert . assertArrayEquals ( expected , actual )
getUserSecurityName ( ) { java . lang . String user = "vmmtestuser" ; java . lang . String securityName = "vmmtestuser" ; com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . security . wim . adapter . ldap . fat . URAPIs_ADLDAP_NoIdTest . c , "getUserSecurityName" , "Checking<sp>with<sp>a<sp>valid<...
org . junit . Assert . assertEquals ( securityName , com . ibm . ws . security . wim . adapter . ldap . fat . URAPIs_ADLDAP_NoIdTest . servlet . getUserSecurityName ( user ) )
multipleNotSupportedValidator ( ) { final org . springframework . validation . Validator validator1 = mock ( org . springframework . validation . Validator . class , "v1" ) ; final org . springframework . validation . Validator validator2 = mock ( org . springframework . validation . Validator . class , "v2" ) ; when (...
org . junit . Assert . assertFalse ( cv . supports ( java . util . Date . class ) )
runTestImplicitFlow6 ( ) { soot . jimple . infoflow . results . InfoflowResults res = analyzeAPKFile ( "ImplicitFlows/ImplicitFlow6.apk" , true ) ; "<AssertPlaceHolder>" ; } analyzeAPKFile ( java . lang . String , java . lang . String ) { return analyzeAPKFile ( apkFileName , xmlFileName , false , false , false ) ; }
org . junit . Assert . assertTrue ( ( ( res == null ) || ( res . isEmpty ( ) ) ) )
shouldHandleViaDispatcher ( ) { java . lang . Exception exception = new java . lang . Exception ( ) ; org . springframework . web . servlet . View view = mock ( org . springframework . web . servlet . View . class ) ; java . util . Map < java . lang . String , java . lang . Object > model = new java . util . HashMap < ...
org . junit . Assert . assertThat ( handled , org . hamcrest . Matchers . is ( true ) )
testGetBuffer ( ) { io . netty . buffer . ByteBuf buffer = io . netty . buffer . Unpooled . buffer ( 1024 ) ; org . apache . activemq . artemis . protocol . amqp . util . NettyWritable writable = new org . apache . activemq . artemis . protocol . amqp . util . NettyWritable ( buffer ) ; "<AssertPlaceHolder>" ; } getByt...
org . junit . Assert . assertSame ( buffer , writable . getByteBuf ( ) )
shouldReturnFalseWhenEconomicStatusIsNotAPL ( ) { boolean didRuleSucceed = rule . apply ( new org . ei . drishti . util . SafeMap ( mapOf ( "economicStatus" , "bpl" ) ) ) ; "<AssertPlaceHolder>" ; } mapOf ( Key , Value ) { java . util . HashMap < Key , Value > normalMap = new java . util . HashMap ( ) ; normalMap . put...
org . junit . Assert . assertFalse ( didRuleSucceed )
testDateValidationDataType ( ) { backtype . storm . topology . base . BaseRichBolt bolt = new io . symcpe . hendrix . storm . bolts . InterceptionBolt ( ) ; final java . util . concurrent . atomic . AtomicReference < backtype . storm . tuple . Values > processedEventContainer = new java . util . concurrent . atomic . A...
org . junit . Assert . assertTrue ( ( ( event . getHeaders ( ) . get ( "@timestamp" ) ) instanceof java . lang . Double ) )
testDoNotUseIndexWithOrNotIndexed ( ) { long idxUsagesBefore = indexUsages ( com . orientechnologies . orient . core . sql . OCommandExecutorSQLSelectTest . db ) ; com . orientechnologies . orient . core . sql . List < com . orientechnologies . orient . core . record . impl . ODocument > qResult = com . orientechnologi...
org . junit . Assert . assertEquals ( indexUsages ( com . orientechnologies . orient . core . sql . OCommandExecutorSQLSelectTest . db ) , idxUsagesBefore )
testGetSiteTasks ( ) { java . lang . Integer siteId = 1 ; com . ewcms . publication . task . MemoryTaskRegistry register = new com . ewcms . publication . task . MemoryTaskRegistry ( 0 ) ; com . ewcms . core . site . model . Site site = new com . ewcms . core . site . model . Site ( ) ; site . setId ( siteId ) ; com . ...
org . junit . Assert . assertEquals ( 2 , tasks . size ( ) )
testUpdateLastPublishDateWithGapLayoutSet ( ) { java . util . Date now = new java . util . Date ( ) ; updateLastPublishDate ( _layoutSet , now ) ; java . util . Date startDate = new java . util . Date ( ( ( now . getTime ( ) ) + ( com . liferay . portal . kernel . util . Time . DAY ) ) ) ; java . util . Date endDate = ...
org . junit . Assert . assertEquals ( now . getTime ( ) , lastPublishDate . getTime ( ) )
_01_importTest ( ) { final com . b2international . snowowl . core . api . IBranchPath branch = com . b2international . snowowl . datastore . BranchPathUtils . createMainPath ( ) ; final java . nio . file . Path path = com . b2international . commons . platform . PlatformUtil . toAbsolutePath ( com . b2international . s...
org . junit . Assert . assertEquals ( 100 , numberOfConstraints )
connectTimeout ( ) { int timeout = 1000 ; com . navercorp . pinpoint . rpc . client . PinpointClientFactory pinpointClientFactory = null ; try { pinpointClientFactory = new com . navercorp . pinpoint . rpc . client . DefaultPinpointClientFactory ( ) ; pinpointClientFactory . setConnectTimeout ( timeout ) ; int connectT...
org . junit . Assert . assertEquals ( timeout , connectTimeout )
testEvalBodyInclude ( ) { when ( featureService . getFeatureState ( "name" ) ) . thenReturn ( FeatureState . DISABLED ) ; tag . setFeature ( "name" ) ; "<AssertPlaceHolder>" ; } doStartTag ( ) { com . tacitknowledge . flip . FeatureService service = getFeatureService ( ) ; if ( service == null ) { throw new com . tacit...
org . junit . Assert . assertEquals ( Tag . EVAL_BODY_INCLUDE , tag . doStartTag ( ) )
closeOnOpenTransactionShouldRollback ( ) { java . sql . Connection writer = java . sql . DriverManager . getConnection ( getJDBCUrl ( ) ) ; writer . createStatement ( ) . execute ( ( ( "CREATE<sp>(n:TestCloseOnOpenTransactionSouldRollback_" + ( secureMode . toString ( ) ) ) + "<sp>{value:\"AZERTYUIOP\"})" ) ) ; writer ...
org . junit . Assert . assertFalse ( rs . next ( ) )
whenReadingVrp_vehicleTypesAreReadCorrectly ( ) { com . graphhopper . jsprit . core . problem . VehicleRoutingProblem . Builder builder = VehicleRoutingProblem . Builder . newInstance ( ) ; new com . graphhopper . jsprit . io . problem . VrpXMLReader ( builder , null ) . read ( inputStream ) ; com . graphhopper . jspri...
org . junit . Assert . assertEquals ( 3 , vrp . getTypes ( ) . size ( ) )
testFreeMarkerActionServiceGeneration ( ) { java . lang . Boolean actionServiceRegistered = false ; java . util . List < it . geosolutions . geobatch . annotations . GenericActionService > actionList = it . geosolutions . geobatch . annotations . ActionServicePostProcessor . getActionList ( ) ; for ( it . geosolutions ...
org . junit . Assert . assertTrue ( actionServiceRegistered )
testCreateStatementBasicCaseWorks ( ) { java . sql . Statement stmt = org . apache . drill . jdbc . ConnectionTest . connection . createStatement ( ) ; java . sql . ResultSet rs = stmt . executeQuery ( "VALUES<sp>1" ) ; "<AssertPlaceHolder>" ; } next ( ) { if ( ! ( hasNext ( ) ) ) { throw new java . util . NoSuchElemen...
org . junit . Assert . assertTrue ( rs . next ( ) )
testSetFullStreetAddressAutocompleteWithType ( ) { com . github . bordertech . wcomponents . WTextArea textArea = new com . github . bordertech . wcomponents . WTextArea ( ) ; java . lang . String expected ; for ( com . github . bordertech . wcomponents . autocomplete . segment . AddressType value : com . github . bord...
org . junit . Assert . assertEquals ( expected , textArea . getAutocomplete ( ) )
testWrongCharacterInToken ( ) { java . lang . String header = "Digest<sp>я" ; java . io . StringReader input = new java . io . StringReader ( header ) ; java . util . Map < java . lang . String , java . lang . String > result = org . apache . tomcat . util . http . parser . HttpParser . parseAuthorizationDigest ( input...
org . junit . Assert . assertNull ( result )
buildAndRegeneratingSharedConsumerInIntfProjectV3 ( ) { java . io . File wsdl = getCodegenQEDataFileInput ( "-genType" 5 ) ; testArgs = new java . lang . String [ ] { "-genType" 1 , "-genType" 9 , "-genType" , "ServiceMetadataProps" , "-wsdl" , wsdl . getAbsolutePath ( ) , "-dest" , destDir . getAbsolutePath ( ) , "/se...
org . junit . Assert . assertTrue ( sharedConsumerClass . exists ( ) )
givenArray_whenAddingElementAtSpecifiedPosition_thenCorrect ( ) { int [ ] oldArray = new int [ ] { 2 , 3 , 4 , 5 } ; int [ ] newArray = org . apache . commons . lang3 . ArrayUtils . add ( oldArray , 0 , 1 ) ; int [ ] expectedArray = new int [ ] { 1 , 2 , 3 , 4 , 5 } ; "<AssertPlaceHolder>" ; } add ( java . util . List ...
org . junit . Assert . assertArrayEquals ( expectedArray , newArray )
overridePartitionedTableLocationWithConfigLocation ( ) { source = new com . hotels . bdp . circustrain . core . source . Source ( sourceCatalog , hiveConf , metaStoreClientSupplier , sourceCatalogListener , true , "file:///abc/xyz" ) ; com . hotels . bdp . circustrain . api . SourceLocationManager locationManager = sou...
org . junit . Assert . assertThat ( locationManager . getTableLocation ( ) , org . hamcrest . CoreMatchers . is ( new org . apache . hadoop . fs . Path ( "file:///abc/xyz" ) ) )
testContains_doesNotContain ( ) { com . mercateo . sqs . utils . message . handling . SetWithUpperBound < java . lang . String > setWithUpperBound = new com . mercateo . sqs . utils . message . handling . SetWithUpperBound ( 2 ) ; setWithUpperBound . add ( "1" ) ; setWithUpperBound . add ( "2" ) ; boolean contains = se...
org . junit . Assert . assertFalse ( contains )
testGetTextValuesMultiple ( ) { java . util . List < org . apache . jackrabbit . oak . spi . xml . TextValue > tvs = com . google . common . collect . ImmutableList . of ( mockTextValue ( "24" , PropertyType . LONG ) ) ; org . apache . jackrabbit . oak . spi . xml . PropInfo propInfo = new org . apache . jackrabbit . o...
org . junit . Assert . assertEquals ( tvs , propInfo . getTextValues ( ) )
testMarkDiscarded ( ) { when ( cache . getDocumentById ( id1 ) ) . thenReturn ( doc1 ) ; when ( writer . markDiscarded ( doc1 , "tag" ) ) . thenReturn ( true ) ; "<AssertPlaceHolder>" ; verify ( cache , times ( 1 ) ) . remove ( id1 ) ; verify ( writer , times ( 1 ) ) . markDiscarded ( doc1 , "tag" ) ; verify ( doc1 , t...
org . junit . Assert . assertTrue ( io . markDiscarded ( doc1 , "tag" ) )
iso ( ) { java . lang . String dateStr = "2007-02-21<sp>15:35:00<sp>+0100" ; java . util . Date exp = org . eclipse . jgit . util . SystemReader . getInstance ( ) . getSimpleDateFormat ( "yyyy-MM-dd<sp>HH:mm:ss<sp>Z" ) . parse ( dateStr ) ; java . util . Date parse = org . eclipse . jgit . util . GitDateParser . parse ...
org . junit . Assert . assertEquals ( exp , parse )
shouldHandleZonedOffset ( ) { final java . time . ZoneOffset o = java . time . ZonedDateTime . now ( ) . getOffset ( ) ; "<AssertPlaceHolder>" ; } serializeDeserialize ( org . apache . tinkerpop . shaded . jackson . databind . ObjectMapper , java . lang . Object , java . lang . Class ) { try ( final java . io . ByteArr...
org . junit . Assert . assertEquals ( o , serializeDeserialize ( mapper , o , java . time . ZoneOffset . class ) )
testIsValidConfEmptyNotEqual ( ) { java . util . Map < java . lang . String , java . lang . Object > map0 = org . apache . storm . shade . com . google . common . collect . ImmutableMap . of ( ) ; java . util . Map < java . lang . String , java . lang . Object > map5 = org . apache . storm . shade . com . google . comm...
org . junit . Assert . assertFalse ( org . apache . storm . utils . Utils . isValidConf ( map0 , map5 ) )
testExplanationChunkSuccessfull ( ) { instance = getInstance ( explanation , getFactory ( ) ) ; "<AssertPlaceHolder>" ; } getExplanation ( ) { return explanation ; }
org . junit . Assert . assertEquals ( explanation , instance . getExplanation ( ) )
testToTerm_5 ( ) { final org . erlide . core . builder . CompilerOption . DefineOption option = org . erlide . core . builder . CompilerOptions . DEFINE ; @ org . erlide . core . services . builder . SuppressWarnings ( "unchecked" ) final java . util . List < org . eclipse . xtext . xbase . lib . Pair < java . lang . S...
org . junit . Assert . assertEquals ( expected , actual . toString ( ) )
deveObterVersaoComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . evento . NFEventoRetorno retorno = new com . fincatto . documentofiscal . nfe400 . classes . evento . NFEventoRetorno ( ) ; final java . lang . String versao = "3.10" ; retorno . setVersao ( versao ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertEquals ( versao , retorno . getVersao ( ) )
testUpdateDateField_Null ( ) { com . jmethods . catatumbo . entities . DateField entity = new com . jmethods . catatumbo . entities . DateField ( ) ; java . util . Calendar now = java . util . Calendar . getInstance ( ) ; entity . setCreationDate ( now . getTime ( ) ) ; entity = com . jmethods . catatumbo . EntityManag...
org . junit . Assert . assertTrue ( ( ( entity . getCreationDate ( ) ) == null ) )
testIdentifyModuleContainingJar ( ) { System . out . println ( "identifyModuleContainingJar" ) ; org . jboss . loom . conf . Configuration conf = org . jboss . loom . TestAppConfig . createTestConfig_EAP_520 ( "production" ) ; org . jboss . loom . conf . AS7Config as7conf = conf . getGlobal ( ) . getAS7Config ( ) ; jav...
org . junit . Assert . assertEquals ( expResult , result )
testWithoutFacetPrefix ( ) { org . springframework . data . solr . repository . query . SolrQueryMethod method = getQueryMethodByName ( "findByNameFacetOnPopularity" , java . lang . String . class ) ; "<AssertPlaceHolder>" ; } getFacetPrefix ( ) { return facetPrefix ; }
org . junit . Assert . assertNull ( method . getFacetPrefix ( ) )
shouldRejectWhenInputIsNull ( ) { final uk . gov . gchq . gaffer . sketches . clearspring . cardinality . predicate . HyperLogLogPlusIsLessThan filter = new uk . gov . gchq . gaffer . sketches . clearspring . cardinality . predicate . HyperLogLogPlusIsLessThan ( 15 ) ; boolean accepted = filter . test ( null ) ; "<Asse...
org . junit . Assert . assertFalse ( accepted )
testHashMap ( ) { org . mapdb . elsa . Map c = new org . mapdb . elsa . HashMap ( ) ; for ( int i = 0 ; i < 2000 ; i ++ ) { c . put ( i , ( i + 10000 ) ) ; "<AssertPlaceHolder>" ; } } clone ( E ) { return org . mapdb . elsa . ElsaSerializerBaseTest . clonePojo ( value ) ; }
org . junit . Assert . assertEquals ( c , org . mapdb . elsa . ElsaSerializerBaseTest . clone ( c ) )
testNormalSizedResponseMsgAsync ( ) { final java . lang . String message = runRemoteMessageResponseTest ( org . apache . flink . runtime . rpc . akka . AkkaRpcActorOversizedResponseMessageTest . PAYLOAD , this :: requestMessageAsync ) ; "<AssertPlaceHolder>" ; } equalTo ( org . apache . flink . api . java . functions ....
org . junit . Assert . assertThat ( message , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( org . apache . flink . runtime . rpc . akka . AkkaRpcActorOversizedResponseMessageTest . PAYLOAD ) ) )
testOffsetForComponentFacetsWithInvalidPrefix ( ) { net . roboconf . tooling . core . autocompletion . Couple couple = prepare ( "app2" , "edited2.graph" , 140 ) ; couple . text += "\ncomp<sp>{\n\tfacets:<sp>no" ; java . util . List < net . roboconf . tooling . core . autocompletion . ICompletionProposer . RoboconfComp...
org . junit . Assert . assertEquals ( 0 , proposals . size ( ) )
getValue_shouldReturnEmptyListIfNoValuesInRequest ( ) { org . openmrs . module . htmlformentry . widget . DynamicAutocompleteWidget dynamicAutocompleteWidget = new org . openmrs . module . htmlformentry . widget . DynamicAutocompleteWidget ( generateConceptList ( ) , null ) ; java . util . List values = ( ( java . util...
org . junit . Assert . assertThat ( values . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
testRetriesOnConnectionFailure ( ) { org . apache . hadoop . mapreduce . v2 . api . MRClientProtocol historyServerProxy = mock ( org . apache . hadoop . mapreduce . v2 . api . MRClientProtocol . class ) ; when ( historyServerProxy . getJobReport ( getJobReportRequest ( ) ) ) . thenThrow ( new java . lang . RuntimeExcep...
org . junit . Assert . assertNotNull ( jobStatus )
should_returnTwoNodeGenerationUnit ( ) { ch . puzzle . itc . mobiliar . business . generator . control . extracted . templates . GenerationSubPackage subPackage1 = new ch . puzzle . itc . mobiliar . business . generator . control . extracted . templates . GenerationSubPackage ( ) ; subPackage1 . addGenerationUnit ( new...
org . junit . Assert . assertEquals ( 2 , nodeUnits . size ( ) )
test ( ) { org . apache . avro . Schema schema = new org . apache . avro . Schema . Parser ( ) . parse ( org . apache . avro . tool . TestToTrevniTool . SCHEMA_FILE ) ; org . apache . avro . file . DataFileWriter < java . lang . Object > writer = new org . apache . avro . file . DataFileWriter ( new org . apache . avro...
org . junit . Assert . assertEquals ( expected , found . next ( ) )
testPreview ( ) { tb . getStage ( ) ; tb . preview ( ) ; "<AssertPlaceHolder>" ; } isShowConfirm ( ) { return showConfirm ; }
org . junit . Assert . assertTrue ( tb . isShowConfirm ( ) )
testInvalidQualifier ( ) { java . lang . String id = "634e8505-bd4b-436e-97e8-2045d1b0d265" . replace ( "-" , "" ) ; java . lang . String qualifier = "!wow!#$These%^characters&*aren't(_`allowed!!" ; ddf . catalog . content . data . ContentItem item = new ddf . catalog . content . data . impl . ContentItemImpl ( id , qu...
org . junit . Assert . assertThat ( ddf . catalog . content . data . impl . ContentItemValidator . validate ( item ) , org . hamcrest . Matchers . is ( false ) )
testMappingMkdir ( ) { final java . lang . String path = "path/to/location" ; final org . apache . oozie . fluentjob . api . action . Mkdir mkdir = new org . apache . oozie . fluentjob . api . action . Mkdir ( path ) ; final org . apache . oozie . fluentjob . api . generated . workflow . MKDIR mkdirJAXB = org . apache ...
org . junit . Assert . assertEquals ( path , mkdirJAXB . getPath ( ) )
testFoldersCountWhenAddingRootMessage ( ) { int initialFoldersCount = com . liferay . document . library . kernel . service . DLFolderLocalServiceUtil . getDLFoldersCount ( ) ; addMessage ( ) ; "<AssertPlaceHolder>" ; } getDLFoldersCount ( ) { return com . liferay . document . library . kernel . service . DLFolderLocal...
org . junit . Assert . assertEquals ( initialFoldersCount , com . liferay . document . library . kernel . service . DLFolderLocalServiceUtil . getDLFoldersCount ( ) )
collectWith ( ) { org . eclipse . collections . api . collection . ImmutableCollection < java . lang . Integer > integers = this . classUnderTest ( ) ; org . eclipse . collections . api . collection . ImmutableCollection < java . lang . String > expected = integers . collect ( org . eclipse . collections . impl . block...
org . junit . Assert . assertEquals ( expected , actual )
find_A$Function1 ( ) { com . m3 . scalaflavor4j . Nil < java . lang . String > nil = com . m3 . scalaflavor4j . Nil . < java . lang . String > apply ( ) ; com . m3 . scalaflavor4j . F1 < java . lang . String , java . lang . Boolean > p = new com . m3 . scalaflavor4j . F1 < java . lang . String , java . lang . Boolean >...
org . junit . Assert . assertThat ( actual . isDefined ( ) , org . hamcrest . CoreMatchers . is ( false ) )
testRollOver ( ) { if ( ( dataDir ) == null ) { org . junit . Assert . fail ( "Excepted<sp>temp<sp>folder<sp>for<sp>audit<sp>log<sp>is<sp>created." ) ; } org . apache . sentry . provider . db . log . appender . RollingFileWithoutDeleteAppender appender = new org . apache . sentry . provider . db . log . appender . Roll...
org . junit . Assert . assertEquals ( files . length , 10 )
testMixedQSRootJunction2 ( ) { org . hisp . dhis . query . Query query = org . hisp . dhis . query . Query . from ( schemaService . getDynamicSchema ( org . hisp . dhis . dataelement . DataElementGroup . class ) , Junction . Type . OR ) ; query . add ( org . hisp . dhis . query . Restrictions . eq ( "id" , "abcdefghijA...
org . junit . Assert . assertEquals ( 1 , objects . size ( ) )
testPPmatch2 ( ) { java . lang . String q = "function<sp>xt:main()<sp>{<sp>us:test(xt:iota(2))<sp>}" + ( ( ( ( "function<sp>us:test(?list)<sp>{" + "let<sp>((?a<sp>?b<sp>|<sp>?l<sp>.<sp>?c<sp>?d)<sp>=<sp>?list)<sp>{" ) + "return(?a<sp>+<sp>?b<sp>+<sp>?c<sp>+<sp>?d<sp>+<sp>xt:size(?l))" ) + "}" ) + "}" ) ; fr . inria . c...
org . junit . Assert . assertEquals ( 6 , dt . intValue ( ) )
testSimpleWithDecimalsTrunc ( ) { org . apache . commons . math3 . linear . RealMatrix m = org . apache . commons . math3 . linear . MatrixUtils . createRealMatrix ( new double [ ] [ ] { new double [ ] { 1.232323232323 , 1.43 , 1.63 } , new double [ ] { 2.46 , 2.46 , 2.666666666666 } } ) ; java . lang . String expected...
org . junit . Assert . assertEquals ( expected , actual )
testEqualsSelf ( ) { org . jfree . data . time . Quarter quarter = new org . jfree . data . time . Quarter ( ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == o ) { return true ; } if ( ! ( o instanceof org . jfree . base . modules . PackageState ) ) { return false ; } final org . jfree ....
org . junit . Assert . assertTrue ( quarter . equals ( quarter ) )
testPermissionsAppliedForConsumerCounts ( ) { org . candlepin . model . User mySystemsUser = setupOnlyMyConsumersPrincipal ( ) ; org . candlepin . model . ConsumerType type = consumerTypeCurator . getByLabel ( "system" ) ; org . candlepin . model . Consumer consumer = new org . candlepin . model . Consumer ( "my-system...
org . junit . Assert . assertEquals ( expectedConsumers , info . getConsumerCounts ( ) )
testFactoryCreatesFileStorage ( ) { "<AssertPlaceHolder>" ; } createStorage ( ) { com . sap . hana . cloud . samples . jenkins . storage . StorageFactory . LOGGER . debug ( "createStorage" ) ; try { final com . sap . ecm . api . EcmService ecmService = ( ( com . sap . ecm . api . EcmService ) ( new javax . naming . Ini...
org . junit . Assert . assertTrue ( ( ( com . sap . hana . cloud . samples . jenkins . storage . StorageFactory . createStorage ( ) ) instanceof com . sap . hana . cloud . samples . jenkins . storage . FileStorage ) )